diff --git a/.tools/nvim/__http__/infra/cmsvc.graphql.yml b/.tools/nvim/__http__/infra/cmsvc.graphql.yml index 58bd16595..f34cdd06e 100644 --- a/.tools/nvim/__http__/infra/cmsvc.graphql.yml +++ b/.tools/nvim/__http__/infra/cmsvc.graphql.yml @@ -1,3 +1,52 @@ +--- + +label: "list helm chart type Cluster msvc" +query: |+ + query Infra_listHelmTypeClusterManagedServices { + infra_listHelmTypeClusterManagedServices { + totalCount + edges { + node { + kind + accountName + spec { + msvcSpec { + plugin { + kind + } + } + } + } + } + } + } +variables: + {} + +--- + +label: "list Cluster msvc" +query: |+ + query Infra_listClusterManagedServices { + infra_listClusterManagedServices { + totalCount + edges { + node { + accountName + kind + spec { + msvcSpec { + plugin { + kind + } + } + } + } + } + } + } + + --- label: "Clone Cluster Managed Service" query: |+ @@ -17,4 +66,34 @@ variables: "destinationMsvcName": "msvc-one-clone2", "displayName": "msvc one clone2" } + --- + +label: "list Cluster msvc" +query: |+ + query Infra_listClusterManagedServices { + infra_listClusterManagedServices { + totalCount + edges { + node { + accountName + kind + spec { + msvcSpec { + plugin { + kind + } + } + } + } + } + } + } +# variables: +# { +# "projectName": "sample-project", +# "deviceBlueprintName": "sample-device-blueprint", +# } + + +--- \ No newline at end of file diff --git a/.tools/nvim/__http__/workmachine/workmachine.yaml b/.tools/nvim/__http__/workmachine/workmachine.yaml new file mode 100644 index 000000000..1368bcc9b --- /dev/null +++ b/.tools/nvim/__http__/workmachine/workmachine.yaml @@ -0,0 +1,90 @@ +--- +label: "Create Workmachine" +query: |+ + mutation Infra_createWorkMachine($clusterName: String!, $workmachine: WorkmachineIn!) { + infra_createWorkMachine(clusterName: $clusterName, workmachine: $workmachine) { + accountName + } + } +variables: + { + "clusterName": "ttt", + "workmachine": { + "displayName": "tt", + "metadata": { + "name": "tt" + } + } + } + +--- + +label: "update Workmachine" +query: |+ + mutation Infra_updateWorkMachine($clusterName: String!, $workmachine: WorkmachineIn!) { + infra_updateWorkMachine(clusterName: $clusterName, workmachine: $workmachine) { + accountName + } + } +variables: + { + "clusterName": "ttt", + "workmachine": { + "displayName": "mm", + "metadata": { + "name": "tt" + } + } + } + +--- + +label: "update Workmachine Status" +query: |+ + mutation Infra_updateWorkMachineStatus($clusterName: String!, $status: Boolean!, $name: String!) { + infra_updateWorkMachineStatus(clusterName: $clusterName, status: $status, name: $name) + } +variables: + { + "clusterName": "test-clus", + "status": true, + "name": "test-wm1" + } + +--- + +label: "get workmachine" +query: |+ + query Infra_getWorkmachine($clusterName: String!, $name: String!) { + infra_getWorkmachine(clusterName: $clusterName, name: $name) { + accountName + } + } +variables: + { + "clusterName": "test-clus", + "name": "test-wm1" + } + +--- + +label: "list App" +query: |+ + query Iot_listApps($projectName: String!, $deviceBlueprintName: String!) { + iot_listApps(projectName: $projectName, deviceBlueprintName: $deviceBlueprintName) { + totalCount + edges { + node { + displayName + id + } + } + } + } +variables: + { + "projectName": "sample-project", + "deviceBlueprintName": "sample-device-blueprint", + } + +--- diff --git a/.tools/nvim/__http__/workmachine/workspace.yaml b/.tools/nvim/__http__/workmachine/workspace.yaml new file mode 100644 index 000000000..e5fba28d7 --- /dev/null +++ b/.tools/nvim/__http__/workmachine/workspace.yaml @@ -0,0 +1,82 @@ +--- +label: "Create workspace" +query: |+ + mutation Infra_createWorkspace($workspace: WorkspaceIn!, $clusterName: String!) { + infra_createWorkspace(workspace: $workspace, clusterName: $clusterName) { + accountName + } + } +variables: + { + "workspace": { + "metadata": { + "name": "test-ws1" + }, + "displayName": "test ws1" + }, + "clusterName": "test-clus" + } + +--- + +label: "update workspace" +query: |+ + mutation Infra_updateWorkspace($clusterName: String!, $workspace: WorkspaceIn!) { + infra_updateWorkspace(clusterName: $clusterName, workspace: $workspace) { + accountName + } + } +variables: + { + "workspace": { + "metadata": { + "name": "test-ws1" + }, + "displayName": "test wss1" + }, + "clusterName": "test-clus" + } + +--- + +label: "delete Workspace" +query: |+ + mutation Infra_deleteWorkspace($clusterName: String!, $name: String!) { + infra_deleteWorkspace(clusterName: $clusterName, name: $name) + } +variables: + { + "clusterName": "test-clus", + "name": "test-ws1" + } + +--- + +label: "get workspace" +query: |+ + query Infra_getWorkspace($clusterName: String!, $name: String!) { + infra_getWorkspace(clusterName: $clusterName, name: $name) { + accountName + } + } +variables: + { + "clusterName": "test-clus", + "name": "test-ws1" + } + +--- + +label: "list workspace" +query: |+ + query Infra_listWorkspaces($clusterName: String!) { + infra_listWorkspaces(clusterName: $clusterName) { + totalCount + } + } +variables: + { + "clusterName": "test-clus", + } + +--- diff --git a/.tools/taskfiles/docker.Taskfile.yml b/.tools/taskfiles/docker.Taskfile.yml index 70d4f596f..730cca019 100644 --- a/.tools/taskfiles/docker.Taskfile.yml +++ b/.tools/taskfiles/docker.Taskfile.yml @@ -22,4 +22,4 @@ tasks: echo "image exists, but overridden" fi - docker buildx build -t {{.image}} --output=type=image,compression=zstd,force-compression=true,compression-level=12,push={{.push_image}} {{.args}} + DOCKER_BUILDKIT=1 docker buildx build -t {{.image}} --output=type=image,compression=zstd,force-compression=true,compression-level=12,push={{.push_image}} {{.args}} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..00fb5592f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,41 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Console", + "type": "go", + "request": "launch", + "mode": "debug", + "program": "${workspaceFolder}/apps/console/main.go", + "args": [ + "--dev" + ], + "envFile": "${workspaceFolder}/apps/console/.secrets/env", + }, + { + "name": "Infra", + "type": "go", + "request": "launch", + "mode": "debug", + "program": "${workspaceFolder}/apps/infra/main.go", + "args": [ + "--dev" + ], + "envFile": "${workspaceFolder}/apps/infra/.secrets/env", + }, + { + "name": "Auth", + "type": "go", + "request": "launch", + "mode": "debug", + "program": "${workspaceFolder}/apps/auth/main.go", + "args": [ + "--dev" + ], + "envFile": "${workspaceFolder}/apps/auth/.secrets/env", + } + ] +} \ No newline at end of file diff --git a/apps/auth/Taskfile.yml b/apps/auth/Taskfile.yml index b5f7d1c54..0f9ba2c1b 100644 --- a/apps/auth/Taskfile.yml +++ b/apps/auth/Taskfile.yml @@ -42,6 +42,6 @@ tasks: - task: docker:build-and-push vars: - args: "--platform linux/amd64,linux/arm64 --build-arg BINARY={{.binary}} ." + args: "--platform linux/amd64 --build-arg BINARY={{.binary}} ." image: "{{.image}}" diff --git a/apps/auth/internal/app/grpc-server.go b/apps/auth/internal/app/grpc-server.go index ac7b2b40c..38bc6fd39 100644 --- a/apps/auth/internal/app/grpc-server.go +++ b/apps/auth/internal/app/grpc-server.go @@ -2,7 +2,10 @@ package app import ( "context" + "github.com/kloudlite/api/apps/auth/internal/entities" + "github.com/kloudlite/api/common" + "github.com/kloudlite/api/pkg/kv" "github.com/kloudlite/api/pkg/repos" "github.com/kloudlite/api/apps/auth/internal/domain" @@ -12,7 +15,41 @@ import ( type authGrpcServer struct { auth.UnimplementedAuthServer - d domain.Domain + d domain.Domain + sessionRepo kv.Repo[*common.AuthSession] +} + +// GenerateMachineSession implements auth.AuthServer. +func (a *authGrpcServer) GenerateMachineSession(ctx context.Context, in *auth.GenerateMachineSessionIn) (*auth.GenerateMachineSessionOut, error) { + session, err := a.d.MachineLogin(ctx, in.UserId, in.MachineId, in.Cluster) + if err != nil { + return nil, errors.NewE(err) + } + err = a.sessionRepo.Set(ctx, string(session.Id), session) + if err != nil { + return nil, errors.NewE(err) + } + if session == nil { + return nil, errors.Newf("session is nil") + } + return &auth.GenerateMachineSessionOut{ + SessionId: string(session.Id), + }, nil +} + +// ClearMachineSessionByMachine implements auth.AuthServer. +func (a *authGrpcServer) ClearMachineSessionByMachine(context.Context, *auth.ClearMachineSessionByMachineIn) (*auth.ClearMachineSessionByMachineOut, error) { + panic("unimplemented") +} + +// ClearMachineSessionByTeam implements auth.AuthServer. +func (a *authGrpcServer) ClearMachineSessionByTeam(context.Context, *auth.ClearMachineSessionByTeamIn) (*auth.ClearMachineSessionByTeamOut, error) { + panic("unimplemented") +} + +// ClearMachineSessionByUser implements auth.AuthServer. +func (a *authGrpcServer) ClearMachineSessionByUser(context.Context, *auth.ClearMachineSessionByUserIn) (*auth.ClearMachineSessionByUserOut, error) { + panic("unimplemented") } func (a *authGrpcServer) GetUser(ctx context.Context, in *auth.GetUserIn) (*auth.GetUserOut, error) { @@ -72,8 +109,9 @@ func (a *authGrpcServer) GetAccessToken(ctx context.Context, in *auth.GetAccessT return a.FromAccToken(*token), nil } -func fxRPCServer(d domain.Domain) auth.AuthServer { +func fxRPCServer(d domain.Domain, sessionRepo kv.Repo[*common.AuthSession]) auth.AuthServer { return &authGrpcServer{ - d: d, + d: d, + sessionRepo: sessionRepo, } } diff --git a/apps/auth/internal/domain/domain.go b/apps/auth/internal/domain/domain.go index dc59279a1..b2512559e 100644 --- a/apps/auth/internal/domain/domain.go +++ b/apps/auth/internal/domain/domain.go @@ -14,6 +14,7 @@ type Domain interface { CreateRemoteLogin(ctx context.Context, secret string) (repos.ID, error) Login(ctx context.Context, email string, password string) (*common.AuthSession, error) + MachineLogin(ctx context.Context, userId string, machineId string, cluster string) (*common.AuthSession, error) SignUp(ctx context.Context, name string, email string, password string, captchaToken string) (*common.AuthSession, error) EnsureUserByEmail(ctx context.Context, email string) (*entities.User, error) GetUserById(ctx context.Context, id repos.ID) (*entities.User, error) diff --git a/apps/auth/internal/domain/impl.go b/apps/auth/internal/domain/impl.go index f1a492792..89d863d88 100644 --- a/apps/auth/internal/domain/impl.go +++ b/apps/auth/internal/domain/impl.go @@ -1,8 +1,6 @@ package domain import ( - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" - recaptchapb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" "context" "crypto/md5" b64 "encoding/base64" @@ -12,6 +10,9 @@ import ( "strings" "time" + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchapb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" + "github.com/kloudlite/api/apps/auth/internal/entities" "github.com/kloudlite/api/apps/auth/internal/env" @@ -180,6 +181,18 @@ func (d *domainI) Login(ctx context.Context, email string, password string) (*co return session, nil } +func (d *domainI) MachineLogin(ctx context.Context, userId string, machineId string, cluster string) (*common.AuthSession, error) { + user, err := d.userRepo.FindOne(ctx, repos.Filter{"id": userId}) + if err != nil { + return nil, errors.NewE(err) + } + session := newAuthSession(user.Id, user.Email, user.Name, user.Verified, "work_machine") + session.Extras = map[string]any{} + session.Extras[common.MACHINE_ID_KEY] = machineId + session.Extras[common.CLUSTER_KEY] = cluster + return session, nil +} + func (d *domainI) verifyCaptcha(ctx context.Context, token string) (bool, error) { req := &recaptchapb.CreateAssessmentRequest{ Parent: fmt.Sprintf("projects/%s", d.envVars.GoogleCloudProjectId), // Project path in the format 'projects/{project-id}' diff --git a/apps/console/internal/app/graph/generated/generated.go b/apps/console/internal/app/graph/generated/generated.go index daf7f0b72..e74ef8379 100644 --- a/apps/console/internal/app/graph/generated/generated.go +++ b/apps/console/internal/app/graph/generated/generated.go @@ -399,15 +399,16 @@ type ComplexityRoot struct { } Github__com___kloudlite___operator___apis___crds___v1__AppRouter struct { - BackendProtocol func(childComplexity int) int - BasicAuth func(childComplexity int) int - Cors func(childComplexity int) int - Domains func(childComplexity int) int - HTTPS func(childComplexity int) int - IngressClass func(childComplexity int) int - MaxBodySizeInMb func(childComplexity int) int - RateLimit func(childComplexity int) int - Routes func(childComplexity int) int + BackendProtocol func(childComplexity int) int + BasicAuth func(childComplexity int) int + Cors func(childComplexity int) int + Domains func(childComplexity int) int + HTTPS func(childComplexity int) int + IngressClass func(childComplexity int) int + MaxBodySizeInMb func(childComplexity int) int + NginxIngressAnnotations func(childComplexity int) int + RateLimit func(childComplexity int) int + Routes func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__AppSpec struct { @@ -505,30 +506,6 @@ type ComplexityRoot struct { ThresholdMemory func(childComplexity int) int } - Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec struct { - ChartName func(childComplexity int) int - ChartRepoURL func(childComplexity int) int - ChartVersion func(childComplexity int) int - JobVars func(childComplexity int) int - PostInstall func(childComplexity int) int - PostUninstall func(childComplexity int) int - PreInstall func(childComplexity int) int - PreUninstall func(childComplexity int) int - ReleaseName func(childComplexity int) int - Values func(childComplexity int) int - } - - Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus struct { - CheckList func(childComplexity int) int - Checks func(childComplexity int) int - IsReady func(childComplexity int) int - LastReadyGeneration func(childComplexity int) int - LastReconcileTime func(childComplexity int) int - ReleaseNotes func(childComplexity int) int - ReleaseStatus func(childComplexity int) int - Resources func(childComplexity int) int - } - Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe struct { HTTPHeaders func(childComplexity int) int Path func(childComplexity int) int @@ -548,13 +525,6 @@ type ComplexityRoot struct { ToIPAddr func(childComplexity int) int } - Github__com___kloudlite___operator___apis___crds___v1__JobVars struct { - Affinity func(childComplexity int) int - BackOffLimit func(childComplexity int) int - NodeSelector func(childComplexity int) int - Tolerations func(childComplexity int) int - } - Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec struct { ManagedServiceRef func(childComplexity int) int Plugin func(childComplexity int) int @@ -597,15 +567,16 @@ type ComplexityRoot struct { } Github__com___kloudlite___operator___apis___crds___v1__RouterSpec struct { - BackendProtocol func(childComplexity int) int - BasicAuth func(childComplexity int) int - Cors func(childComplexity int) int - Domains func(childComplexity int) int - HTTPS func(childComplexity int) int - IngressClass func(childComplexity int) int - MaxBodySizeInMb func(childComplexity int) int - RateLimit func(childComplexity int) int - Routes func(childComplexity int) int + BackendProtocol func(childComplexity int) int + BasicAuth func(childComplexity int) int + Cors func(childComplexity int) int + Domains func(childComplexity int) int + HTTPS func(childComplexity int) int + IngressClass func(childComplexity int) int + MaxBodySizeInMb func(childComplexity int) int + NginxIngressAnnotations func(childComplexity int) int + RateLimit func(childComplexity int) int + Routes func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__ShellProbe struct { @@ -709,6 +680,16 @@ type ComplexityRoot struct { Resources func(childComplexity int) int } + Github__com___kloudlite___operator___toolkit___types__CPUResource struct { + Max func(childComplexity int) int + Min func(childComplexity int) int + } + + Github__com___kloudlite___operator___toolkit___types__MemoryResource struct { + Max func(childComplexity int) int + Min func(childComplexity int) int + } + Github__com___kloudlite___operator___toolkit___types__ObjectReference struct { APIVersion func(childComplexity int) int Kind func(childComplexity int) int @@ -716,6 +697,45 @@ type ComplexityRoot struct { Namespace func(childComplexity int) int } + Github__com___kloudlite___operator___toolkit___types__Resource struct { + CPU func(childComplexity int) int + Memory func(childComplexity int) int + } + + Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo struct { + Name func(childComplexity int) int + URL func(childComplexity int) int + Version func(childComplexity int) int + } + + Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec struct { + Chart func(childComplexity int) int + HelmValues func(childComplexity int) int + JobVars func(childComplexity int) int + PostInstall func(childComplexity int) int + PostUninstall func(childComplexity int) int + PreInstall func(childComplexity int) int + PreUninstall func(childComplexity int) int + } + + Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus struct { + CheckList func(childComplexity int) int + Checks func(childComplexity int) int + IsReady func(childComplexity int) int + LastReadyGeneration func(childComplexity int) int + LastReconcileTime func(childComplexity int) int + ReleaseNotes func(childComplexity int) int + ReleaseStatus func(childComplexity int) int + Resources func(childComplexity int) int + } + + Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars struct { + Affinity func(childComplexity int) int + NodeSelector func(childComplexity int) int + Resources func(childComplexity int) int + Tolerations func(childComplexity int) int + } + HelmChart struct { APIVersion func(childComplexity int) int AccountName func(childComplexity int) int @@ -723,6 +743,7 @@ type ComplexityRoot struct { CreationTime func(childComplexity int) int DisplayName func(childComplexity int) int EnvironmentName func(childComplexity int) int + Export func(childComplexity int) int Id func(childComplexity int) int Kind func(childComplexity int) int LastUpdatedBy func(childComplexity int) int @@ -1082,55 +1103,56 @@ type ComplexityRoot struct { } Query struct { - CoreCheckNameAvailability func(childComplexity int, envName *string, msvcName *string, resType entities.ResourceType, name string) int - CoreGetApp func(childComplexity int, envName string, name string) int - CoreGetConfig func(childComplexity int, envName string, name string) int - CoreGetConfigValues func(childComplexity int, envName string, queries []*domain.ConfigKeyRef) int - CoreGetDNSHostSuffix func(childComplexity int) int - CoreGetEnvironment func(childComplexity int, name string) int - CoreGetExternalApp func(childComplexity int, envName string, name string) int - CoreGetHelmChart func(childComplexity int, envName string, name string) int - CoreGetImagePullSecret func(childComplexity int, name string) int - CoreGetManagedResouceOutputKeyValues func(childComplexity int, msvcName *string, envName *string, keyrefs []*domain.ManagedResourceKeyRef) int - CoreGetManagedResouceOutputKeys func(childComplexity int, msvcName *string, envName *string, name string) int - CoreGetManagedResource func(childComplexity int, msvcName *string, envName *string, name string) int - CoreGetManagedServicePlugin func(childComplexity int, category string, name string) int - CoreGetRegistryImage func(childComplexity int, image string) int - CoreGetRegistryImageURL func(childComplexity int) int - CoreGetRouter func(childComplexity int, envName string, name string) int - CoreGetSecret func(childComplexity int, envName string, name string) int - CoreGetSecretValues func(childComplexity int, envName string, queries []*domain.SecretKeyRef) int - CoreGetSecretVariable func(childComplexity int, name string) int - CoreGetSecretVariableOutputKeyValues func(childComplexity int, keyrefs []*domain.SecretVariableKeyRef) int - CoreGetSecretVariableOutputKeys func(childComplexity int, name string) int - CoreListApps func(childComplexity int, envName string, search *model.SearchApps, pq *repos.CursorPagination) int - CoreListConfigs func(childComplexity int, envName string, search *model.SearchConfigs, pq *repos.CursorPagination) int - CoreListEnvironments func(childComplexity int, search *model.SearchEnvironments, pq *repos.CursorPagination) int - CoreListExternalApps func(childComplexity int, envName string, search *model.SearchExternalApps, pq *repos.CursorPagination) int - CoreListHelmCharts func(childComplexity int, envName string, search *model.SearchHelmCharts, pq *repos.CursorPagination) int - CoreListImagePullSecrets func(childComplexity int, search *model.SearchImagePullSecrets, pq *repos.CursorPagination) int - CoreListImportedManagedResources func(childComplexity int, envName string, search *model.SearchImportedManagedResources, pq *repos.CursorPagination) int - CoreListManagedResources func(childComplexity int, search *model.SearchManagedResources, pq *repos.CursorPagination) int - CoreListManagedServicePlugins func(childComplexity int) int - CoreListRegistryImages func(childComplexity int, pq *repos.CursorPagination) int - CoreListRouters func(childComplexity int, envName string, search *model.SearchRouters, pq *repos.CursorPagination) int - CoreListSecretVariables func(childComplexity int, search *model.SearchSecretVariables, pq *repos.CursorPagination) int - CoreListSecrets func(childComplexity int, envName string, search *model.SearchSecrets, pq *repos.CursorPagination) int - CoreListServiceBindings func(childComplexity int, envName string, pagination *repos.CursorPagination) int - CoreRestartApp func(childComplexity int, envName string, appName string) int - CoreResyncApp func(childComplexity int, envName string, name string) int - CoreResyncConfig func(childComplexity int, envName string, name string) int - CoreResyncEnvironment func(childComplexity int, name string) int - CoreResyncExternalApp func(childComplexity int, envName string, name string) int - CoreResyncImagePullSecret func(childComplexity int, name string) int - CoreResyncManagedResource func(childComplexity int, msvcName string, name string) int - CoreResyncRouter func(childComplexity int, envName string, name string) int - CoreResyncSecret func(childComplexity int, envName string, name string) int - CoreSearchRegistryImages func(childComplexity int, query string) int - InfraGetClusterManagedService func(childComplexity int, name string) int - InfraListClusterManagedServices func(childComplexity int, search *model.SearchClusterManagedService, pagination *repos.CursorPagination) int - __resolve__service func(childComplexity int) int - __resolve_entities func(childComplexity int, representations []map[string]interface{}) int + CoreCheckNameAvailability func(childComplexity int, envName *string, msvcName *string, resType entities.ResourceType, name string) int + CoreGetApp func(childComplexity int, envName string, name string) int + CoreGetConfig func(childComplexity int, envName string, name string) int + CoreGetConfigValues func(childComplexity int, envName string, queries []*domain.ConfigKeyRef) int + CoreGetDNSHostSuffix func(childComplexity int) int + CoreGetEnvironment func(childComplexity int, name string) int + CoreGetExternalApp func(childComplexity int, envName string, name string) int + CoreGetHelmChart func(childComplexity int, envName string, name string) int + CoreGetImagePullSecret func(childComplexity int, name string) int + CoreGetManagedResouceOutputKeyValues func(childComplexity int, msvcName *string, envName *string, keyrefs []*domain.ManagedResourceKeyRef) int + CoreGetManagedResouceOutputKeys func(childComplexity int, msvcName *string, envName *string, name string) int + CoreGetManagedResource func(childComplexity int, msvcName *string, envName *string, name string) int + CoreGetManagedServicePlugin func(childComplexity int, category string, name string) int + CoreGetRegistryImage func(childComplexity int, image string) int + CoreGetRegistryImageURL func(childComplexity int) int + CoreGetRouter func(childComplexity int, envName string, name string) int + CoreGetSecret func(childComplexity int, envName string, name string) int + CoreGetSecretValues func(childComplexity int, envName string, queries []*domain.SecretKeyRef) int + CoreGetSecretVariable func(childComplexity int, name string) int + CoreGetSecretVariableOutputKeyValues func(childComplexity int, keyrefs []*domain.SecretVariableKeyRef) int + CoreGetSecretVariableOutputKeys func(childComplexity int, name string) int + CoreListApps func(childComplexity int, envName string, search *model.SearchApps, pq *repos.CursorPagination) int + CoreListConfigs func(childComplexity int, envName string, search *model.SearchConfigs, pq *repos.CursorPagination) int + CoreListEnvironments func(childComplexity int, search *model.SearchEnvironments, pq *repos.CursorPagination) int + CoreListExternalApps func(childComplexity int, envName string, search *model.SearchExternalApps, pq *repos.CursorPagination) int + CoreListHelmCharts func(childComplexity int, envName string, search *model.SearchHelmCharts, pq *repos.CursorPagination) int + CoreListImagePullSecrets func(childComplexity int, search *model.SearchImagePullSecrets, pq *repos.CursorPagination) int + CoreListImportedManagedResources func(childComplexity int, envName string, search *model.SearchImportedManagedResources, pq *repos.CursorPagination) int + CoreListManagedResources func(childComplexity int, search *model.SearchManagedResources, pq *repos.CursorPagination) int + CoreListManagedServicePlugins func(childComplexity int) int + CoreListRegistryImages func(childComplexity int, pq *repos.CursorPagination) int + CoreListRouters func(childComplexity int, envName string, search *model.SearchRouters, pq *repos.CursorPagination) int + CoreListSecretVariables func(childComplexity int, search *model.SearchSecretVariables, pq *repos.CursorPagination) int + CoreListSecrets func(childComplexity int, envName string, search *model.SearchSecrets, pq *repos.CursorPagination) int + CoreListServiceBindings func(childComplexity int, envName string, pagination *repos.CursorPagination) int + CoreRestartApp func(childComplexity int, envName string, appName string) int + CoreResyncApp func(childComplexity int, envName string, name string) int + CoreResyncConfig func(childComplexity int, envName string, name string) int + CoreResyncEnvironment func(childComplexity int, name string) int + CoreResyncExternalApp func(childComplexity int, envName string, name string) int + CoreResyncImagePullSecret func(childComplexity int, name string) int + CoreResyncManagedResource func(childComplexity int, msvcName string, name string) int + CoreResyncRouter func(childComplexity int, envName string, name string) int + CoreResyncSecret func(childComplexity int, envName string, name string) int + CoreSearchRegistryImages func(childComplexity int, query string) int + InfraGetClusterManagedService func(childComplexity int, name string) int + InfraListClusterManagedServices func(childComplexity int, search *model.SearchClusterManagedService, pagination *repos.CursorPagination) int + InfraListHelmTypeClusterManagedServices func(childComplexity int, search *model.SearchClusterManagedService, pagination *repos.CursorPagination) int + __resolve__service func(childComplexity int) int + __resolve_entities func(childComplexity int, representations []map[string]interface{}) int } RegistryImage struct { @@ -1400,8 +1422,10 @@ type Github__com___kloudlite___operator___toolkit___reconciler__StatusResolver i type HelmChartResolver interface { CreationTime(ctx context.Context, obj *entities.HelmChart) (string, error) - Spec(ctx context.Context, obj *entities.HelmChart) (*model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec, error) - Status(ctx context.Context, obj *entities.HelmChart) (*model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus, error) + Export(ctx context.Context, obj *entities.HelmChart) (*model.GithubComKloudliteOperatorToolkitPluginExport, error) + + Spec(ctx context.Context, obj *entities.HelmChart) (*model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec, error) + Status(ctx context.Context, obj *entities.HelmChart) (*model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus, error) UpdateTime(ctx context.Context, obj *entities.HelmChart) (string, error) } @@ -1534,6 +1558,7 @@ type QueryResolver interface { CoreGetManagedResouceOutputKeyValues(ctx context.Context, msvcName *string, envName *string, keyrefs []*domain.ManagedResourceKeyRef) ([]*domain.ManagedResourceKeyValueRef, error) InfraListClusterManagedServices(ctx context.Context, search *model.SearchClusterManagedService, pagination *repos.CursorPagination) (*model.ClusterManagedServicePaginatedRecords, error) InfraGetClusterManagedService(ctx context.Context, name string) (*entities.ClusterManagedService, error) + InfraListHelmTypeClusterManagedServices(ctx context.Context, search *model.SearchClusterManagedService, pagination *repos.CursorPagination) (*model.ClusterManagedServicePaginatedRecords, error) CoreListManagedResources(ctx context.Context, search *model.SearchManagedResources, pq *repos.CursorPagination) (*model.ManagedResourcePaginatedRecords, error) CoreGetManagedResource(ctx context.Context, msvcName *string, envName *string, name string) (*entities.ManagedResource, error) CoreResyncManagedResource(ctx context.Context, msvcName string, name string) (bool, error) @@ -1626,8 +1651,11 @@ type Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMapp ServicePort(ctx context.Context, obj *v1.SvcInterceptPortMappings, data int) error } type HelmChartInResolver interface { + Export(ctx context.Context, obj *entities.HelmChart, data *model.GithubComKloudliteOperatorToolkitPluginExportIn) error + Metadata(ctx context.Context, obj *entities.HelmChart, data *v12.ObjectMeta) error - Spec(ctx context.Context, obj *entities.HelmChart, data *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpecIn) error + Spec(ctx context.Context, obj *entities.HelmChart, data *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpecIn) error + Status(ctx context.Context, obj *entities.HelmChart, data *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatusIn) error } type ImagePullSecretInResolver interface { Format(ctx context.Context, obj *entities.ImagePullSecret, data model.GithubComKloudliteAPIAppsConsoleInternalEntitiesPullSecretFormat) error @@ -3080,6 +3108,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AppRouter.MaxBodySizeInMb(childComplexity), true + case "Github__com___kloudlite___operator___apis___crds___v1__AppRouter.nginxIngressAnnotations": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AppRouter.NginxIngressAnnotations == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AppRouter.NginxIngressAnnotations(childComplexity), true + case "Github__com___kloudlite___operator___apis___crds___v1__AppRouter.rateLimit": if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AppRouter.RateLimit == nil { break @@ -3465,132 +3500,6 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HPA.ThresholdMemory(childComplexity), true - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.chartName": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.ChartName == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.ChartName(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.chartRepoURL": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.ChartRepoURL == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.ChartRepoURL(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.chartVersion": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.ChartVersion == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.ChartVersion(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.jobVars": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.JobVars == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.JobVars(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.postInstall": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.PostInstall == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.PostInstall(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.postUninstall": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.PostUninstall == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.PostUninstall(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.preInstall": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.PreInstall == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.PreInstall(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.preUninstall": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.PreUninstall == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.PreUninstall(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.releaseName": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.ReleaseName == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.ReleaseName(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.values": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.Values == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec.Values(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.checkList": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.CheckList == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.CheckList(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.checks": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.Checks == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.Checks(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.isReady": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.IsReady == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.IsReady(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.lastReadyGeneration": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.LastReadyGeneration == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.LastReadyGeneration(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.lastReconcileTime": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.LastReconcileTime == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.LastReconcileTime(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.releaseNotes": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.ReleaseNotes == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.ReleaseNotes(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.releaseStatus": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.ReleaseStatus == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.ReleaseStatus(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.resources": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.Resources == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus.Resources(childComplexity), true - case "Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe.httpHeaders": if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe.HTTPHeaders == nil { break @@ -3661,34 +3570,6 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__Intercept.ToIPAddr(childComplexity), true - case "Github__com___kloudlite___operator___apis___crds___v1__JobVars.affinity": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__JobVars.Affinity == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__JobVars.Affinity(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__JobVars.backOffLimit": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__JobVars.BackOffLimit == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__JobVars.BackOffLimit(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__JobVars.nodeSelector": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__JobVars.NodeSelector == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__JobVars.NodeSelector(childComplexity), true - - case "Github__com___kloudlite___operator___apis___crds___v1__JobVars.tolerations": - if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__JobVars.Tolerations == nil { - break - } - - return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__JobVars.Tolerations(childComplexity), true - case "Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec.managedServiceRef": if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec.ManagedServiceRef == nil { break @@ -3899,6 +3780,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__RouterSpec.MaxBodySizeInMb(childComplexity), true + case "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec.nginxIngressAnnotations": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__RouterSpec.NginxIngressAnnotations == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__RouterSpec.NginxIngressAnnotations(childComplexity), true + case "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec.rateLimit": if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__RouterSpec.RateLimit == nil { break @@ -4326,6 +4214,34 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Github__com___kloudlite___operator___toolkit___reconciler__Status.Resources(childComplexity), true + case "Github__com___kloudlite___operator___toolkit___types__CPUResource.max": + if e.complexity.Github__com___kloudlite___operator___toolkit___types__CPUResource.Max == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___toolkit___types__CPUResource.Max(childComplexity), true + + case "Github__com___kloudlite___operator___toolkit___types__CPUResource.min": + if e.complexity.Github__com___kloudlite___operator___toolkit___types__CPUResource.Min == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___toolkit___types__CPUResource.Min(childComplexity), true + + case "Github__com___kloudlite___operator___toolkit___types__MemoryResource.max": + if e.complexity.Github__com___kloudlite___operator___toolkit___types__MemoryResource.Max == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___toolkit___types__MemoryResource.Max(childComplexity), true + + case "Github__com___kloudlite___operator___toolkit___types__MemoryResource.min": + if e.complexity.Github__com___kloudlite___operator___toolkit___types__MemoryResource.Min == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___toolkit___types__MemoryResource.Min(childComplexity), true + case "Github__com___kloudlite___operator___toolkit___types__ObjectReference.apiVersion": if e.complexity.Github__com___kloudlite___operator___toolkit___types__ObjectReference.APIVersion == nil { break @@ -4354,6 +4270,174 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Github__com___kloudlite___operator___toolkit___types__ObjectReference.Namespace(childComplexity), true + case "Github__com___kloudlite___operator___toolkit___types__Resource.cpu": + if e.complexity.Github__com___kloudlite___operator___toolkit___types__Resource.CPU == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___toolkit___types__Resource.CPU(childComplexity), true + + case "Github__com___kloudlite___operator___toolkit___types__Resource.memory": + if e.complexity.Github__com___kloudlite___operator___toolkit___types__Resource.Memory == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___toolkit___types__Resource.Memory(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo.name": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo.Name == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo.Name(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo.url": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo.URL == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo.URL(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo.version": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo.Version == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo.Version(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.chart": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.Chart == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.Chart(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.helmValues": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.HelmValues == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.HelmValues(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.jobVars": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.JobVars == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.JobVars(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.postInstall": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.PostInstall == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.PostInstall(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.postUninstall": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.PostUninstall == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.PostUninstall(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.preInstall": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.PreInstall == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.PreInstall(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.preUninstall": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.PreUninstall == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec.PreUninstall(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.checkList": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.CheckList == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.CheckList(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.checks": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.Checks == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.Checks(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.isReady": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.IsReady == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.IsReady(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.lastReadyGeneration": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.LastReadyGeneration == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.LastReadyGeneration(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.lastReconcileTime": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.LastReconcileTime == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.LastReconcileTime(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.releaseNotes": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.ReleaseNotes == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.ReleaseNotes(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.releaseStatus": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.ReleaseStatus == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.ReleaseStatus(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.resources": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.Resources == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus.Resources(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars.affinity": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars.Affinity == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars.Affinity(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars.nodeSelector": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars.NodeSelector == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars.NodeSelector(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars.resources": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars.Resources == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars.Resources(childComplexity), true + + case "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars.tolerations": + if e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars.Tolerations == nil { + break + } + + return e.complexity.Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars.Tolerations(childComplexity), true + case "HelmChart.apiVersion": if e.complexity.HelmChart.APIVersion == nil { break @@ -4396,6 +4480,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.HelmChart.EnvironmentName(childComplexity), true + case "HelmChart.export": + if e.complexity.HelmChart.Export == nil { + break + } + + return e.complexity.HelmChart.Export(childComplexity), true + case "HelmChart.id": if e.complexity.HelmChart.Id == nil { break @@ -6775,6 +6866,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.InfraListClusterManagedServices(childComplexity, args["search"].(*model.SearchClusterManagedService), args["pagination"].(*repos.CursorPagination)), true + case "Query.infra_listHelmTypeClusterManagedServices": + if e.complexity.Query.InfraListHelmTypeClusterManagedServices == nil { + break + } + + args, err := ec.field_Query_infra_listHelmTypeClusterManagedServices_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.InfraListHelmTypeClusterManagedServices(childComplexity, args["search"].(*model.SearchClusterManagedService), args["pagination"].(*repos.CursorPagination)), true + case "Query._service": if e.complexity.Query.__resolve__service == nil { break @@ -7730,11 +7833,9 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__EnvironmentSpecIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__ExternalAppSpecIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__HPAIn, - ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__HelmChartSpecIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__HttpGetProbeIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__HttpsIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__InterceptIn, - ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__JobVarsIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpecIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpecIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__PluginTemplateIn, @@ -7756,7 +7857,14 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn, ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn, ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__StatusIn, + ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___types__CPUResourceIn, + ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___types__MemoryResourceIn, ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___types__ObjectReferenceIn, + ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___types__ResourceIn, + ec.unmarshalInputGithub__com___kloudlite___plugin____helm____chart___api___v1__ChartInfoIn, + ec.unmarshalInputGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpecIn, + ec.unmarshalInputGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatusIn, + ec.unmarshalInputGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVarsIn, ec.unmarshalInputHelmChartIn, ec.unmarshalInputImagePullSecretIn, ec.unmarshalInputImportedManagedResourceIn, @@ -8077,8 +8185,9 @@ type Query { core_getManagedResouceOutputKeys(msvcName: String, envName:String , name: String!): [String!]! @isLoggedInAndVerified @hasAccount core_getManagedResouceOutputKeyValues(msvcName: String, envName:String, keyrefs: [ManagedResourceKeyRefIn]): [ManagedResourceKeyValueRef!]! @isLoggedInAndVerified @hasAccount - infra_listClusterManagedServices(search: SearchClusterManagedService, pagination: CursorPaginationIn): ClusterManagedServicePaginatedRecords @isLoggedInAndVerified @hasAccount - infra_getClusterManagedService(name: String!): ClusterManagedService @isLoggedInAndVerified @hasAccount + infra_listClusterManagedServices(search: SearchClusterManagedService, pagination: CursorPaginationIn): ClusterManagedServicePaginatedRecords @isLoggedInAndVerified @hasAccount + infra_getClusterManagedService(name: String!): ClusterManagedService @isLoggedInAndVerified @hasAccount + infra_listHelmTypeClusterManagedServices(search: SearchClusterManagedService, pagination: CursorPaginationIn): ClusterManagedServicePaginatedRecords @isLoggedInAndVerified @hasAccount core_listManagedResources(search: SearchManagedResources, pq: CursorPaginationIn): ManagedResourcePaginatedRecords @isLoggedInAndVerified @hasAccount core_getManagedResource(msvcName: String, envName: String, name: String!): ManagedResource @isLoggedInAndVerified @hasAccount @@ -8389,6 +8498,7 @@ type Github__com___kloudlite___operator___apis___crds___v1__AppRouter @shareable https: Github__com___kloudlite___operator___apis___crds___v1__Https ingressClass: String maxBodySizeInMB: Int + nginxIngressAnnotations: Map rateLimit: Github__com___kloudlite___operator___apis___crds___v1__RateLimit routes: [Github__com___kloudlite___operator___apis___crds___v1__Route!] } @@ -8488,30 +8598,6 @@ type Github__com___kloudlite___operator___apis___crds___v1__HPA @shareable { thresholdMemory: Int } -type Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec @shareable { - 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! -} - -type Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus @shareable { - checkList: [Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta!] - checks: Map - isReady: Boolean! - lastReadyGeneration: Int - lastReconcileTime: Date - releaseNotes: String! - releaseStatus: String! - resources: [Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef!] -} - type Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe @shareable { httpHeaders: Map path: String! @@ -8531,13 +8617,6 @@ type Github__com___kloudlite___operator___apis___crds___v1__Intercept @shareable toIPAddr: String } -type Github__com___kloudlite___operator___apis___crds___v1__JobVars @shareable { - affinity: K8s__io___api___core___v1__Affinity - backOffLimit: Int - nodeSelector: Map - tolerations: [K8s__io___api___core___v1__Toleration!] -} - type Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec @shareable { managedServiceRef: Github__com___kloudlite___operator___toolkit___types__ObjectReference! plugin: Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate! @@ -8587,6 +8666,7 @@ type Github__com___kloudlite___operator___apis___crds___v1__RouterSpec @shareabl https: Github__com___kloudlite___operator___apis___crds___v1__Https ingressClass: String maxBodySizeInMB: Int + nginxIngressAnnotations: Map rateLimit: Github__com___kloudlite___operator___apis___crds___v1__RateLimit routes: [Github__com___kloudlite___operator___apis___crds___v1__Route!] } @@ -8654,7 +8734,7 @@ type Github__com___kloudlite___operator___pkg___raw____json__RawJson @shareable type Github__com___kloudlite___operator___toolkit___plugin__Export @shareable { template: String - viaSecret: String! + viaSecret: String } type Github__com___kloudlite___operator___toolkit___reconciler__Check @shareable { @@ -8692,6 +8772,16 @@ type Github__com___kloudlite___operator___toolkit___reconciler__Status @shareabl resources: [Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef!] } +type Github__com___kloudlite___operator___toolkit___types__CPUResource @shareable { + max: String! + min: String! +} + +type Github__com___kloudlite___operator___toolkit___types__MemoryResource @shareable { + max: String! + min: String! +} + type Github__com___kloudlite___operator___toolkit___types__ObjectReference @shareable { apiVersion: String! kind: String! @@ -8699,6 +8789,45 @@ type Github__com___kloudlite___operator___toolkit___types__ObjectReference @shar namespace: String! } +type Github__com___kloudlite___operator___toolkit___types__Resource @shareable { + cpu: Github__com___kloudlite___operator___toolkit___types__CPUResource + memory: Github__com___kloudlite___operator___toolkit___types__MemoryResource +} + +type Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo @shareable { + name: String! + url: String! + version: String +} + +type Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec @shareable { + chart: Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo! + helmValues: Map! + jobVars: Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars + postInstall: String + postUninstall: String + preInstall: String + preUninstall: String +} + +type Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus @shareable { + checkList: [Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta!] + checks: Map + isReady: Boolean! + lastReadyGeneration: Int + lastReconcileTime: Date + releaseNotes: String! + releaseStatus: String! + resources: [Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef!] +} + +type Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars @shareable { + affinity: K8s__io___api___core___v1__Affinity + nodeSelector: Map + resources: Github__com___kloudlite___operator___toolkit___types__Resource + tolerations: [K8s__io___api___core___v1__Toleration!] +} + type K8s__io___api___core___v1__Affinity @shareable { nodeAffinity: K8s__io___api___core___v1__NodeAffinity podAffinity: K8s__io___api___core___v1__PodAffinity @@ -8900,6 +9029,7 @@ input Github__com___kloudlite___operator___apis___crds___v1__AppRouterIn { https: Github__com___kloudlite___operator___apis___crds___v1__HttpsIn ingressClass: String maxBodySizeInMB: Int + nginxIngressAnnotations: Map rateLimit: Github__com___kloudlite___operator___apis___crds___v1__RateLimitIn routes: [Github__com___kloudlite___operator___apis___crds___v1__RouteIn!] } @@ -8996,18 +9126,6 @@ input Github__com___kloudlite___operator___apis___crds___v1__HPAIn { thresholdMemory: Int } -input Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpecIn { - 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! -} - input Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbeIn { httpHeaders: Map path: String! @@ -9027,13 +9145,6 @@ input Github__com___kloudlite___operator___apis___crds___v1__InterceptIn { toIPAddr: String } -input Github__com___kloudlite___operator___apis___crds___v1__JobVarsIn { - affinity: K8s__io___api___core___v1__AffinityIn - backOffLimit: Int - nodeSelector: Map - tolerations: [K8s__io___api___core___v1__TolerationIn!] -} - input Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpecIn { managedServiceRef: Github__com___kloudlite___operator___toolkit___types__ObjectReferenceIn! plugin: Github__com___kloudlite___operator___apis___crds___v1__PluginTemplateIn! @@ -9083,6 +9194,7 @@ input Github__com___kloudlite___operator___apis___crds___v1__RouterSpecIn { https: Github__com___kloudlite___operator___apis___crds___v1__HttpsIn ingressClass: String maxBodySizeInMB: Int + nginxIngressAnnotations: Map rateLimit: Github__com___kloudlite___operator___apis___crds___v1__RateLimitIn routes: [Github__com___kloudlite___operator___apis___crds___v1__RouteIn!] } @@ -9150,7 +9262,7 @@ input Github__com___kloudlite___operator___pkg___raw____json__RawJsonIn { input Github__com___kloudlite___operator___toolkit___plugin__ExportIn { template: String - viaSecret: String! + viaSecret: String } input Github__com___kloudlite___operator___toolkit___reconciler__CheckIn { @@ -9188,6 +9300,16 @@ input Github__com___kloudlite___operator___toolkit___reconciler__StatusIn { resources: [Github__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn!] } +input Github__com___kloudlite___operator___toolkit___types__CPUResourceIn { + max: String! + min: String! +} + +input Github__com___kloudlite___operator___toolkit___types__MemoryResourceIn { + max: String! + min: String! +} + input Github__com___kloudlite___operator___toolkit___types__ObjectReferenceIn { apiVersion: String! kind: String! @@ -9195,6 +9317,45 @@ input Github__com___kloudlite___operator___toolkit___types__ObjectReferenceIn { namespace: String! } +input Github__com___kloudlite___operator___toolkit___types__ResourceIn { + cpu: Github__com___kloudlite___operator___toolkit___types__CPUResourceIn + memory: Github__com___kloudlite___operator___toolkit___types__MemoryResourceIn +} + +input Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfoIn { + name: String! + url: String! + version: String +} + +input Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpecIn { + chart: Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfoIn! + helmValues: Map! + jobVars: Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVarsIn + postInstall: String + postUninstall: String + preInstall: String + preUninstall: String +} + +input Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatusIn { + checkList: [Github__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn!] + checks: Map + isReady: Boolean! + lastReadyGeneration: Int + lastReconcileTime: Date + releaseNotes: String! + releaseStatus: String! + resources: [Github__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn!] +} + +input Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVarsIn { + affinity: K8s__io___api___core___v1__AffinityIn + nodeSelector: Map + resources: Github__com___kloudlite___operator___toolkit___types__ResourceIn + tolerations: [K8s__io___api___core___v1__TolerationIn!] +} + input K8s__io___api___core___v1__AffinityIn { nodeAffinity: K8s__io___api___core___v1__NodeAffinityIn podAffinity: K8s__io___api___core___v1__PodAffinityIn @@ -9615,14 +9776,15 @@ input ExternalAppIn { creationTime: Date! displayName: String! environmentName: String! + export: Github__com___kloudlite___operator___toolkit___plugin__Export id: ID! kind: String lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! markedForDeletion: Boolean metadata: Metadata @goField(name: "objectMeta") recordVersion: Int! - spec: Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec - status: Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus + spec: Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec + status: Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! updateTime: Date! } @@ -9641,9 +9803,11 @@ type HelmChartPaginatedRecords @shareable { input HelmChartIn { apiVersion: String displayName: String! + export: Github__com___kloudlite___operator___toolkit___plugin__ExportIn kind: String metadata: MetadataIn - spec: Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpecIn + spec: Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpecIn + status: Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatusIn } `, BuiltIn: false}, @@ -15739,6 +15903,65 @@ func (ec *executionContext) field_Query_infra_listClusterManagedServices_argsPag return zeroVal, nil } +func (ec *executionContext) field_Query_infra_listHelmTypeClusterManagedServices_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_infra_listHelmTypeClusterManagedServices_argsSearch(ctx, rawArgs) + if err != nil { + return nil, err + } + args["search"] = arg0 + arg1, err := ec.field_Query_infra_listHelmTypeClusterManagedServices_argsPagination(ctx, rawArgs) + if err != nil { + return nil, err + } + args["pagination"] = arg1 + return args, nil +} +func (ec *executionContext) field_Query_infra_listHelmTypeClusterManagedServices_argsSearch( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.SearchClusterManagedService, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["search"] + if !ok { + var zeroVal *model.SearchClusterManagedService + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) + if tmp, ok := rawArgs["search"]; ok { + return ec.unmarshalOSearchClusterManagedService2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐSearchClusterManagedService(ctx, tmp) + } + + var zeroVal *model.SearchClusterManagedService + return zeroVal, nil +} + +func (ec *executionContext) field_Query_infra_listHelmTypeClusterManagedServices_argsPagination( + ctx context.Context, + rawArgs map[string]interface{}, +) (*repos.CursorPagination, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["pagination"] + if !ok { + var zeroVal *repos.CursorPagination + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("pagination")) + if tmp, ok := rawArgs["pagination"]; ok { + return ec.unmarshalOCursorPaginationIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐCursorPagination(ctx, tmp) + } + + var zeroVal *repos.CursorPagination + return zeroVal, nil +} + func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -25228,6 +25451,47 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__AppRouter_nginxIngressAnnotations(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1AppRouter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AppRouter_nginxIngressAnnotations(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.NginxIngressAnnotations, nil + }) + 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_Github__com___kloudlite___operator___apis___crds___v1__AppRouter_nginxIngressAnnotations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Github__com___kloudlite___operator___apis___crds___v1__AppRouter", + 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 fc, nil +} + func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__AppRouter_rateLimit(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1AppRouter) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AppRouter_rateLimit(ctx, field) if err != nil { @@ -25759,6 +26023,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AppRouter_ingressClass(ctx, field) case "maxBodySizeInMB": return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AppRouter_maxBodySizeInMB(ctx, field) + case "nginxIngressAnnotations": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AppRouter_nginxIngressAnnotations(ctx, field) case "rateLimit": return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AppRouter_rateLimit(ctx, field) case "routes": @@ -27682,8 +27948,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartName(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartName(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_httpHeaders(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPGetProbe) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_httpHeaders(ctx, field) if err != nil { return graphql.Null } @@ -27696,38 +27962,35 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ChartName, nil + return obj.HTTPHeaders, 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___operator___apis___crds___v1__HelmChartSpec_chartName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_httpHeaders(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe", 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___apis___crds___v1__HelmChartSpec_chartRepoURL(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartRepoURL(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_path(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPGetProbe) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_path(ctx, field) if err != nil { return graphql.Null } @@ -27740,7 +28003,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ChartRepoURL, nil + return obj.Path, nil }) if err != nil { ec.Error(ctx, err) @@ -27757,9 +28020,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartRepoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe", Field: field, IsMethod: false, IsResolver: false, @@ -27770,8 +28033,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartVersion(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_port(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPGetProbe) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_port(ctx, field) if err != nil { return graphql.Null } @@ -27784,7 +28047,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ChartVersion, nil + return obj.Port, nil }) if err != nil { ec.Error(ctx, err) @@ -27796,26 +28059,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ } 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_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe", 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___crds___v1__HelmChartSpec_jobVars(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_jobVars(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Https_clusterIssuer(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPS) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_clusterIssuer(ctx, field) if err != nil { return graphql.Null } @@ -27828,7 +28091,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.JobVars, nil + return obj.ClusterIssuer, nil }) if err != nil { ec.Error(ctx, err) @@ -27837,36 +28100,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1JobVars) + res := resTmp.(*string) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__JobVars2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1JobVars(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_jobVars(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_clusterIssuer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Https", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "affinity": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__JobVars_affinity(ctx, field) - case "backOffLimit": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__JobVars_backOffLimit(ctx, field) - case "nodeSelector": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__JobVars_nodeSelector(ctx, field) - case "tolerations": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__JobVars_tolerations(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__JobVars", 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___crds___v1__HelmChartSpec_postInstall(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_postInstall(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Https_enabled(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPS) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_enabled(ctx, field) if err != nil { return graphql.Null } @@ -27879,35 +28132,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PostInstall, nil + return obj.Enabled, 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___apis___crds___v1__HelmChartSpec_postInstall(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Https", 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___crds___v1__HelmChartSpec_postUninstall(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_postUninstall(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Https_forceRedirect(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPS) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_forceRedirect(ctx, field) if err != nil { return graphql.Null } @@ -27920,7 +28176,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PostUninstall, nil + return obj.ForceRedirect, nil }) if err != nil { ec.Error(ctx, err) @@ -27929,26 +28185,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ 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___crds___v1__HelmChartSpec_postUninstall(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_forceRedirect(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Https", 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___crds___v1__HelmChartSpec_preInstall(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_preInstall(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Intercept_enabled(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Intercept) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_enabled(ctx, field) if err != nil { return graphql.Null } @@ -27961,7 +28217,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PreInstall, nil + return obj.Enabled, nil }) if err != nil { ec.Error(ctx, err) @@ -27970,26 +28226,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ 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___crds___v1__HelmChartSpec_preInstall(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Intercept", 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___crds___v1__HelmChartSpec_preUninstall(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_preUninstall(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Intercept_portMappings(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Intercept) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_portMappings(ctx, field) if err != nil { return graphql.Null } @@ -28002,7 +28258,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PreUninstall, nil + return obj.PortMappings, nil }) if err != nil { ec.Error(ctx, err) @@ -28011,26 +28267,34 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.GithubComKloudliteOperatorApisCrdsV1AppInterceptPortMappings) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappings2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1AppInterceptPortMappingsᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_preUninstall(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_portMappings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Intercept", 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 "appPort": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappings_appPort(ctx, field) + case "devicePort": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappings_devicePort(ctx, field) + case "protocol": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappings_protocol(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappings", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_releaseName(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_releaseName(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Intercept_toDevice(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Intercept) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_toDevice(ctx, field) if err != nil { return graphql.Null } @@ -28043,7 +28307,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReleaseName, nil + return obj.ToDevice, nil }) if err != nil { ec.Error(ctx, err) @@ -28057,9 +28321,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_releaseName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_toDevice(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Intercept", Field: field, IsMethod: false, IsResolver: false, @@ -28070,8 +28334,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_values(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_values(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Intercept_toIPAddr(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Intercept) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_toIPAddr(ctx, field) if err != nil { return graphql.Null } @@ -28084,38 +28348,35 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Values, nil + return obj.ToIPAddr, 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.marshalNMap2map(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_values(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_toIPAddr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Intercept", 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___crds___v1__HelmChartStatus_checkList(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_checkList(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec_managedServiceRef(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1ManagedResourceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec_managedServiceRef(ctx, field) if err != nil { return graphql.Null } @@ -28128,47 +28389,48 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() 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.ManagedServiceRef, 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.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) + res := resTmp.(*model.GithubComKloudliteOperatorToolkitTypesObjectReference) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerCheckMetaᚄ(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___operator___toolkit___types__ObjectReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesObjectReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_checkList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec_managedServiceRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus", + Object: "Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec", 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___toolkit___reconciler__CheckMeta_debug(ctx, field) - case "description": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(ctx, field) - case "hide": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(ctx, field) + case "apiVersion": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_apiVersion(ctx, field) + case "kind": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_kind(ctx, field) case "name": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(ctx, field) - case "title": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_name(ctx, field) + case "namespace": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_namespace(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___types__ObjectReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_checks(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_checks(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec_plugin(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1ManagedResourceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec_plugin(ctx, field) if err != nil { return graphql.Null } @@ -28181,35 +28443,48 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() 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.Plugin, 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.(*model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___operator___apis___crds___v1__PluginTemplate2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1PluginTemplate(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_checks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec_plugin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus", + Object: "Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec", 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") + switch field.Name { + case "apiVersion": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_apiVersion(ctx, field) + case "export": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_export(ctx, field) + case "kind": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_kind(ctx, field) + case "spec": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_spec(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_isReady(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_isReady(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec_plugin(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1ManagedServiceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec_plugin(ctx, field) if err != nil { return graphql.Null } @@ -28222,38 +28497,45 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() 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.Plugin, 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.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__PluginTemplate2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1PluginTemplate(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_isReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec_plugin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus", + Object: "Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec", 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") + switch field.Name { + case "apiVersion": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_apiVersion(ctx, field) + case "export": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_export(ctx, field) + case "kind": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_kind(ctx, field) + case "spec": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_spec(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_lastReadyGeneration(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_lastReadyGeneration(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec_serviceTemplate(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1ManagedServiceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec_serviceTemplate(ctx, field) if err != nil { return graphql.Null } @@ -28266,7 +28548,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() 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.ServiceTemplate, nil }) if err != nil { ec.Error(ctx, err) @@ -28275,26 +28557,36 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(*int) + res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__PluginTemplate2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1PluginTemplate(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_lastReadyGeneration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec_serviceTemplate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus", + Object: "Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec", 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 "apiVersion": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_apiVersion(ctx, field) + case "export": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_export(ctx, field) + case "kind": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_kind(ctx, field) + case "spec": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_spec(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_lastReconcileTime(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_lastReconcileTime(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -28307,35 +28599,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() 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.APIVersion, 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___apis___crds___v1__HelmChartStatus_lastReconcileTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus", + Object: "Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", 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___apis___crds___v1__HelmChartStatus_releaseNotes(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_releaseNotes(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_export(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_export(ctx, field) if err != nil { return graphql.Null } @@ -28348,38 +28643,41 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReleaseNotes, nil + return obj.Export, 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.GithubComKloudliteOperatorToolkitPluginExport) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___toolkit___plugin__Export2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitPluginExport(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_releaseNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_export(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus", + Object: "Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", 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 "template": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_template(ctx, field) + case "viaSecret": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_viaSecret(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___plugin__Export", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_releaseStatus(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_releaseStatus(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_kind(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_kind(ctx, field) if err != nil { return graphql.Null } @@ -28392,7 +28690,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReleaseStatus, nil + return obj.Kind, nil }) if err != nil { ec.Error(ctx, err) @@ -28409,9 +28707,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_releaseStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus", + Object: "Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", Field: field, IsMethod: false, IsResolver: false, @@ -28422,8 +28720,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_resources(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_resources(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_spec(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_spec(ctx, field) if err != nil { return graphql.Null } @@ -28436,7 +28734,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() 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.Spec, nil }) if err != nil { ec.Error(ctx, err) @@ -28445,36 +28743,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRef2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRefᚄ(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus", + Object: "Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", 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___toolkit___reconciler__ResourceRef_apiVersion(ctx, field) - case "kind": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(ctx, field) - case "name": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(ctx, field) - case "namespace": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", field.Name) + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_httpHeaders(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPGetProbe) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_httpHeaders(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Probe_failureThreshold(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_failureThreshold(ctx, field) if err != nil { return graphql.Null } @@ -28487,7 +28775,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HTTPHeaders, nil + return obj.FailureThreshold, nil }) if err != nil { ec.Error(ctx, err) @@ -28496,26 +28784,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(*int) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_httpHeaders(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_failureThreshold(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", 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 Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_path(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPGetProbe) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_path(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Probe_httpGet(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_httpGet(ctx, field) if err != nil { return graphql.Null } @@ -28528,38 +28816,43 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() 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.HTTPGet, 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.GithubComKloudliteOperatorApisCrdsV1HTTPGetProbe) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__HttpGetProbe2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HTTPGetProbe(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_httpGet(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", 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 "httpHeaders": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_httpHeaders(ctx, field) + case "path": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_path(ctx, field) + case "port": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_port(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_port(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPGetProbe) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_port(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Probe_initialDelay(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_initialDelay(ctx, field) if err != nil { return graphql.Null } @@ -28572,26 +28865,64 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Port, nil + return obj.InitialDelay, 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.marshalOInt2ᚖint(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_initialDelay(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", + 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) _Github__com___kloudlite___operator___apis___crds___v1__Probe_interval(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_interval(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Interval, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(int) + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*int) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_interval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", Field: field, IsMethod: false, IsResolver: false, @@ -28602,8 +28933,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Https_clusterIssuer(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPS) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_clusterIssuer(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Probe_shell(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_shell(ctx, field) if err != nil { return graphql.Null } @@ -28616,7 +28947,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClusterIssuer, nil + return obj.Shell, nil }) if err != nil { ec.Error(ctx, err) @@ -28625,26 +28956,30 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1ShellProbe) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__ShellProbe2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ShellProbe(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_clusterIssuer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_shell(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Https", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", 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 "command": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ShellProbe_command(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__ShellProbe", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Https_enabled(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPS) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_enabled(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Probe_tcp(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_tcp(ctx, field) if err != nil { return graphql.Null } @@ -28657,7 +28992,52 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Enabled, nil + return obj.TCP, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1TCPProbe) + fc.Result = res + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__TcpProbe2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1TCPProbe(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_tcp(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "port": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__TcpProbe_port(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__TcpProbe", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Probe_type(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -28669,26 +29049,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ } 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___apis___crds___v1__Https_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Https", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", 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___apis___crds___v1__Https_forceRedirect(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPS) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_forceRedirect(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RateLimit_connections(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RateLimit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_connections(ctx, field) if err != nil { return graphql.Null } @@ -28701,7 +29081,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ForceRedirect, nil + return obj.Connections, nil }) if err != nil { ec.Error(ctx, err) @@ -28710,26 +29090,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ 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_Github__com___kloudlite___operator___apis___crds___v1__Https_forceRedirect(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_connections(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Https", + Object: "Github__com___kloudlite___operator___apis___crds___v1__RateLimit", 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___operator___apis___crds___v1__Intercept_enabled(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Intercept) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_enabled(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RateLimit_enabled(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RateLimit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_enabled(ctx, field) if err != nil { return graphql.Null } @@ -28756,9 +29136,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Intercept", + Object: "Github__com___kloudlite___operator___apis___crds___v1__RateLimit", Field: field, IsMethod: false, IsResolver: false, @@ -28769,8 +29149,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Intercept_portMappings(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Intercept) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_portMappings(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rpm(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RateLimit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rpm(ctx, field) if err != nil { return graphql.Null } @@ -28783,7 +29163,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PortMappings, nil + return obj.Rpm, nil }) if err != nil { ec.Error(ctx, err) @@ -28792,34 +29172,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.GithubComKloudliteOperatorApisCrdsV1AppInterceptPortMappings) + res := resTmp.(*int) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappings2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1AppInterceptPortMappingsᚄ(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_portMappings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rpm(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Intercept", + Object: "Github__com___kloudlite___operator___apis___crds___v1__RateLimit", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "appPort": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappings_appPort(ctx, field) - case "devicePort": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappings_devicePort(ctx, field) - case "protocol": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappings_protocol(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappings", 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___apis___crds___v1__Intercept_toDevice(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Intercept) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_toDevice(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rps(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RateLimit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rps(ctx, field) if err != nil { return graphql.Null } @@ -28832,7 +29204,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ToDevice, nil + return obj.Rps, nil }) if err != nil { ec.Error(ctx, err) @@ -28841,26 +29213,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ 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___crds___v1__Intercept_toDevice(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rps(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Intercept", + Object: "Github__com___kloudlite___operator___apis___crds___v1__RateLimit", 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___crds___v1__Intercept_toIPAddr(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Intercept) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Intercept_toIPAddr(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Route_app(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Route) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_app(ctx, field) if err != nil { return graphql.Null } @@ -28873,23 +29245,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ToIPAddr, nil + return obj.App, 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___operator___apis___crds___v1__Intercept_toIPAddr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_app(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Intercept", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Route", Field: field, IsMethod: false, IsResolver: false, @@ -28900,8 +29275,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__JobVars_affinity(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1JobVars) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__JobVars_affinity(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Route_path(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Route) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_path(ctx, field) if err != nil { return graphql.Null } @@ -28914,43 +29289,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Affinity, nil + return obj.Path, 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.K8sIoAPICoreV1Affinity) + res := resTmp.(string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__Affinity2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1Affinity(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__JobVars_affinity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__JobVars", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Route", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "nodeAffinity": - return ec.fieldContext_K8s__io___api___core___v1__Affinity_nodeAffinity(ctx, field) - case "podAffinity": - return ec.fieldContext_K8s__io___api___core___v1__Affinity_podAffinity(ctx, field) - case "podAntiAffinity": - return ec.fieldContext_K8s__io___api___core___v1__Affinity_podAntiAffinity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__Affinity", 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___crds___v1__JobVars_backOffLimit(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1JobVars) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__JobVars_backOffLimit(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Route_port(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Route) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_port(ctx, field) if err != nil { return graphql.Null } @@ -28963,23 +29333,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BackOffLimit, nil + return obj.Port, 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.(int) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__JobVars_backOffLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__JobVars", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Route", Field: field, IsMethod: false, IsResolver: false, @@ -28990,8 +29363,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__JobVars_nodeSelector(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1JobVars) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__JobVars_nodeSelector(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Route_rewrite(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Route) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_rewrite(ctx, field) if err != nil { return graphql.Null } @@ -29004,7 +29377,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NodeSelector, nil + return obj.Rewrite, nil }) if err != nil { ec.Error(ctx, err) @@ -29013,26 +29386,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__JobVars_nodeSelector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_rewrite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__JobVars", + Object: "Github__com___kloudlite___operator___apis___crds___v1__Route", 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 Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__JobVars_tolerations(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1JobVars) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__JobVars_tolerations(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_backendProtocol(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_backendProtocol(ctx, field) if err != nil { return graphql.Null } @@ -29045,7 +29418,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tolerations, nil + return obj.BackendProtocol, nil }) if err != nil { ec.Error(ctx, err) @@ -29054,38 +29427,75 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.K8sIoAPICoreV1Toleration) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__Toleration2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1Tolerationᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_backendProtocol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", + 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) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_basicAuth(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_basicAuth(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.BasicAuth, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1BasicAuth) + fc.Result = res + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__BasicAuth2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1BasicAuth(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__JobVars_tolerations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_basicAuth(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__JobVars", + Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "effect": - return ec.fieldContext_K8s__io___api___core___v1__Toleration_effect(ctx, field) - case "key": - return ec.fieldContext_K8s__io___api___core___v1__Toleration_key(ctx, field) - case "operator": - return ec.fieldContext_K8s__io___api___core___v1__Toleration_operator(ctx, field) - case "tolerationSeconds": - return ec.fieldContext_K8s__io___api___core___v1__Toleration_tolerationSeconds(ctx, field) - case "value": - return ec.fieldContext_K8s__io___api___core___v1__Toleration_value(ctx, field) + case "enabled": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__BasicAuth_enabled(ctx, field) + case "secretName": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__BasicAuth_secretName(ctx, field) + case "username": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__BasicAuth_username(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__Toleration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__BasicAuth", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec_managedServiceRef(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1ManagedResourceSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec_managedServiceRef(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_cors(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_cors(ctx, field) if err != nil { return graphql.Null } @@ -29098,48 +29508,43 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ManagedServiceRef, nil + return obj.Cors, 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.GithubComKloudliteOperatorToolkitTypesObjectReference) + res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1Cors) fc.Result = res - return ec.marshalNGithub__com___kloudlite___operator___toolkit___types__ObjectReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesObjectReference(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__Cors2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1Cors(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec_managedServiceRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_cors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", 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___toolkit___types__ObjectReference_apiVersion(ctx, field) - case "kind": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_kind(ctx, field) - case "name": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_name(ctx, field) - case "namespace": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_namespace(ctx, field) + case "allowCredentials": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Cors_allowCredentials(ctx, field) + case "enabled": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Cors_enabled(ctx, field) + case "origins": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Cors_origins(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___types__ObjectReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__Cors", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec_plugin(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1ManagedResourceSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec_plugin(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_domains(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_domains(ctx, field) if err != nil { return graphql.Null } @@ -29152,7 +29557,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Plugin, nil + return obj.Domains, nil }) if err != nil { ec.Error(ctx, err) @@ -29164,36 +29569,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ } return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) + res := resTmp.([]string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___operator___apis___crds___v1__PluginTemplate2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1PluginTemplate(ctx, field.Selections, res) + return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec_plugin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", 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___apis___crds___v1__PluginTemplate_apiVersion(ctx, field) - case "export": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_export(ctx, field) - case "kind": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_kind(ctx, field) - case "spec": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_spec(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", 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___crds___v1__ManagedServiceSpec_plugin(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1ManagedServiceSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec_plugin(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_https(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_https(ctx, field) if err != nil { return graphql.Null } @@ -29206,7 +29601,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Plugin, nil + return obj.HTTPS, nil }) if err != nil { ec.Error(ctx, err) @@ -29215,36 +29610,34 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) + res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1HTTPS) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__PluginTemplate2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1PluginTemplate(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__Https2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HTTPS(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec_plugin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_https(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", 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___apis___crds___v1__PluginTemplate_apiVersion(ctx, field) - case "export": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_export(ctx, field) - case "kind": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_kind(ctx, field) - case "spec": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_spec(ctx, field) + case "clusterIssuer": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_clusterIssuer(ctx, field) + case "enabled": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_enabled(ctx, field) + case "forceRedirect": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_forceRedirect(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__Https", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec_serviceTemplate(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1ManagedServiceSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec_serviceTemplate(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_ingressClass(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_ingressClass(ctx, field) if err != nil { return graphql.Null } @@ -29257,7 +29650,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ServiceTemplate, nil + return obj.IngressClass, nil }) if err != nil { ec.Error(ctx, err) @@ -29266,36 +29659,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) + res := resTmp.(*string) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__PluginTemplate2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1PluginTemplate(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec_serviceTemplate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_ingressClass(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec", + Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", 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___apis___crds___v1__PluginTemplate_apiVersion(ctx, field) - case "export": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_export(ctx, field) - case "kind": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_kind(ctx, field) - case "spec": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_spec(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", 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___crds___v1__PluginTemplate_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_apiVersion(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_maxBodySizeInMB(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_maxBodySizeInMB(ctx, field) if err != nil { return graphql.Null } @@ -29308,38 +29691,76 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() 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.MaxBodySizeInMb, 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.marshalOInt2ᚖint(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_maxBodySizeInMB(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", + 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) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_nginxIngressAnnotations(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_nginxIngressAnnotations(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.NginxIngressAnnotations, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(string) + if resTmp == nil { + return graphql.Null + } + 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___operator___apis___crds___v1__PluginTemplate_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_nginxIngressAnnotations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", + Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", 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___apis___crds___v1__PluginTemplate_export(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_export(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_rateLimit(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_rateLimit(ctx, field) if err != nil { return graphql.Null } @@ -29352,7 +29773,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Export, nil + return obj.RateLimit, nil }) if err != nil { ec.Error(ctx, err) @@ -29361,32 +29782,36 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorToolkitPluginExport) + res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1RateLimit) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___toolkit___plugin__Export2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitPluginExport(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__RateLimit2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1RateLimit(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_export(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_rateLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", + Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "template": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_template(ctx, field) - case "viaSecret": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_viaSecret(ctx, field) + case "connections": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_connections(ctx, field) + case "enabled": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_enabled(ctx, field) + case "rpm": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rpm(ctx, field) + case "rps": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rps(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___plugin__Export", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__RateLimit", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_kind(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_kind(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_routes(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_routes(ctx, field) if err != nil { return graphql.Null } @@ -29399,38 +29824,45 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() 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.Routes, 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.GithubComKloudliteOperatorApisCrdsV1Route) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__Route2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1Routeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_routes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", + Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", 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 "app": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_app(ctx, field) + case "path": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_path(ctx, field) + case "port": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_port(ctx, field) + case "rewrite": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_rewrite(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__Route", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_spec(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate_spec(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__ShellProbe_command(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1ShellProbe) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ShellProbe_command(ctx, field) if err != nil { return graphql.Null } @@ -29443,7 +29875,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Spec, nil + return obj.Command, nil }) if err != nil { ec.Error(ctx, err) @@ -29452,26 +29884,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ 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___crds___v1__PluginTemplate_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ShellProbe_command(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate", + Object: "Github__com___kloudlite___operator___apis___crds___v1__ShellProbe", 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___crds___v1__Probe_failureThreshold(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_failureThreshold(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings_devicePort(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1SvcInterceptPortMappings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings_devicePort(ctx, field) if err != nil { return graphql.Null } @@ -29484,23 +29916,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FailureThreshold, nil + return obj.DevicePort, 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.(int) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_failureThreshold(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings_devicePort(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", + Object: "Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings", Field: field, IsMethod: false, IsResolver: false, @@ -29511,8 +29946,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Probe_httpGet(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_httpGet(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings_servicePort(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1SvcInterceptPortMappings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings_servicePort(ctx, field) if err != nil { return graphql.Null } @@ -29525,43 +29960,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HTTPGet, nil + return obj.ServicePort, 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.GithubComKloudliteOperatorApisCrdsV1HTTPGetProbe) + res := resTmp.(int) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__HttpGetProbe2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HTTPGetProbe(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_httpGet(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings_servicePort(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", + Object: "Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "httpHeaders": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_httpHeaders(ctx, field) - case "path": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_path(ctx, field) - case "port": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe_port(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe", 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___apis___crds___v1__Probe_initialDelay(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_initialDelay(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__TcpProbe_port(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1TCPProbe) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__TcpProbe_port(ctx, field) if err != nil { return graphql.Null } @@ -29574,23 +30004,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InitialDelay, nil + return obj.Port, 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.(int) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_initialDelay(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__TcpProbe_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", + Object: "Github__com___kloudlite___operator___apis___crds___v1__TcpProbe", Field: field, IsMethod: false, IsResolver: false, @@ -29601,8 +30034,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Probe_interval(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_interval(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_globalIP(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisNetworkingV1ServiceBindingSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_globalIP(ctx, field) if err != nil { return graphql.Null } @@ -29615,35 +30048,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Interval, nil + return obj.GlobalIP, 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.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_interval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_globalIP(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", + Object: "Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec", 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___crds___v1__Probe_shell(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_shell(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_hostname(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisNetworkingV1ServiceBindingSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_hostname(ctx, field) if err != nil { return graphql.Null } @@ -29656,7 +30092,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Shell, nil + return obj.Hostname, nil }) if err != nil { ec.Error(ctx, err) @@ -29665,30 +30101,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1ShellProbe) + res := resTmp.(*string) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__ShellProbe2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ShellProbe(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_shell(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_hostname(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", + Object: "Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "command": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ShellProbe_command(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__ShellProbe", 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___crds___v1__Probe_tcp(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_tcp(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_ports(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisNetworkingV1ServiceBindingSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_ports(ctx, field) if err != nil { return graphql.Null } @@ -29701,7 +30133,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TCP, nil + return obj.Ports, nil }) if err != nil { ec.Error(ctx, err) @@ -29710,30 +30142,40 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1TCPProbe) + res := resTmp.([]*model.K8sIoAPICoreV1ServicePort) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__TcpProbe2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1TCPProbe(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__ServicePort2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ServicePortᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_tcp(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_ports(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", + Object: "Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "appProtocol": + return ec.fieldContext_K8s__io___api___core___v1__ServicePort_appProtocol(ctx, field) + case "name": + return ec.fieldContext_K8s__io___api___core___v1__ServicePort_name(ctx, field) + case "nodePort": + return ec.fieldContext_K8s__io___api___core___v1__ServicePort_nodePort(ctx, field) case "port": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__TcpProbe_port(ctx, field) + return ec.fieldContext_K8s__io___api___core___v1__ServicePort_port(ctx, field) + case "protocol": + return ec.fieldContext_K8s__io___api___core___v1__ServicePort_protocol(ctx, field) + case "targetPort": + return ec.fieldContext_K8s__io___api___core___v1__ServicePort_targetPort(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__TcpProbe", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__ServicePort", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Probe_type(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Probe) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Probe_type(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_serviceIP(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisNetworkingV1ServiceBindingSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_serviceIP(ctx, field) if err != nil { return graphql.Null } @@ -29746,26 +30188,23 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() 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.ServiceIP, 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___operator___apis___crds___v1__Probe_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_serviceIP(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Probe", + Object: "Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec", Field: field, IsMethod: false, IsResolver: false, @@ -29776,8 +30215,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RateLimit_connections(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RateLimit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_connections(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_serviceRef(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisNetworkingV1ServiceBindingSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_serviceRef(ctx, field) if err != nil { return graphql.Null } @@ -29790,7 +30229,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Connections, nil + return obj.ServiceRef, nil }) if err != nil { ec.Error(ctx, err) @@ -29799,26 +30238,32 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(*int) + res := resTmp.(*model.GithubComKloudliteOperatorApisCommonTypesNamespacedResourceRef) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___common____types__NamespacedResourceRef2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCommonTypesNamespacedResourceRef(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_connections(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_serviceRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RateLimit", + Object: "Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec", 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 "name": + return ec.fieldContext_Github__com___kloudlite___operator___apis___common____types__NamespacedResourceRef_name(ctx, field) + case "namespace": + return ec.fieldContext_Github__com___kloudlite___operator___apis___common____types__NamespacedResourceRef_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___common____types__NamespacedResourceRef", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RateLimit_enabled(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RateLimit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_enabled(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 } @@ -29831,7 +30276,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Enabled, nil + return obj.Debug, nil }) if err != nil { ec.Error(ctx, err) @@ -29840,26 +30285,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ 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___operator___apis___crds___v1__RateLimit_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RateLimit", + 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 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___apis___crds___v1__RateLimit_rpm(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RateLimit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rpm(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 } @@ -29872,7 +30317,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Rpm, nil + return obj.Error, nil }) if err != nil { ec.Error(ctx, err) @@ -29881,26 +30326,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ 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___operator___apis___crds___v1__RateLimit_rpm(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RateLimit", + 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 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___crds___v1__RateLimit_rps(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RateLimit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rps(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 } @@ -29913,7 +30358,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Rps, nil + return obj.Generation, nil }) if err != nil { ec.Error(ctx, err) @@ -29927,9 +30372,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rps(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_generation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RateLimit", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, @@ -29940,8 +30385,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Route_app(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Route) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_app(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 } @@ -29954,26 +30399,64 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.App, nil + return obj.Info, 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.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_info(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 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) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Message, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(string) + if resTmp == nil { + return graphql.Null + } + 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___operator___apis___crds___v1__Route_app(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Route", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, @@ -29984,8 +30467,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__Route_path(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Route) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_path(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 } @@ -29998,38 +30481,76 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() 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.StartedAt, 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.marshalODate2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_startedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 Date does not have child fields") + }, + } + 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) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.State, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(string) + if resTmp == nil { + return graphql.Null + } + 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ᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorState(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Route", + 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___crds___v1__Route_port(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Route) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_port(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 } @@ -30042,7 +30563,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Port, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -30054,26 +30575,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ } return graphql.Null } - res := resTmp.(int) + res := resTmp.(bool) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Route", + 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 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___apis___crds___v1__Route_rewrite(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1Route) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_rewrite(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 } @@ -30086,7 +30607,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Rewrite, nil + return obj.Debug, nil }) if err != nil { ec.Error(ctx, err) @@ -30100,9 +30621,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_rewrite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__Route", + Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -30113,8 +30634,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_backendProtocol(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_backendProtocol(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 } @@ -30127,7 +30648,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BackendProtocol, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -30141,9 +30662,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_backendProtocol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", + Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -30154,8 +30675,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_basicAuth(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_basicAuth(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(ctx, field) if err != nil { return graphql.Null } @@ -30168,7 +30689,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BasicAuth, nil + return obj.Hide, nil }) if err != nil { ec.Error(ctx, err) @@ -30177,34 +30698,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1BasicAuth) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__BasicAuth2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1BasicAuth(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_basicAuth(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", + 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 "enabled": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__BasicAuth_enabled(ctx, field) - case "secretName": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__BasicAuth_secretName(ctx, field) - case "username": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__BasicAuth_username(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__BasicAuth", 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___crds___v1__RouterSpec_cors(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_cors(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 } @@ -30217,43 +30730,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cors, 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.(*model.GithubComKloudliteOperatorApisCrdsV1Cors) + res := resTmp.(string) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__Cors2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1Cors(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_cors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", + 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 "allowCredentials": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Cors_allowCredentials(ctx, field) - case "enabled": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Cors_enabled(ctx, field) - case "origins": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Cors_origins(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__Cors", 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___crds___v1__RouterSpec_domains(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_domains(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 } @@ -30266,7 +30774,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Domains, nil + return obj.Title, nil }) if err != nil { ec.Error(ctx, err) @@ -30278,14 +30786,14 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ } 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___crds___v1__RouterSpec_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", + Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -30296,8 +30804,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_https(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_https(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 } @@ -30310,43 +30818,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HTTPS, nil + return obj.APIVersion, 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.GithubComKloudliteOperatorApisCrdsV1HTTPS) + res := resTmp.(string) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__Https2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HTTPS(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_https(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", + 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) { - switch field.Name { - case "clusterIssuer": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_clusterIssuer(ctx, field) - case "enabled": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_enabled(ctx, field) - case "forceRedirect": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Https_forceRedirect(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__Https", 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___crds___v1__RouterSpec_ingressClass(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_ingressClass(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 } @@ -30359,23 +30862,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IngressClass, 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.(*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___operator___apis___crds___v1__RouterSpec_ingressClass(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", + Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", Field: field, IsMethod: false, IsResolver: false, @@ -30386,8 +30892,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_maxBodySizeInMB(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_maxBodySizeInMB(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 } @@ -30400,35 +30906,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxBodySizeInMb, 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.(*int) + res := resTmp.(string) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_maxBodySizeInMB(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", + 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___crds___v1__RouterSpec_rateLimit(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_rateLimit(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 } @@ -30441,45 +30950,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RateLimit, nil + 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.(*model.GithubComKloudliteOperatorApisCrdsV1RateLimit) + res := resTmp.(string) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__RateLimit2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1RateLimit(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_rateLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", + 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) { - switch field.Name { - case "connections": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_connections(ctx, field) - case "enabled": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_enabled(ctx, field) - case "rpm": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rpm(ctx, field) - case "rps": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RateLimit_rps(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__RateLimit", 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___crds___v1__RouterSpec_routes(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1RouterSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_routes(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 } @@ -30492,7 +30994,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Routes, nil + return obj.CheckList, nil }) if err != nil { ec.Error(ctx, err) @@ -30501,36 +31003,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.GithubComKloudliteOperatorApisCrdsV1Route) + res := resTmp.([]*model.GithubComKloudliteOperatorPkgOperatorCheckMeta) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__Route2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1Routeᚄ(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorCheckMetaᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_routes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checkList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__RouterSpec", + 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) { switch field.Name { - case "app": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_app(ctx, field) - case "path": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_path(ctx, field) - case "port": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_port(ctx, field) - case "rewrite": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__Route_rewrite(ctx, field) + 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 "hide": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(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___apis___crds___v1__Route", field.Name) + 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___apis___crds___v1__ShellProbe_command(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1ShellProbe) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__ShellProbe_command(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 } @@ -30543,7 +31047,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Command, nil + return obj.Checks, nil }) if err != nil { ec.Error(ctx, err) @@ -30552,26 +31056,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ 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___apis___crds___v1__ShellProbe_command(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__ShellProbe", + 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___apis___crds___v1__SvcInterceptPortMappings_devicePort(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1SvcInterceptPortMappings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings_devicePort(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 } @@ -30584,7 +31088,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DevicePort, nil + return obj.IsReady, nil }) if err != nil { ec.Error(ctx, err) @@ -30596,26 +31100,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ } return graphql.Null } - res := resTmp.(int) + res := resTmp.(bool) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings_devicePort(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_isReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings", + 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___apis___crds___v1__SvcInterceptPortMappings_servicePort(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1SvcInterceptPortMappings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings_servicePort(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 } @@ -30628,26 +31132,23 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ServicePort, nil + return obj.LastReadyGeneration, 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.(*int) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings_servicePort(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReadyGeneration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__SvcInterceptPortMappings", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", Field: field, IsMethod: false, IsResolver: false, @@ -30658,8 +31159,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__TcpProbe_port(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1TCPProbe) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__TcpProbe_port(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 } @@ -30672,38 +31173,35 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Port, nil + return obj.LastReconcileTime, 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.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__TcpProbe_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReconcileTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___crds___v1__TcpProbe", + 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 Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_globalIP(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisNetworkingV1ServiceBindingSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_globalIP(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 } @@ -30716,38 +31214,39 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___network }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GlobalIP, nil + return obj.Message, 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.GithubComKloudliteOperatorPkgRawJSONRawJSON) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___pkg___raw____json__RawJson2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgRawJSONRawJSON(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_globalIP(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec", + 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 "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___apis___networking___v1__ServiceBindingSpec_hostname(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisNetworkingV1ServiceBindingSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_hostname(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 } @@ -30760,7 +31259,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___network }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Hostname, nil + return obj.Resources, nil }) if err != nil { ec.Error(ctx, err) @@ -30769,26 +31268,36 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___network if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.GithubComKloudliteOperatorPkgOperatorResourceRef) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__ResourceRef2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorResourceRefᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_hostname(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec", + 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 "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___apis___networking___v1__ServiceBindingSpec_ports(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisNetworkingV1ServiceBindingSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_ports(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 } @@ -30801,7 +31310,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___network }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ports, nil + return obj.RawMessage, nil }) if err != nil { ec.Error(ctx, err) @@ -30810,40 +31319,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___network if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.K8sIoAPICoreV1ServicePort) + res := resTmp.(any) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__ServicePort2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ServicePortᚄ(ctx, field.Selections, res) + return ec.marshalOAny2interface(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_ports(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___raw____json__RawJson_RawMessage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec", + 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) { - switch field.Name { - case "appProtocol": - return ec.fieldContext_K8s__io___api___core___v1__ServicePort_appProtocol(ctx, field) - case "name": - return ec.fieldContext_K8s__io___api___core___v1__ServicePort_name(ctx, field) - case "nodePort": - return ec.fieldContext_K8s__io___api___core___v1__ServicePort_nodePort(ctx, field) - case "port": - return ec.fieldContext_K8s__io___api___core___v1__ServicePort_port(ctx, field) - case "protocol": - return ec.fieldContext_K8s__io___api___core___v1__ServicePort_protocol(ctx, field) - case "targetPort": - return ec.fieldContext_K8s__io___api___core___v1__ServicePort_targetPort(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__ServicePort", field.Name) + return nil, errors.New("field of type Any does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_serviceIP(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisNetworkingV1ServiceBindingSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_serviceIP(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___plugin__Export_template(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitPluginExport) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_template(ctx, field) if err != nil { return graphql.Null } @@ -30856,7 +31351,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___network }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ServiceIP, nil + return obj.Template, nil }) if err != nil { ec.Error(ctx, err) @@ -30870,9 +31365,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___network return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_serviceIP(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec", + Object: "Github__com___kloudlite___operator___toolkit___plugin__Export", Field: field, IsMethod: false, IsResolver: false, @@ -30883,8 +31378,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_serviceRef(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisNetworkingV1ServiceBindingSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_serviceRef(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___plugin__Export_viaSecret(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitPluginExport) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_viaSecret(ctx, field) if err != nil { return graphql.Null } @@ -30897,7 +31392,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___network }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ServiceRef, nil + return obj.ViaSecret, nil }) if err != nil { ec.Error(ctx, err) @@ -30906,32 +31401,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___network if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisCommonTypesNamespacedResourceRef) + res := resTmp.(*string) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___common____types__NamespacedResourceRef2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCommonTypesNamespacedResourceRef(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec_serviceRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_viaSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___networking___v1__ServiceBindingSpec", + Object: "Github__com___kloudlite___operator___toolkit___plugin__Export", 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___common____types__NamespacedResourceRef_name(ctx, field) - case "namespace": - return ec.fieldContext_Github__com___kloudlite___operator___apis___common____types__NamespacedResourceRef_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___common____types__NamespacedResourceRef", 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__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___toolkit___reconciler__Check_debug(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_debug(ctx, field) if err != nil { return graphql.Null } @@ -30958,9 +31447,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_debug(_ 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___toolkit___reconciler__Check", Field: field, IsMethod: false, IsResolver: false, @@ -30971,8 +31460,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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___toolkit___reconciler__Check_error(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_error(ctx, field) if err != nil { return graphql.Null } @@ -30999,9 +31488,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_error(_ 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___toolkit___reconciler__Check", Field: field, IsMethod: false, IsResolver: false, @@ -31012,8 +31501,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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___toolkit___reconciler__Check_generation(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_generation(ctx, field) if err != nil { return graphql.Null } @@ -31040,9 +31529,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_generation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_generation(_ 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___toolkit___reconciler__Check", Field: field, IsMethod: false, IsResolver: false, @@ -31053,8 +31542,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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___toolkit___reconciler__Check_info(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_info(ctx, field) if err != nil { return graphql.Null } @@ -31081,9 +31570,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_info(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_info(_ 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___toolkit___reconciler__Check", Field: field, IsMethod: false, IsResolver: false, @@ -31094,8 +31583,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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___toolkit___reconciler__Check_message(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_message(ctx, field) if err != nil { return graphql.Null } @@ -31122,9 +31611,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_message(_ 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___toolkit___reconciler__Check", Field: field, IsMethod: false, IsResolver: false, @@ -31135,8 +31624,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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___toolkit___reconciler__Check_startedAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_startedAt(ctx, field) if err != nil { return graphql.Null } @@ -31163,9 +31652,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_startedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_startedAt(_ 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___toolkit___reconciler__Check", Field: field, IsMethod: false, IsResolver: false, @@ -31176,8 +31665,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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___toolkit___reconciler__Check_state(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_state(ctx, field) if err != nil { return graphql.Null } @@ -31199,26 +31688,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorPkgOperatorState) + res := resTmp.(*model.GithubComKloudliteOperatorToolkitReconcilerState) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__State2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorState(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__State2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerState(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_state(_ 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___toolkit___reconciler__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 Github__com___kloudlite___operator___pkg___operator__State does not have child fields") + return nil, errors.New("field of type Github__com___kloudlite___operator___toolkit___reconciler__State does not have child fields") }, } 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___toolkit___reconciler__Check_status(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_status(ctx, field) if err != nil { return graphql.Null } @@ -31248,9 +31737,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_status(_ 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___toolkit___reconciler__Check", Field: field, IsMethod: false, IsResolver: false, @@ -31261,8 +31750,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(ctx, field) if err != nil { return graphql.Null } @@ -31289,9 +31778,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -31302,8 +31791,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) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(ctx, field) if err != nil { return graphql.Null } @@ -31330,9 +31819,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -31343,8 +31832,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(ctx, field) if err != nil { return graphql.Null } @@ -31371,9 +31860,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -31384,8 +31873,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(ctx, field) if err != nil { return graphql.Null } @@ -31415,9 +31904,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__CheckMeta_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -31428,8 +31917,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(ctx, field) if err != nil { return graphql.Null } @@ -31459,9 +31948,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__CheckMeta_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -31472,8 +31961,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -31503,9 +31992,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_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", Field: field, IsMethod: false, IsResolver: false, @@ -31516,8 +32005,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(ctx, field) if err != nil { return graphql.Null } @@ -31547,9 +32036,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(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", Field: field, IsMethod: false, IsResolver: false, @@ -31560,8 +32049,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) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(ctx, field) if err != nil { return graphql.Null } @@ -31591,9 +32080,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_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", Field: field, IsMethod: false, IsResolver: false, @@ -31604,8 +32093,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(ctx, field) if err != nil { return graphql.Null } @@ -31635,9 +32124,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(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", Field: field, IsMethod: false, IsResolver: false, @@ -31648,8 +32137,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) _Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(ctx, field) if err != nil { return graphql.Null } @@ -31662,7 +32151,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.CheckList, nil + return ec.resolvers.Github__com___kloudlite___operator___toolkit___reconciler__Status().CheckList(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -31671,38 +32160,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.GithubComKloudliteOperatorPkgOperatorCheckMeta) + res := resTmp.([]*model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorCheckMetaᚄ(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerCheckMetaᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checkList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", 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 "debug": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(ctx, field) case "description": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(ctx, field) case "hide": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(ctx, field) case "name": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(ctx, field) case "title": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_title(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__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, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", field.Name) }, } 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) _Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(ctx, field) if err != nil { return graphql.Null } @@ -31715,7 +32204,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.Checks, nil + return ec.resolvers.Github__com___kloudlite___operator___toolkit___reconciler__Status().Checks(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -31729,12 +32218,12 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", 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 Map does not have child fields") }, @@ -31742,8 +32231,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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) _Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx, field) if err != nil { return graphql.Null } @@ -31773,9 +32262,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_isReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", Field: field, IsMethod: false, IsResolver: false, @@ -31786,8 +32275,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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) _Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx, field) if err != nil { return graphql.Null } @@ -31809,14 +32298,14 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(*int) + res := resTmp.(int64) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalOInt2int64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReadyGeneration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", Field: field, IsMethod: false, IsResolver: false, @@ -31827,8 +32316,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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) _Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx, field) if err != nil { return graphql.Null } @@ -31841,7 +32330,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.LastReconcileTime, nil + return ec.resolvers.Github__com___kloudlite___operator___toolkit___reconciler__Status().LastReconcileTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -31855,12 +32344,12 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReconcileTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", 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 Date does not have child fields") }, @@ -31868,53 +32357,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.Message, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.GithubComKloudliteOperatorPkgRawJSONRawJSON) - fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___raw____json__RawJson2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgRawJSONRawJSON(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - 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) { - 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__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) _Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(ctx, field) if err != nil { return graphql.Null } @@ -31927,7 +32371,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.Resources, nil + return ec.resolvers.Github__com___kloudlite___operator___toolkit___reconciler__Status().Resources(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -31936,36 +32380,36 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.GithubComKloudliteOperatorPkgOperatorResourceRef) + res := resTmp.([]*model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__ResourceRef2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorResourceRefᚄ(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRef2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRefᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", 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 "apiVersion": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(ctx, field) case "kind": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(ctx, field) case "name": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(ctx, field) case "namespace": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__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, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", field.Name) }, } 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) _Github__com___kloudlite___operator___toolkit___types__CPUResource_max(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesCPUResource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__CPUResource_max(ctx, field) if err != nil { return graphql.Null } @@ -31978,35 +32422,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.Max, 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.(any) + 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(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__CPUResource_max(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___raw____json__RawJson", + Object: "Github__com___kloudlite___operator___toolkit___types__CPUResource", 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) _Github__com___kloudlite___operator___toolkit___plugin__Export_template(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitPluginExport) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_template(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__CPUResource_min(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesCPUResource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__CPUResource_min(ctx, field) if err != nil { return graphql.Null } @@ -32019,23 +32466,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___plug }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Template, nil + return obj.Min, 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___operator___toolkit___plugin__Export_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__CPUResource_min(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___plugin__Export", + Object: "Github__com___kloudlite___operator___toolkit___types__CPUResource", Field: field, IsMethod: false, IsResolver: false, @@ -32046,8 +32496,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___plugin__Export_viaSecret(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitPluginExport) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_viaSecret(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__MemoryResource_max(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesMemoryResource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__MemoryResource_max(ctx, field) if err != nil { return graphql.Null } @@ -32060,7 +32510,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___plug }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ViaSecret, nil + return obj.Max, nil }) if err != nil { ec.Error(ctx, err) @@ -32077,9 +32527,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___plug return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_viaSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__MemoryResource_max(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___plugin__Export", + Object: "Github__com___kloudlite___operator___toolkit___types__MemoryResource", Field: field, IsMethod: false, IsResolver: false, @@ -32090,8 +32540,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_debug(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_debug(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__MemoryResource_min(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesMemoryResource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__MemoryResource_min(ctx, field) if err != nil { return graphql.Null } @@ -32104,23 +32554,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.Min, 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___operator___toolkit___reconciler__Check_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__MemoryResource_min(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___toolkit___types__MemoryResource", Field: field, IsMethod: false, IsResolver: false, @@ -32131,8 +32584,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_error(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_error(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__ObjectReference_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -32145,23 +32598,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.APIVersion, 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___operator___toolkit___reconciler__Check_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___toolkit___types__ObjectReference", Field: field, IsMethod: false, IsResolver: false, @@ -32172,8 +32628,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_generation(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_generation(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__ObjectReference_kind(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_kind(ctx, field) if err != nil { return graphql.Null } @@ -32186,35 +32642,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.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.(*int) + res := resTmp.(string) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_generation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___toolkit___types__ObjectReference", 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___toolkit___reconciler__Check_info(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_info(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__ObjectReference_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_name(ctx, field) if err != nil { return graphql.Null } @@ -32227,23 +32686,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.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.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_info(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___toolkit___types__ObjectReference", Field: field, IsMethod: false, IsResolver: false, @@ -32254,8 +32716,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_message(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_message(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__ObjectReference_namespace(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_namespace(ctx, field) if err != nil { return graphql.Null } @@ -32268,23 +32730,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.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.(*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___operator___toolkit___reconciler__Check_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___toolkit___types__ObjectReference", Field: field, IsMethod: false, IsResolver: false, @@ -32295,8 +32760,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_startedAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_startedAt(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__Resource_cpu(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesResource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__Resource_cpu(ctx, field) if err != nil { return graphql.Null } @@ -32309,7 +32774,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.CPU, nil }) if err != nil { ec.Error(ctx, err) @@ -32318,26 +32783,32 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.GithubComKloudliteOperatorToolkitTypesCPUResource) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___toolkit___types__CPUResource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesCPUResource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_startedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__Resource_cpu(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___toolkit___types__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") + switch field.Name { + case "max": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__CPUResource_max(ctx, field) + case "min": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__CPUResource_min(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___types__CPUResource", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_state(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_state(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__Resource_memory(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesResource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__Resource_memory(ctx, field) if err != nil { return graphql.Null } @@ -32350,7 +32821,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.Memory, nil }) if err != nil { ec.Error(ctx, err) @@ -32359,26 +32830,32 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorToolkitReconcilerState) + res := resTmp.(*model.GithubComKloudliteOperatorToolkitTypesMemoryResource) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__State2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerState(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___toolkit___types__MemoryResource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesMemoryResource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__Resource_memory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___toolkit___types__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___operator___toolkit___reconciler__State does not have child fields") + switch field.Name { + case "max": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__MemoryResource_max(ctx, field) + case "min": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__MemoryResource_min(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___types__MemoryResource", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_status(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_status(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1ChartInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_name(ctx, field) if err != nil { return graphql.Null } @@ -32391,7 +32868,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -32403,26 +32880,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco } 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___toolkit___reconciler__Check_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo", 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___toolkit___reconciler__CheckMeta_debug(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_url(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1ChartInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_url(ctx, field) if err != nil { return graphql.Null } @@ -32435,35 +32912,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.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.(*bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo", 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___toolkit___reconciler__CheckMeta_description(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_version(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1ChartInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_version(ctx, field) if err != nil { return graphql.Null } @@ -32476,7 +32956,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -32490,9 +32970,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo", Field: field, IsMethod: false, IsResolver: false, @@ -32503,8 +32983,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_chart(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_chart(ctx, field) if err != nil { return graphql.Null } @@ -32517,35 +32997,46 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Hide, nil + return obj.Chart, 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.GithubComKloudlitePluginHelmChartAPIV1ChartInfo) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1ChartInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_chart(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec", 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") + switch field.Name { + case "name": + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_name(ctx, field) + case "url": + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_url(ctx, field) + case "version": + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_version(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_helmValues(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_helmValues(ctx, field) if err != nil { return graphql.Null } @@ -32558,7 +33049,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.HelmValues, nil }) if err != nil { ec.Error(ctx, err) @@ -32570,26 +33061,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco } return graphql.Null } - res := resTmp.(string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_helmValues(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec", 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___toolkit___reconciler__CheckMeta_title(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_jobVars(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_jobVars(ctx, field) if err != nil { return graphql.Null } @@ -32602,38 +33093,45 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.JobVars, 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.GithubComKloudlitePluginHelmChartAPIV1HelmJobVars) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1HelmJobVars(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_jobVars(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec", 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 "affinity": + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_affinity(ctx, field) + case "nodeSelector": + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_nodeSelector(ctx, field) + case "resources": + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_resources(ctx, field) + case "tolerations": + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_tolerations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_postInstall(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_postInstall(ctx, field) if err != nil { return graphql.Null } @@ -32646,26 +33144,23 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.PostInstall, 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___operator___toolkit___reconciler__ResourceRef_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_postInstall(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec", Field: field, IsMethod: false, IsResolver: false, @@ -32676,8 +33171,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_postUninstall(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_postUninstall(ctx, field) if err != nil { return graphql.Null } @@ -32690,26 +33185,23 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.PostUninstall, 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___operator___toolkit___reconciler__ResourceRef_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_postUninstall(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec", Field: field, IsMethod: false, IsResolver: false, @@ -32720,8 +33212,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_preInstall(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_preInstall(ctx, field) if err != nil { return graphql.Null } @@ -32734,26 +33226,23 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.PreInstall, 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___operator___toolkit___reconciler__ResourceRef_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_preInstall(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec", Field: field, IsMethod: false, IsResolver: false, @@ -32764,8 +33253,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_preUninstall(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_preUninstall(ctx, field) if err != nil { return graphql.Null } @@ -32778,26 +33267,23 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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.PreUninstall, 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___operator___toolkit___reconciler__ResourceRef_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_preUninstall(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec", Field: field, IsMethod: false, IsResolver: false, @@ -32808,8 +33294,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_checkList(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_checkList(ctx, field) if err != nil { return graphql.Null } @@ -32822,7 +33308,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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___operator___toolkit___reconciler__Status().CheckList(rctx, obj) + return obj.CheckList, nil }) if err != nil { ec.Error(ctx, err) @@ -32836,12 +33322,12 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerCheckMetaᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_checkList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus", 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 "debug": @@ -32861,8 +33347,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_checks(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_checks(ctx, field) if err != nil { return graphql.Null } @@ -32875,7 +33361,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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___operator___toolkit___reconciler__Status().Checks(rctx, obj) + return obj.Checks, nil }) if err != nil { ec.Error(ctx, err) @@ -32889,12 +33375,12 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_checks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus", 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 Map does not have child fields") }, @@ -32902,8 +33388,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_isReady(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_isReady(ctx, field) if err != nil { return graphql.Null } @@ -32933,9 +33419,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_isReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus", Field: field, IsMethod: false, IsResolver: false, @@ -32946,8 +33432,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_lastReadyGeneration(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_lastReadyGeneration(ctx, field) if err != nil { return graphql.Null } @@ -32969,14 +33455,14 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco if resTmp == nil { return graphql.Null } - res := resTmp.(int64) + res := resTmp.(*int) fc.Result = res - return ec.marshalOInt2int64(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_lastReadyGeneration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus", Field: field, IsMethod: false, IsResolver: false, @@ -32987,8 +33473,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_lastReconcileTime(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_lastReconcileTime(ctx, field) if err != nil { return graphql.Null } @@ -33001,7 +33487,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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___operator___toolkit___reconciler__Status().LastReconcileTime(rctx, obj) + return obj.LastReconcileTime, nil }) if err != nil { ec.Error(ctx, err) @@ -33015,12 +33501,12 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_lastReconcileTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus", 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") }, @@ -33028,8 +33514,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_releaseNotes(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_releaseNotes(ctx, field) if err != nil { return graphql.Null } @@ -33042,7 +33528,95 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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___operator___toolkit___reconciler__Status().Resources(rctx, obj) + return obj.ReleaseNotes, 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_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_releaseNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus", + 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) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_releaseStatus(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_releaseStatus(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.ReleaseStatus, 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_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_releaseStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus", + 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) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_resources(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_resources(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Resources, nil }) if err != nil { ec.Error(ctx, err) @@ -33056,12 +33630,12 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRef2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRefᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus", 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 "apiVersion": @@ -33079,8 +33653,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__ObjectReference_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_apiVersion(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_affinity(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmJobVars) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_affinity(ctx, field) if err != nil { return graphql.Null } @@ -33093,38 +33667,43 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___type }() 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.Affinity, 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.K8sIoAPICoreV1Affinity) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__Affinity2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1Affinity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_affinity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___types__ObjectReference", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars", 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 "nodeAffinity": + return ec.fieldContext_K8s__io___api___core___v1__Affinity_nodeAffinity(ctx, field) + case "podAffinity": + return ec.fieldContext_K8s__io___api___core___v1__Affinity_podAffinity(ctx, field) + case "podAntiAffinity": + return ec.fieldContext_K8s__io___api___core___v1__Affinity_podAntiAffinity(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__Affinity", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__ObjectReference_kind(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_kind(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_nodeSelector(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmJobVars) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_nodeSelector(ctx, field) if err != nil { return graphql.Null } @@ -33137,38 +33716,35 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___type }() 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.NodeSelector, 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___operator___toolkit___types__ObjectReference_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_nodeSelector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___types__ObjectReference", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars", 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___toolkit___types__ObjectReference_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_name(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_resources(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmJobVars) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_resources(ctx, field) if err != nil { return graphql.Null } @@ -33181,38 +33757,41 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___type }() 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.Resources, 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.GithubComKloudliteOperatorToolkitTypesResource) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___toolkit___types__Resource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesResource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___types__ObjectReference", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars", 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 "cpu": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__Resource_cpu(ctx, field) + case "memory": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__Resource_memory(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___types__Resource", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__ObjectReference_namespace(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitTypesObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_namespace(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_tolerations(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmJobVars) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_tolerations(ctx, field) if err != nil { return graphql.Null } @@ -33225,31 +33804,40 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___type }() 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.Tolerations, 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.K8sIoAPICoreV1Toleration) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__Toleration2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1Tolerationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___types__ObjectReference_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_tolerations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___types__ObjectReference", + Object: "Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars", 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 "effect": + return ec.fieldContext_K8s__io___api___core___v1__Toleration_effect(ctx, field) + case "key": + return ec.fieldContext_K8s__io___api___core___v1__Toleration_key(ctx, field) + case "operator": + return ec.fieldContext_K8s__io___api___core___v1__Toleration_operator(ctx, field) + case "tolerationSeconds": + return ec.fieldContext_K8s__io___api___core___v1__Toleration_tolerationSeconds(ctx, field) + case "value": + return ec.fieldContext_K8s__io___api___core___v1__Toleration_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__Toleration", field.Name) }, } return fc, nil @@ -33524,6 +34112,53 @@ func (ec *executionContext) fieldContext_HelmChart_environmentName(_ context.Con return fc, nil } +func (ec *executionContext) _HelmChart_export(ctx context.Context, field graphql.CollectedField, obj *entities.HelmChart) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HelmChart_export(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.HelmChart().Export(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.GithubComKloudliteOperatorToolkitPluginExport) + fc.Result = res + return ec.marshalOGithub__com___kloudlite___operator___toolkit___plugin__Export2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitPluginExport(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HelmChart_export(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HelmChart", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "template": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_template(ctx, field) + case "viaSecret": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___plugin__Export_viaSecret(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___plugin__Export", field.Name) + }, + } + return fc, nil +} + func (ec *executionContext) _HelmChart_id(ctx context.Context, field graphql.CollectedField, obj *entities.HelmChart) (ret graphql.Marshaler) { fc, err := ec.fieldContext_HelmChart_id(ctx, field) if err != nil { @@ -33826,9 +34461,9 @@ func (ec *executionContext) _HelmChart_spec(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) + res := resTmp.(*model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__HelmChartSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HelmChartSpec(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1HelmChartSpec(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_HelmChart_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -33839,28 +34474,22 @@ func (ec *executionContext) fieldContext_HelmChart_spec(_ context.Context, field IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "chartName": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartName(ctx, field) - case "chartRepoURL": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartRepoURL(ctx, field) - case "chartVersion": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartVersion(ctx, field) + case "chart": + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_chart(ctx, field) + case "helmValues": + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_helmValues(ctx, field) case "jobVars": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_jobVars(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_jobVars(ctx, field) case "postInstall": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_postInstall(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_postInstall(ctx, field) case "postUninstall": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_postUninstall(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_postUninstall(ctx, field) case "preInstall": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_preInstall(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_preInstall(ctx, field) case "preUninstall": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_preUninstall(ctx, field) - case "releaseName": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_releaseName(ctx, field) - case "values": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_values(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_preUninstall(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec", field.Name) }, } return fc, nil @@ -33889,9 +34518,9 @@ func (ec *executionContext) _HelmChart_status(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus) + res := resTmp.(*model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__HelmChartStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HelmChartStatus(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1HelmChartStatus(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_HelmChart_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -33903,23 +34532,23 @@ func (ec *executionContext) fieldContext_HelmChart_status(_ context.Context, fie Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "checkList": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_checkList(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_checkList(ctx, field) case "checks": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_checks(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_checks(ctx, field) case "isReady": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_isReady(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_isReady(ctx, field) case "lastReadyGeneration": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_lastReadyGeneration(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_lastReadyGeneration(ctx, field) case "lastReconcileTime": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_lastReconcileTime(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_lastReconcileTime(ctx, field) case "releaseNotes": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_releaseNotes(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_releaseNotes(ctx, field) case "releaseStatus": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_releaseStatus(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_releaseStatus(ctx, field) case "resources": - return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_resources(ctx, field) + return ec.fieldContext_Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_resources(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus", field.Name) }, } return fc, nil @@ -34122,6 +34751,8 @@ func (ec *executionContext) fieldContext_HelmChartEdge_node(_ context.Context, f return ec.fieldContext_HelmChart_displayName(ctx, field) case "environmentName": return ec.fieldContext_HelmChart_environmentName(ctx, field) + case "export": + return ec.fieldContext_HelmChart_export(ctx, field) case "id": return ec.fieldContext_HelmChart_id(ctx, field) case "kind": @@ -42851,6 +43482,8 @@ func (ec *executionContext) fieldContext_Mutation_core_createHelmChart(ctx conte return ec.fieldContext_HelmChart_displayName(ctx, field) case "environmentName": return ec.fieldContext_HelmChart_environmentName(ctx, field) + case "export": + return ec.fieldContext_HelmChart_export(ctx, field) case "id": return ec.fieldContext_HelmChart_id(ctx, field) case "kind": @@ -42966,6 +43599,8 @@ func (ec *executionContext) fieldContext_Mutation_core_updateHelmChart(ctx conte return ec.fieldContext_HelmChart_displayName(ctx, field) case "environmentName": return ec.fieldContext_HelmChart_environmentName(ctx, field) + case "export": + return ec.fieldContext_HelmChart_export(ctx, field) case "id": return ec.fieldContext_HelmChart_id(ctx, field) case "kind": @@ -48075,6 +48710,8 @@ func (ec *executionContext) fieldContext_Query_core_getHelmChart(ctx context.Con return ec.fieldContext_HelmChart_displayName(ctx, field) case "environmentName": return ec.fieldContext_HelmChart_environmentName(ctx, field) + case "export": + return ec.fieldContext_HelmChart_export(ctx, field) case "id": return ec.fieldContext_HelmChart_id(ctx, field) case "kind": @@ -50223,6 +50860,95 @@ func (ec *executionContext) fieldContext_Query_infra_getClusterManagedService(ct return fc, nil } +func (ec *executionContext) _Query_infra_listHelmTypeClusterManagedServices(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listHelmTypeClusterManagedServices(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraListHelmTypeClusterManagedServices(rctx, fc.Args["search"].(*model.SearchClusterManagedService), fc.Args["pagination"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.ClusterManagedServicePaginatedRecords + return zeroVal, 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 { + var zeroVal *model.ClusterManagedServicePaginatedRecords + return zeroVal, 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.(*model.ClusterManagedServicePaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/console/internal/app/graph/model.ClusterManagedServicePaginatedRecords`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.ClusterManagedServicePaginatedRecords) + fc.Result = res + return ec.marshalOClusterManagedServicePaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐClusterManagedServicePaginatedRecords(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_infra_listHelmTypeClusterManagedServices(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 "edges": + return ec.fieldContext_ClusterManagedServicePaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ClusterManagedServicePaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ClusterManagedServicePaginatedRecords_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ClusterManagedServicePaginatedRecords", 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_infra_listHelmTypeClusterManagedServices_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + func (ec *executionContext) _Query_core_listManagedResources(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Query_core_listManagedResources(ctx, field) if err != nil { @@ -53532,6 +54258,8 @@ func (ec *executionContext) fieldContext_Router_spec(_ context.Context, field gr return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_ingressClass(ctx, field) case "maxBodySizeInMB": return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_maxBodySizeInMB(ctx, field) + case "nginxIngressAnnotations": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_nginxIngressAnnotations(ctx, field) case "rateLimit": return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_rateLimit(ctx, field) case "routes": @@ -60219,7 +60947,7 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a asMap[k] = v } - fieldsInOrder := [...]string{"backendProtocol", "basicAuth", "cors", "domains", "https", "ingressClass", "maxBodySizeInMB", "rateLimit", "routes"} + fieldsInOrder := [...]string{"backendProtocol", "basicAuth", "cors", "domains", "https", "ingressClass", "maxBodySizeInMB", "nginxIngressAnnotations", "rateLimit", "routes"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -60275,6 +61003,13 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a return it, err } it.MaxBodySizeInMb = data + case "nginxIngressAnnotations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nginxIngressAnnotations")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.NginxIngressAnnotations = data case "rateLimit": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rateLimit")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__RateLimitIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1RateLimitIn(ctx, v) @@ -60925,89 +61660,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a return it, nil } -func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__HelmChartSpecIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpecIn, error) { - var it model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpecIn - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"chartName", "chartRepoURL", "chartVersion", "jobVars", "postInstall", "postUninstall", "preInstall", "preUninstall", "values"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "chartName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chartName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.ChartName = data - case "chartRepoURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chartRepoURL")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.ChartRepoURL = data - case "chartVersion": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chartVersion")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.ChartVersion = data - case "jobVars": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jobVars")) - data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__JobVarsIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1JobVarsIn(ctx, v) - if err != nil { - return it, err - } - it.JobVars = data - case "postInstall": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("postInstall")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PostInstall = data - case "postUninstall": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("postUninstall")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PostUninstall = data - case "preInstall": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("preInstall")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PreInstall = data - case "preUninstall": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("preUninstall")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PreUninstall = data - case "values": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("values")) - data, err := ec.unmarshalNMap2map(ctx, v) - if err != nil { - return it, err - } - it.Values = data - } - } - - return it, nil -} - func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__HttpGetProbeIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorApisCrdsV1HTTPGetProbeIn, error) { var it model.GithubComKloudliteOperatorApisCrdsV1HTTPGetProbeIn asMap := map[string]interface{}{} @@ -61138,54 +61790,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a return it, nil } -func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__JobVarsIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorApisCrdsV1JobVarsIn, error) { - var it model.GithubComKloudliteOperatorApisCrdsV1JobVarsIn - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"affinity", "backOffLimit", "nodeSelector", "tolerations"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "affinity": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("affinity")) - data, err := ec.unmarshalOK8s__io___api___core___v1__AffinityIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1AffinityIn(ctx, v) - if err != nil { - return it, err - } - it.Affinity = data - case "backOffLimit": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backOffLimit")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - it.BackOffLimit = data - case "nodeSelector": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nodeSelector")) - data, err := ec.unmarshalOMap2map(ctx, v) - if err != nil { - return it, err - } - it.NodeSelector = data - case "tolerations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tolerations")) - data, err := ec.unmarshalOK8s__io___api___core___v1__TolerationIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TolerationInᚄ(ctx, v) - if err != nil { - return it, err - } - it.Tolerations = data - } - } - - return it, nil -} - func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpecIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorApisCrdsV1ManagedResourceSpecIn, error) { var it model.GithubComKloudliteOperatorApisCrdsV1ManagedResourceSpecIn asMap := map[string]interface{}{} @@ -61474,7 +62078,7 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a asMap[k] = v } - fieldsInOrder := [...]string{"backendProtocol", "basicAuth", "cors", "domains", "https", "ingressClass", "maxBodySizeInMB", "rateLimit", "routes"} + fieldsInOrder := [...]string{"backendProtocol", "basicAuth", "cors", "domains", "https", "ingressClass", "maxBodySizeInMB", "nginxIngressAnnotations", "rateLimit", "routes"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -61530,6 +62134,13 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a return it, err } it.MaxBodySizeInMb = data + case "nginxIngressAnnotations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nginxIngressAnnotations")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.NginxIngressAnnotations = data case "rateLimit": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rateLimit")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__RateLimitIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1RateLimitIn(ctx, v) @@ -61995,7 +62606,7 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___t it.Template = data case "viaSecret": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("viaSecret")) - data, err := ec.unmarshalNString2string(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } @@ -62185,14 +62796,336 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___t return it, nil } -func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__StatusIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorToolkitReconcilerStatusIn, error) { - var it model.GithubComKloudliteOperatorToolkitReconcilerStatusIn +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__StatusIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorToolkitReconcilerStatusIn, error) { + var it model.GithubComKloudliteOperatorToolkitReconcilerStatusIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"checkList", "checks", "isReady", "lastReadyGeneration", "lastReconcileTime", "resources"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "checkList": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("checkList")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerCheckMetaInᚄ(ctx, v) + if err != nil { + return it, err + } + it.CheckList = data + case "checks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("checks")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Checks = data + case "isReady": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.IsReady = data + case "lastReadyGeneration": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastReadyGeneration")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.LastReadyGeneration = data + case "lastReconcileTime": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastReconcileTime")) + data, err := ec.unmarshalODate2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.LastReconcileTime = data + case "resources": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRefInᚄ(ctx, v) + if err != nil { + return it, err + } + it.Resources = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___toolkit___types__CPUResourceIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorToolkitTypesCPUResourceIn, error) { + var it model.GithubComKloudliteOperatorToolkitTypesCPUResourceIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"max", "min"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "max": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("max")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Max = data + case "min": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Min = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___toolkit___types__MemoryResourceIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorToolkitTypesMemoryResourceIn, error) { + var it model.GithubComKloudliteOperatorToolkitTypesMemoryResourceIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"max", "min"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "max": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("max")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Max = data + case "min": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Min = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___toolkit___types__ObjectReferenceIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorToolkitTypesObjectReferenceIn, error) { + var it model.GithubComKloudliteOperatorToolkitTypesObjectReferenceIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"apiVersion", "kind", "name", "namespace"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "apiVersion": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.APIVersion = data + case "kind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Kind = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "namespace": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Namespace = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___toolkit___types__ResourceIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorToolkitTypesResourceIn, error) { + var it model.GithubComKloudliteOperatorToolkitTypesResourceIn asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"checkList", "checks", "isReady", "lastReadyGeneration", "lastReconcileTime", "resources"} + fieldsInOrder := [...]string{"cpu", "memory"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "cpu": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cpu")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___toolkit___types__CPUResourceIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesCPUResourceIn(ctx, v) + if err != nil { + return it, err + } + it.CPU = data + case "memory": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("memory")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___toolkit___types__MemoryResourceIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesMemoryResourceIn(ctx, v) + if err != nil { + return it, err + } + it.Memory = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___plugin____helm____chart___api___v1__ChartInfoIn(ctx context.Context, obj interface{}) (model.GithubComKloudlitePluginHelmChartAPIV1ChartInfoIn, error) { + var it model.GithubComKloudlitePluginHelmChartAPIV1ChartInfoIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"name", "url", "version"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "url": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.URL = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpecIn(ctx context.Context, obj interface{}) (model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpecIn, error) { + var it model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpecIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"chart", "helmValues", "jobVars", "postInstall", "postUninstall", "preInstall", "preUninstall"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "chart": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chart")) + data, err := ec.unmarshalNGithub__com___kloudlite___plugin____helm____chart___api___v1__ChartInfoIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1ChartInfoIn(ctx, v) + if err != nil { + return it, err + } + it.Chart = data + case "helmValues": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("helmValues")) + data, err := ec.unmarshalNMap2map(ctx, v) + if err != nil { + return it, err + } + it.HelmValues = data + case "jobVars": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jobVars")) + data, err := ec.unmarshalOGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVarsIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1HelmJobVarsIn(ctx, v) + if err != nil { + return it, err + } + it.JobVars = data + case "postInstall": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("postInstall")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PostInstall = data + case "postUninstall": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("postUninstall")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PostUninstall = data + case "preInstall": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("preInstall")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PreInstall = data + case "preUninstall": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("preUninstall")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PreUninstall = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatusIn(ctx context.Context, obj interface{}) (model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatusIn, error) { + var it model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatusIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"checkList", "checks", "isReady", "lastReadyGeneration", "lastReconcileTime", "releaseNotes", "releaseStatus", "resources"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -62234,6 +63167,20 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___t return it, err } it.LastReconcileTime = data + case "releaseNotes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("releaseNotes")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.ReleaseNotes = data + case "releaseStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("releaseStatus")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.ReleaseStatus = data case "resources": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRefInᚄ(ctx, v) @@ -62247,48 +63194,48 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___t return it, nil } -func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___toolkit___types__ObjectReferenceIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorToolkitTypesObjectReferenceIn, error) { - var it model.GithubComKloudliteOperatorToolkitTypesObjectReferenceIn +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVarsIn(ctx context.Context, obj interface{}) (model.GithubComKloudlitePluginHelmChartAPIV1HelmJobVarsIn, error) { + var it model.GithubComKloudlitePluginHelmChartAPIV1HelmJobVarsIn asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"apiVersion", "kind", "name", "namespace"} + fieldsInOrder := [...]string{"affinity", "nodeSelector", "resources", "tolerations"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "apiVersion": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) - data, err := ec.unmarshalNString2string(ctx, v) + case "affinity": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("affinity")) + data, err := ec.unmarshalOK8s__io___api___core___v1__AffinityIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1AffinityIn(ctx, v) if err != nil { return it, err } - it.APIVersion = data - case "kind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) - data, err := ec.unmarshalNString2string(ctx, v) + it.Affinity = data + case "nodeSelector": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nodeSelector")) + data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { return it, err } - it.Kind = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) + it.NodeSelector = data + case "resources": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___toolkit___types__ResourceIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesResourceIn(ctx, v) if err != nil { return it, err } - it.Name = data - case "namespace": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace")) - data, err := ec.unmarshalNString2string(ctx, v) + it.Resources = data + case "tolerations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tolerations")) + data, err := ec.unmarshalOK8s__io___api___core___v1__TolerationIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TolerationInᚄ(ctx, v) if err != nil { return it, err } - it.Namespace = data + it.Tolerations = data } } @@ -62302,7 +63249,7 @@ func (ec *executionContext) unmarshalInputHelmChartIn(ctx context.Context, obj i asMap[k] = v } - fieldsInOrder := [...]string{"apiVersion", "displayName", "kind", "metadata", "spec"} + fieldsInOrder := [...]string{"apiVersion", "displayName", "export", "kind", "metadata", "spec", "status"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -62323,6 +63270,15 @@ func (ec *executionContext) unmarshalInputHelmChartIn(ctx context.Context, obj i return it, err } it.DisplayName = data + case "export": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("export")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___toolkit___plugin__ExportIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitPluginExportIn(ctx, v) + if err != nil { + return it, err + } + if err = ec.resolvers.HelmChartIn().Export(ctx, &it, data); err != nil { + return it, err + } case "kind": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalOString2string(ctx, v) @@ -62341,13 +63297,22 @@ func (ec *executionContext) unmarshalInputHelmChartIn(ctx context.Context, obj i } case "spec": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) - data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__HelmChartSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HelmChartSpecIn(ctx, v) + data, err := ec.unmarshalOGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1HelmChartSpecIn(ctx, v) if err != nil { return it, err } if err = ec.resolvers.HelmChartIn().Spec(ctx, &it, data); err != nil { return it, err } + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatusIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1HelmChartStatusIn(ctx, v) + if err != nil { + return it, err + } + if err = ec.resolvers.HelmChartIn().Status(ctx, &it, data); err != nil { + return it, err + } } } @@ -67694,6 +68659,8 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__AppRouter_ingressClass(ctx, field, obj) case "maxBodySizeInMB": out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__AppRouter_maxBodySizeInMB(ctx, field, obj) + case "nginxIngressAnnotations": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__AppRouter_nginxIngressAnnotations(ctx, field, obj) case "rateLimit": out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__AppRouter_rateLimit(ctx, field, obj) case "routes": @@ -68348,131 +69315,6 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ return out } -var github__com___kloudlite___operator___apis___crds___v1__HelmChartSpecImplementors = []string{"Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec"} - -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___crds___v1__HelmChartSpecImplementors) - - 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___crds___v1__HelmChartSpec") - case "chartName": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "chartRepoURL": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartRepoURL(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "chartVersion": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_chartVersion(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "jobVars": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_jobVars(ctx, field, obj) - case "postInstall": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_postInstall(ctx, field, obj) - case "postUninstall": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_postUninstall(ctx, field, obj) - case "preInstall": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_preInstall(ctx, field, obj) - case "preUninstall": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_preUninstall(ctx, field, obj) - case "releaseName": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_releaseName(ctx, field, obj) - case "values": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec_values(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___crds___v1__HelmChartStatusImplementors = []string{"Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus"} - -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___crds___v1__HelmChartStatusImplementors) - - 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___crds___v1__HelmChartStatus") - case "checkList": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_checkList(ctx, field, obj) - case "checks": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_checks(ctx, field, obj) - case "isReady": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_isReady(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "lastReadyGeneration": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_lastReadyGeneration(ctx, field, obj) - case "lastReconcileTime": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_lastReconcileTime(ctx, field, obj) - case "releaseNotes": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_releaseNotes(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "releaseStatus": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_releaseStatus(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "resources": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus_resources(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - var github__com___kloudlite___operator___apis___crds___v1__HttpGetProbeImplementors = []string{"Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe"} func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCrdsV1HTTPGetProbe) graphql.Marshaler { @@ -68604,48 +69446,6 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ return out } -var github__com___kloudlite___operator___apis___crds___v1__JobVarsImplementors = []string{"Github__com___kloudlite___operator___apis___crds___v1__JobVars"} - -func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__JobVars(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCrdsV1JobVars) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___crds___v1__JobVarsImplementors) - - 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___crds___v1__JobVars") - case "affinity": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__JobVars_affinity(ctx, field, obj) - case "backOffLimit": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__JobVars_backOffLimit(ctx, field, obj) - case "nodeSelector": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__JobVars_nodeSelector(ctx, field, obj) - case "tolerations": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__JobVars_tolerations(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - var github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpecImplementors = []string{"Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec"} func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCrdsV1ManagedResourceSpec) graphql.Marshaler { @@ -68948,6 +69748,8 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___ out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_ingressClass(ctx, field, obj) case "maxBodySizeInMB": out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_maxBodySizeInMB(ctx, field, obj) + case "nginxIngressAnnotations": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_nginxIngressAnnotations(ctx, field, obj) case "rateLimit": out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__RouterSpec_rateLimit(ctx, field, obj) case "routes": @@ -69400,9 +70202,6 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___plug out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___plugin__Export_template(ctx, field, obj) case "viaSecret": out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___plugin__Export_viaSecret(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -69583,156 +70382,495 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return out } -var github__com___kloudlite___operator___toolkit___reconciler__StatusImplementors = []string{"Github__com___kloudlite___operator___toolkit___reconciler__Status"} +var github__com___kloudlite___operator___toolkit___reconciler__StatusImplementors = []string{"Github__com___kloudlite___operator___toolkit___reconciler__Status"} + +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status(ctx context.Context, sel ast.SelectionSet, obj *reconciler.Status) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___toolkit___reconciler__StatusImplementors) + + 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___toolkit___reconciler__Status") + case "checkList": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(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 "checks": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(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 "isReady": + out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "lastReadyGeneration": + out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx, field, obj) + case "lastReconcileTime": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(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 "resources": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(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 github__com___kloudlite___operator___toolkit___types__CPUResourceImplementors = []string{"Github__com___kloudlite___operator___toolkit___types__CPUResource"} + +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__CPUResource(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorToolkitTypesCPUResource) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___toolkit___types__CPUResourceImplementors) + + 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___toolkit___types__CPUResource") + case "max": + out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__CPUResource_max(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "min": + out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__CPUResource_min(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___toolkit___types__MemoryResourceImplementors = []string{"Github__com___kloudlite___operator___toolkit___types__MemoryResource"} + +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__MemoryResource(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorToolkitTypesMemoryResource) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___toolkit___types__MemoryResourceImplementors) + + 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___toolkit___types__MemoryResource") + case "max": + out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__MemoryResource_max(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "min": + out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__MemoryResource_min(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___toolkit___types__ObjectReferenceImplementors = []string{"Github__com___kloudlite___operator___toolkit___types__ObjectReference"} + +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__ObjectReference(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorToolkitTypesObjectReference) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___toolkit___types__ObjectReferenceImplementors) + + 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___toolkit___types__ObjectReference") + case "apiVersion": + out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__ObjectReference_apiVersion(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "kind": + out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__ObjectReference_kind(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "name": + out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__ObjectReference_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "namespace": + out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__ObjectReference_namespace(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___toolkit___types__ResourceImplementors = []string{"Github__com___kloudlite___operator___toolkit___types__Resource"} + +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__Resource(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorToolkitTypesResource) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___toolkit___types__ResourceImplementors) + + 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___toolkit___types__Resource") + case "cpu": + out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__Resource_cpu(ctx, field, obj) + case "memory": + out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__Resource_memory(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfoImplementors = []string{"Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo"} + +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudlitePluginHelmChartAPIV1ChartInfo) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfoImplementors) + + 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___plugin____helm____chart___api___v1__ChartInfo") + case "name": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "url": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_url(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "version": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo_version(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpecImplementors = []string{"Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec"} + +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpecImplementors) + + 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___plugin____helm____chart___api___v1__HelmChartSpec") + case "chart": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_chart(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "helmValues": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_helmValues(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "jobVars": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_jobVars(ctx, field, obj) + case "postInstall": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_postInstall(ctx, field, obj) + case "postUninstall": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_postUninstall(ctx, field, obj) + case "preInstall": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_preInstall(ctx, field, obj) + case "preUninstall": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec_preUninstall(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatusImplementors = []string{"Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus"} -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status(ctx context.Context, sel ast.SelectionSet, obj *reconciler.Status) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___toolkit___reconciler__StatusImplementors) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatusImplementors) 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___toolkit___reconciler__Status") + out.Values[i] = graphql.MarshalString("Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus") case "checkList": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(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) }) + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_checkList(ctx, field, obj) case "checks": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(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) }) + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_checks(ctx, field, obj) case "isReady": - out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx, field, obj) + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_isReady(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } case "lastReadyGeneration": - out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx, field, obj) + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_lastReadyGeneration(ctx, field, obj) case "lastReconcileTime": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx, field, obj) - return res + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_lastReconcileTime(ctx, field, obj) + case "releaseNotes": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_releaseNotes(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - 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 + case "releaseStatus": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_releaseStatus(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "resources": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(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) }) + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus_resources(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -69756,37 +70894,25 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return out } -var github__com___kloudlite___operator___toolkit___types__ObjectReferenceImplementors = []string{"Github__com___kloudlite___operator___toolkit___types__ObjectReference"} +var github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVarsImplementors = []string{"Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars"} -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___types__ObjectReference(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorToolkitTypesObjectReference) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___toolkit___types__ObjectReferenceImplementors) +func (ec *executionContext) _Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudlitePluginHelmChartAPIV1HelmJobVars) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVarsImplementors) 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___toolkit___types__ObjectReference") - case "apiVersion": - out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__ObjectReference_apiVersion(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "kind": - out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__ObjectReference_kind(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__ObjectReference_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "namespace": - out.Values[i] = ec._Github__com___kloudlite___operator___toolkit___types__ObjectReference_namespace(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = graphql.MarshalString("Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars") + case "affinity": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_affinity(ctx, field, obj) + case "nodeSelector": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_nodeSelector(ctx, field, obj) + case "resources": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_resources(ctx, field, obj) + case "tolerations": + out.Values[i] = ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars_tolerations(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -69879,6 +71005,39 @@ func (ec *executionContext) _HelmChart(ctx context.Context, sel ast.SelectionSet if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } + case "export": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._HelmChart_export(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 "id": out.Values[i] = ec._HelmChart_id(ctx, field, obj) if out.Values[i] == graphql.Null { @@ -73788,6 +74947,25 @@ 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 "infra_listHelmTypeClusterManagedServices": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_infra_listHelmTypeClusterManagedServices(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 "core_listManagedResources": field := field @@ -77690,6 +78868,21 @@ func (ec *executionContext) unmarshalNGithub__com___kloudlite___operator___toolk return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) marshalNGithub__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1ChartInfo(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudlitePluginHelmChartAPIV1ChartInfo) 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___plugin____helm____chart___api___v1__ChartInfo(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNGithub__com___kloudlite___plugin____helm____chart___api___v1__ChartInfoIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1ChartInfoIn(ctx context.Context, v interface{}) (*model.GithubComKloudlitePluginHelmChartAPIV1ChartInfoIn, error) { + res, err := ec.unmarshalInputGithub__com___kloudlite___plugin____helm____chart___api___v1__ChartInfoIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) marshalNHelmChart2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋentitiesᚐHelmChart(ctx context.Context, sel ast.SelectionSet, v *entities.HelmChart) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { @@ -78468,12 +79661,12 @@ func (ec *executionContext) marshalNManagedServicePlugins2ᚖgithubᚗcomᚋklou return ec._ManagedServicePlugins(ctx, sel, v) } -func (ec *executionContext) unmarshalNMap2map(ctx context.Context, v interface{}) (map[string]any, error) { +func (ec *executionContext) unmarshalNMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { +func (ec *executionContext) marshalNMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) 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") @@ -80489,28 +81682,6 @@ func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___apis_ return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___crds___v1__HelmChartSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HelmChartSpec(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__HelmChartSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HelmChartSpecIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpecIn, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__HelmChartSpecIn(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___crds___v1__HelmChartStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HelmChartStatus(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus(ctx, sel, v) -} - func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___crds___v1__HttpGetProbe2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HTTPGetProbe(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisCrdsV1HTTPGetProbe) graphql.Marshaler { if v == nil { return graphql.Null @@ -80556,21 +81727,6 @@ func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___apis_ return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___crds___v1__JobVars2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1JobVars(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisCrdsV1JobVars) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Github__com___kloudlite___operator___apis___crds___v1__JobVars(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__JobVarsIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1JobVarsIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorApisCrdsV1JobVarsIn, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__JobVarsIn(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___crds___v1__PluginTemplate2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1PluginTemplate(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisCrdsV1PluginTemplate) graphql.Marshaler { if v == nil { return graphql.Null @@ -81152,6 +82308,96 @@ func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___toolk return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) marshalOGithub__com___kloudlite___operator___toolkit___types__CPUResource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesCPUResource(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorToolkitTypesCPUResource) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___operator___toolkit___types__CPUResource(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___toolkit___types__CPUResourceIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesCPUResourceIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorToolkitTypesCPUResourceIn, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___types__CPUResourceIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOGithub__com___kloudlite___operator___toolkit___types__MemoryResource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesMemoryResource(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorToolkitTypesMemoryResource) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___operator___toolkit___types__MemoryResource(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___toolkit___types__MemoryResourceIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesMemoryResourceIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorToolkitTypesMemoryResourceIn, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___types__MemoryResourceIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOGithub__com___kloudlite___operator___toolkit___types__Resource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesResource(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorToolkitTypesResource) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___operator___toolkit___types__Resource(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___toolkit___types__ResourceIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitTypesResourceIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorToolkitTypesResourceIn, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___types__ResourceIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1HelmChartSpec(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1HelmChartSpecIn(ctx context.Context, v interface{}) (*model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpecIn, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpecIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1HelmChartStatus(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatusIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1HelmChartStatusIn(ctx context.Context, v interface{}) (*model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatusIn, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatusIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1HelmJobVars(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudlitePluginHelmChartAPIV1HelmJobVars) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVarsIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudlitePluginHelmChartAPIV1HelmJobVarsIn(ctx context.Context, v interface{}) (*model.GithubComKloudlitePluginHelmChartAPIV1HelmJobVarsIn, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGithub__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVarsIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) marshalOHelmChart2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋentitiesᚐHelmChart(ctx context.Context, sel ast.SelectionSet, v *entities.HelmChart) graphql.Marshaler { if v == nil { return graphql.Null diff --git a/apps/console/internal/app/graph/helmchart.resolvers.go b/apps/console/internal/app/graph/helmchart.resolvers.go index 92d2e1e56..f527d9e97 100644 --- a/apps/console/internal/app/graph/helmchart.resolvers.go +++ b/apps/console/internal/app/graph/helmchart.resolvers.go @@ -12,34 +12,44 @@ import ( "github.com/kloudlite/api/apps/console/internal/app/graph/model" "github.com/kloudlite/api/apps/console/internal/entities" "github.com/kloudlite/api/pkg/functions" - "k8s.io/apimachinery/pkg/apis/meta/v1" + plugin "github.com/kloudlite/operator/toolkit/plugin" + helmPlugin "github.com/kloudlite/plugin-helm-chart/api/v1" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // CreationTime is the resolver for the creationTime field. func (r *helmChartResolver) CreationTime(ctx context.Context, obj *entities.HelmChart) (string, error) { if obj == nil { - return "", errNilHelmChart + return "", errNilApp } + return obj.BaseEntity.CreationTime.Format(time.RFC3339), nil +} - return obj.CreationTime.Format(time.RFC3339), nil +// Export is the resolver for the export field. +func (r *helmChartResolver) Export(ctx context.Context, obj *entities.HelmChart) (*model.GithubComKloudliteOperatorToolkitPluginExport, error) { + return &model.GithubComKloudliteOperatorToolkitPluginExport{ + ViaSecret: &obj.Export.ViaSecret, + Template: &obj.Export.Template, + }, nil } // Spec is the resolver for the spec field. -func (r *helmChartResolver) Spec(ctx context.Context, obj *entities.HelmChart) (*model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec, error) { +func (r *helmChartResolver) Spec(ctx context.Context, obj *entities.HelmChart) (*model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec, error) { if obj == nil { return nil, errNilHelmChart } - return functions.JsonConvertP[model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpec](obj.Spec) + return functions.JsonConvertP[model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec](obj.Spec) } // Status is the resolver for the status field. -func (r *helmChartResolver) Status(ctx context.Context, obj *entities.HelmChart) (*model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus, error) { +func (r *helmChartResolver) Status(ctx context.Context, obj *entities.HelmChart) (*model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus, error) { if obj == nil { return nil, errNilHelmChart } - return functions.JsonConvertP[model.GithubComKloudliteOperatorApisCrdsV1HelmChartStatus](obj.Status) + return functions.JsonConvertP[model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus](obj.Status) } // UpdateTime is the resolver for the updateTime field. @@ -47,18 +57,63 @@ func (r *helmChartResolver) UpdateTime(ctx context.Context, obj *entities.HelmCh if obj == nil { return "", errNilHelmChart } + return obj.BaseEntity.UpdateTime.Format(time.RFC3339), nil +} - return obj.UpdateTime.Format(time.RFC3339), nil +// Export is the resolver for the export field. +func (r *helmChartInResolver) Export(ctx context.Context, obj *entities.HelmChart, data *model.GithubComKloudliteOperatorToolkitPluginExportIn) error { + if obj == nil { + return errNilApp + } + if data != nil { + exp, err := functions.JsonConvert[plugin.Export](data) + if err != nil { + return err + } + obj.Export = exp + } + return nil } // Metadata is the resolver for the metadata field. func (r *helmChartInResolver) Metadata(ctx context.Context, obj *entities.HelmChart, data *v1.ObjectMeta) error { - return functions.JsonConversion(data, &obj.ObjectMeta) + if obj == nil { + return errNilApp + } + if data != nil { + obj.ObjectMeta = *data + } + return nil } // Spec is the resolver for the spec field. -func (r *helmChartInResolver) Spec(ctx context.Context, obj *entities.HelmChart, data *model.GithubComKloudliteOperatorApisCrdsV1HelmChartSpecIn) error { - return functions.JsonConversion(data, &obj.Spec) +func (r *helmChartInResolver) Spec(ctx context.Context, obj *entities.HelmChart, data *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartSpecIn) error { + if obj == nil { + return errNilApp + } + if data != nil { + spec, err := functions.JsonConvert[helmPlugin.HelmChartSpec](data) + if err != nil { + return err + } + obj.Spec = spec + } + return nil +} + +// Status is the resolver for the status field. +func (r *helmChartInResolver) Status(ctx context.Context, obj *entities.HelmChart, data *model.GithubComKloudlitePluginHelmChartAPIV1HelmChartStatusIn) error { + if obj == nil { + return errNilApp + } + if data != nil { + status, err := functions.JsonConvert[helmPlugin.HelmChartStatus](data) + if err != nil { + return err + } + obj.Status = status + } + return nil } // HelmChart returns generated.HelmChartResolver implementation. diff --git a/apps/console/internal/app/graph/model/models_gen.go b/apps/console/internal/app/graph/model/models_gen.go index 69494efd2..f5640a1fb 100644 --- a/apps/console/internal/app/graph/model/models_gen.go +++ b/apps/console/internal/app/graph/model/models_gen.go @@ -232,27 +232,29 @@ type GithubComKloudliteOperatorApisCrdsV1AppInterceptPortMappings struct { } type GithubComKloudliteOperatorApisCrdsV1AppRouter struct { - BackendProtocol *string `json:"backendProtocol,omitempty"` - BasicAuth *GithubComKloudliteOperatorApisCrdsV1BasicAuth `json:"basicAuth,omitempty"` - Cors *GithubComKloudliteOperatorApisCrdsV1Cors `json:"cors,omitempty"` - Domains []string `json:"domains"` - HTTPS *GithubComKloudliteOperatorApisCrdsV1HTTPS `json:"https,omitempty"` - IngressClass *string `json:"ingressClass,omitempty"` - MaxBodySizeInMb *int `json:"maxBodySizeInMB,omitempty"` - RateLimit *GithubComKloudliteOperatorApisCrdsV1RateLimit `json:"rateLimit,omitempty"` - Routes []*GithubComKloudliteOperatorApisCrdsV1Route `json:"routes,omitempty"` + BackendProtocol *string `json:"backendProtocol,omitempty"` + BasicAuth *GithubComKloudliteOperatorApisCrdsV1BasicAuth `json:"basicAuth,omitempty"` + Cors *GithubComKloudliteOperatorApisCrdsV1Cors `json:"cors,omitempty"` + Domains []string `json:"domains"` + HTTPS *GithubComKloudliteOperatorApisCrdsV1HTTPS `json:"https,omitempty"` + IngressClass *string `json:"ingressClass,omitempty"` + MaxBodySizeInMb *int `json:"maxBodySizeInMB,omitempty"` + NginxIngressAnnotations map[string]interface{} `json:"nginxIngressAnnotations,omitempty"` + RateLimit *GithubComKloudliteOperatorApisCrdsV1RateLimit `json:"rateLimit,omitempty"` + Routes []*GithubComKloudliteOperatorApisCrdsV1Route `json:"routes,omitempty"` } type GithubComKloudliteOperatorApisCrdsV1AppRouterIn struct { - BackendProtocol *string `json:"backendProtocol,omitempty"` - BasicAuth *GithubComKloudliteOperatorApisCrdsV1BasicAuthIn `json:"basicAuth,omitempty"` - Cors *GithubComKloudliteOperatorApisCrdsV1CorsIn `json:"cors,omitempty"` - Domains []string `json:"domains"` - HTTPS *GithubComKloudliteOperatorApisCrdsV1HTTPSIn `json:"https,omitempty"` - IngressClass *string `json:"ingressClass,omitempty"` - MaxBodySizeInMb *int `json:"maxBodySizeInMB,omitempty"` - RateLimit *GithubComKloudliteOperatorApisCrdsV1RateLimitIn `json:"rateLimit,omitempty"` - Routes []*GithubComKloudliteOperatorApisCrdsV1RouteIn `json:"routes,omitempty"` + BackendProtocol *string `json:"backendProtocol,omitempty"` + BasicAuth *GithubComKloudliteOperatorApisCrdsV1BasicAuthIn `json:"basicAuth,omitempty"` + Cors *GithubComKloudliteOperatorApisCrdsV1CorsIn `json:"cors,omitempty"` + Domains []string `json:"domains"` + HTTPS *GithubComKloudliteOperatorApisCrdsV1HTTPSIn `json:"https,omitempty"` + IngressClass *string `json:"ingressClass,omitempty"` + MaxBodySizeInMb *int `json:"maxBodySizeInMB,omitempty"` + NginxIngressAnnotations map[string]interface{} `json:"nginxIngressAnnotations,omitempty"` + RateLimit *GithubComKloudliteOperatorApisCrdsV1RateLimitIn `json:"rateLimit,omitempty"` + Routes []*GithubComKloudliteOperatorApisCrdsV1RouteIn `json:"routes,omitempty"` } type GithubComKloudliteOperatorApisCrdsV1AppSpec struct { @@ -442,42 +444,6 @@ type GithubComKloudliteOperatorApisCrdsV1HPAIn struct { ThresholdMemory *int `json:"thresholdMemory,omitempty"` } -type GithubComKloudliteOperatorApisCrdsV1HelmChartSpec struct { - ChartName string `json:"chartName"` - ChartRepoURL string `json:"chartRepoURL"` - ChartVersion string `json:"chartVersion"` - JobVars *GithubComKloudliteOperatorApisCrdsV1JobVars `json:"jobVars,omitempty"` - PostInstall *string `json:"postInstall,omitempty"` - PostUninstall *string `json:"postUninstall,omitempty"` - PreInstall *string `json:"preInstall,omitempty"` - PreUninstall *string `json:"preUninstall,omitempty"` - ReleaseName *string `json:"releaseName,omitempty"` - Values map[string]interface{} `json:"values"` -} - -type GithubComKloudliteOperatorApisCrdsV1HelmChartSpecIn struct { - ChartName string `json:"chartName"` - ChartRepoURL string `json:"chartRepoURL"` - ChartVersion string `json:"chartVersion"` - JobVars *GithubComKloudliteOperatorApisCrdsV1JobVarsIn `json:"jobVars,omitempty"` - PostInstall *string `json:"postInstall,omitempty"` - PostUninstall *string `json:"postUninstall,omitempty"` - PreInstall *string `json:"preInstall,omitempty"` - PreUninstall *string `json:"preUninstall,omitempty"` - Values map[string]interface{} `json:"values"` -} - -type GithubComKloudliteOperatorApisCrdsV1HelmChartStatus struct { - CheckList []*GithubComKloudliteOperatorToolkitReconcilerCheckMeta `json:"checkList,omitempty"` - Checks map[string]interface{} `json:"checks,omitempty"` - IsReady bool `json:"isReady"` - LastReadyGeneration *int `json:"lastReadyGeneration,omitempty"` - LastReconcileTime *string `json:"lastReconcileTime,omitempty"` - ReleaseNotes string `json:"releaseNotes"` - ReleaseStatus string `json:"releaseStatus"` - Resources []*GithubComKloudliteOperatorToolkitReconcilerResourceRef `json:"resources,omitempty"` -} - type GithubComKloudliteOperatorApisCrdsV1HTTPGetProbe struct { HTTPHeaders map[string]interface{} `json:"httpHeaders,omitempty"` Path string `json:"path"` @@ -516,20 +482,6 @@ type GithubComKloudliteOperatorApisCrdsV1InterceptIn struct { ToIPAddr *string `json:"toIPAddr,omitempty"` } -type GithubComKloudliteOperatorApisCrdsV1JobVars struct { - Affinity *K8sIoAPICoreV1Affinity `json:"affinity,omitempty"` - BackOffLimit *int `json:"backOffLimit,omitempty"` - NodeSelector map[string]interface{} `json:"nodeSelector,omitempty"` - Tolerations []*K8sIoAPICoreV1Toleration `json:"tolerations,omitempty"` -} - -type GithubComKloudliteOperatorApisCrdsV1JobVarsIn struct { - Affinity *K8sIoAPICoreV1AffinityIn `json:"affinity,omitempty"` - BackOffLimit *int `json:"backOffLimit,omitempty"` - NodeSelector map[string]interface{} `json:"nodeSelector,omitempty"` - Tolerations []*K8sIoAPICoreV1TolerationIn `json:"tolerations,omitempty"` -} - type GithubComKloudliteOperatorApisCrdsV1ManagedResourceSpec struct { ManagedServiceRef *GithubComKloudliteOperatorToolkitTypesObjectReference `json:"managedServiceRef"` Plugin *GithubComKloudliteOperatorApisCrdsV1PluginTemplate `json:"plugin"` @@ -613,27 +565,29 @@ type GithubComKloudliteOperatorApisCrdsV1RouteIn struct { } type GithubComKloudliteOperatorApisCrdsV1RouterSpec struct { - BackendProtocol *string `json:"backendProtocol,omitempty"` - BasicAuth *GithubComKloudliteOperatorApisCrdsV1BasicAuth `json:"basicAuth,omitempty"` - Cors *GithubComKloudliteOperatorApisCrdsV1Cors `json:"cors,omitempty"` - Domains []string `json:"domains"` - HTTPS *GithubComKloudliteOperatorApisCrdsV1HTTPS `json:"https,omitempty"` - IngressClass *string `json:"ingressClass,omitempty"` - MaxBodySizeInMb *int `json:"maxBodySizeInMB,omitempty"` - RateLimit *GithubComKloudliteOperatorApisCrdsV1RateLimit `json:"rateLimit,omitempty"` - Routes []*GithubComKloudliteOperatorApisCrdsV1Route `json:"routes,omitempty"` + BackendProtocol *string `json:"backendProtocol,omitempty"` + BasicAuth *GithubComKloudliteOperatorApisCrdsV1BasicAuth `json:"basicAuth,omitempty"` + Cors *GithubComKloudliteOperatorApisCrdsV1Cors `json:"cors,omitempty"` + Domains []string `json:"domains"` + HTTPS *GithubComKloudliteOperatorApisCrdsV1HTTPS `json:"https,omitempty"` + IngressClass *string `json:"ingressClass,omitempty"` + MaxBodySizeInMb *int `json:"maxBodySizeInMB,omitempty"` + NginxIngressAnnotations map[string]interface{} `json:"nginxIngressAnnotations,omitempty"` + RateLimit *GithubComKloudliteOperatorApisCrdsV1RateLimit `json:"rateLimit,omitempty"` + Routes []*GithubComKloudliteOperatorApisCrdsV1Route `json:"routes,omitempty"` } type GithubComKloudliteOperatorApisCrdsV1RouterSpecIn struct { - BackendProtocol *string `json:"backendProtocol,omitempty"` - BasicAuth *GithubComKloudliteOperatorApisCrdsV1BasicAuthIn `json:"basicAuth,omitempty"` - Cors *GithubComKloudliteOperatorApisCrdsV1CorsIn `json:"cors,omitempty"` - Domains []string `json:"domains"` - HTTPS *GithubComKloudliteOperatorApisCrdsV1HTTPSIn `json:"https,omitempty"` - IngressClass *string `json:"ingressClass,omitempty"` - MaxBodySizeInMb *int `json:"maxBodySizeInMB,omitempty"` - RateLimit *GithubComKloudliteOperatorApisCrdsV1RateLimitIn `json:"rateLimit,omitempty"` - Routes []*GithubComKloudliteOperatorApisCrdsV1RouteIn `json:"routes,omitempty"` + BackendProtocol *string `json:"backendProtocol,omitempty"` + BasicAuth *GithubComKloudliteOperatorApisCrdsV1BasicAuthIn `json:"basicAuth,omitempty"` + Cors *GithubComKloudliteOperatorApisCrdsV1CorsIn `json:"cors,omitempty"` + Domains []string `json:"domains"` + HTTPS *GithubComKloudliteOperatorApisCrdsV1HTTPSIn `json:"https,omitempty"` + IngressClass *string `json:"ingressClass,omitempty"` + MaxBodySizeInMb *int `json:"maxBodySizeInMB,omitempty"` + NginxIngressAnnotations map[string]interface{} `json:"nginxIngressAnnotations,omitempty"` + RateLimit *GithubComKloudliteOperatorApisCrdsV1RateLimitIn `json:"rateLimit,omitempty"` + Routes []*GithubComKloudliteOperatorApisCrdsV1RouteIn `json:"routes,omitempty"` } type GithubComKloudliteOperatorApisCrdsV1ShellProbe struct { @@ -755,12 +709,12 @@ type GithubComKloudliteOperatorPkgRawJSONRawJSONIn struct { type GithubComKloudliteOperatorToolkitPluginExport struct { Template *string `json:"template,omitempty"` - ViaSecret string `json:"viaSecret"` + ViaSecret *string `json:"viaSecret,omitempty"` } type GithubComKloudliteOperatorToolkitPluginExportIn struct { Template *string `json:"template,omitempty"` - ViaSecret string `json:"viaSecret"` + ViaSecret *string `json:"viaSecret,omitempty"` } type GithubComKloudliteOperatorToolkitReconcilerCheck struct { @@ -824,6 +778,26 @@ type GithubComKloudliteOperatorToolkitReconcilerStatusIn struct { Resources []*GithubComKloudliteOperatorToolkitReconcilerResourceRefIn `json:"resources,omitempty"` } +type GithubComKloudliteOperatorToolkitTypesCPUResource struct { + Max string `json:"max"` + Min string `json:"min"` +} + +type GithubComKloudliteOperatorToolkitTypesCPUResourceIn struct { + Max string `json:"max"` + Min string `json:"min"` +} + +type GithubComKloudliteOperatorToolkitTypesMemoryResource struct { + Max string `json:"max"` + Min string `json:"min"` +} + +type GithubComKloudliteOperatorToolkitTypesMemoryResourceIn struct { + Max string `json:"max"` + Min string `json:"min"` +} + type GithubComKloudliteOperatorToolkitTypesObjectReference struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` @@ -838,6 +812,84 @@ type GithubComKloudliteOperatorToolkitTypesObjectReferenceIn struct { Namespace string `json:"namespace"` } +type GithubComKloudliteOperatorToolkitTypesResource struct { + CPU *GithubComKloudliteOperatorToolkitTypesCPUResource `json:"cpu,omitempty"` + Memory *GithubComKloudliteOperatorToolkitTypesMemoryResource `json:"memory,omitempty"` +} + +type GithubComKloudliteOperatorToolkitTypesResourceIn struct { + CPU *GithubComKloudliteOperatorToolkitTypesCPUResourceIn `json:"cpu,omitempty"` + Memory *GithubComKloudliteOperatorToolkitTypesMemoryResourceIn `json:"memory,omitempty"` +} + +type GithubComKloudlitePluginHelmChartAPIV1ChartInfo struct { + Name string `json:"name"` + URL string `json:"url"` + Version *string `json:"version,omitempty"` +} + +type GithubComKloudlitePluginHelmChartAPIV1ChartInfoIn struct { + Name string `json:"name"` + URL string `json:"url"` + Version *string `json:"version,omitempty"` +} + +type GithubComKloudlitePluginHelmChartAPIV1HelmChartSpec struct { + Chart *GithubComKloudlitePluginHelmChartAPIV1ChartInfo `json:"chart"` + HelmValues map[string]interface{} `json:"helmValues"` + JobVars *GithubComKloudlitePluginHelmChartAPIV1HelmJobVars `json:"jobVars,omitempty"` + PostInstall *string `json:"postInstall,omitempty"` + PostUninstall *string `json:"postUninstall,omitempty"` + PreInstall *string `json:"preInstall,omitempty"` + PreUninstall *string `json:"preUninstall,omitempty"` +} + +type GithubComKloudlitePluginHelmChartAPIV1HelmChartSpecIn struct { + Chart *GithubComKloudlitePluginHelmChartAPIV1ChartInfoIn `json:"chart"` + HelmValues map[string]interface{} `json:"helmValues"` + JobVars *GithubComKloudlitePluginHelmChartAPIV1HelmJobVarsIn `json:"jobVars,omitempty"` + PostInstall *string `json:"postInstall,omitempty"` + PostUninstall *string `json:"postUninstall,omitempty"` + PreInstall *string `json:"preInstall,omitempty"` + PreUninstall *string `json:"preUninstall,omitempty"` +} + +type GithubComKloudlitePluginHelmChartAPIV1HelmChartStatus struct { + CheckList []*GithubComKloudliteOperatorToolkitReconcilerCheckMeta `json:"checkList,omitempty"` + Checks map[string]interface{} `json:"checks,omitempty"` + IsReady bool `json:"isReady"` + LastReadyGeneration *int `json:"lastReadyGeneration,omitempty"` + LastReconcileTime *string `json:"lastReconcileTime,omitempty"` + ReleaseNotes string `json:"releaseNotes"` + ReleaseStatus string `json:"releaseStatus"` + Resources []*GithubComKloudliteOperatorToolkitReconcilerResourceRef `json:"resources,omitempty"` +} + +type GithubComKloudlitePluginHelmChartAPIV1HelmChartStatusIn struct { + CheckList []*GithubComKloudliteOperatorToolkitReconcilerCheckMetaIn `json:"checkList,omitempty"` + Checks map[string]interface{} `json:"checks,omitempty"` + IsReady bool `json:"isReady"` + LastReadyGeneration *int `json:"lastReadyGeneration,omitempty"` + LastReconcileTime *string `json:"lastReconcileTime,omitempty"` + ReleaseNotes string `json:"releaseNotes"` + ReleaseStatus string `json:"releaseStatus"` + Resources []*GithubComKloudliteOperatorToolkitReconcilerResourceRefIn `json:"resources,omitempty"` +} + +type GithubComKloudlitePluginHelmChartAPIV1HelmJobVars struct { + Affinity *K8sIoAPICoreV1Affinity `json:"affinity,omitempty"` + NodeSelector map[string]interface{} `json:"nodeSelector,omitempty"` + Resources *GithubComKloudliteOperatorToolkitTypesResource `json:"resources,omitempty"` + Tolerations []*K8sIoAPICoreV1Toleration `json:"tolerations,omitempty"` +} + +type GithubComKloudlitePluginHelmChartAPIV1HelmJobVarsIn struct { + Affinity *K8sIoAPICoreV1AffinityIn `json:"affinity,omitempty"` + NodeSelector map[string]interface{} `json:"nodeSelector,omitempty"` + Resources *GithubComKloudliteOperatorToolkitTypesResourceIn `json:"resources,omitempty"` + Tolerations []*K8sIoAPICoreV1TolerationIn `json:"tolerations,omitempty"` +} + type HelmChartEdge struct { Cursor string `json:"cursor"` Node *entities.HelmChart `json:"node"` diff --git a/apps/console/internal/app/graph/schema.graphqls b/apps/console/internal/app/graph/schema.graphqls index 7eaa8b9ae..f20c44cef 100644 --- a/apps/console/internal/app/graph/schema.graphqls +++ b/apps/console/internal/app/graph/schema.graphqls @@ -165,8 +165,9 @@ type Query { core_getManagedResouceOutputKeys(msvcName: String, envName:String , name: String!): [String!]! @isLoggedInAndVerified @hasAccount core_getManagedResouceOutputKeyValues(msvcName: String, envName:String, keyrefs: [ManagedResourceKeyRefIn]): [ManagedResourceKeyValueRef!]! @isLoggedInAndVerified @hasAccount - infra_listClusterManagedServices(search: SearchClusterManagedService, pagination: CursorPaginationIn): ClusterManagedServicePaginatedRecords @isLoggedInAndVerified @hasAccount - infra_getClusterManagedService(name: String!): ClusterManagedService @isLoggedInAndVerified @hasAccount + infra_listClusterManagedServices(search: SearchClusterManagedService, pagination: CursorPaginationIn): ClusterManagedServicePaginatedRecords @isLoggedInAndVerified @hasAccount + infra_getClusterManagedService(name: String!): ClusterManagedService @isLoggedInAndVerified @hasAccount + infra_listHelmTypeClusterManagedServices(search: SearchClusterManagedService, pagination: CursorPaginationIn): ClusterManagedServicePaginatedRecords @isLoggedInAndVerified @hasAccount core_listManagedResources(search: SearchManagedResources, pq: CursorPaginationIn): ManagedResourcePaginatedRecords @isLoggedInAndVerified @hasAccount core_getManagedResource(msvcName: String, envName: String, name: String!): ManagedResource @isLoggedInAndVerified @hasAccount diff --git a/apps/console/internal/app/graph/schema.resolvers.go b/apps/console/internal/app/graph/schema.resolvers.go index 118f4b382..f3fb13f25 100644 --- a/apps/console/internal/app/graph/schema.resolvers.go +++ b/apps/console/internal/app/graph/schema.resolvers.go @@ -7,9 +7,8 @@ package graph import ( "context" "fmt" - "time" - "github.com/kloudlite/api/pkg/errors" + "time" "github.com/kloudlite/api/apps/console/internal/app/graph/generated" "github.com/kloudlite/api/apps/console/internal/app/graph/model" @@ -422,6 +421,7 @@ func (r *mutationResolver) InfraCreateClusterManagedService(ctx context.Context, if err != nil { return nil, errors.NewE(err) } + service.ClusterName = "tenant-cluster" return r.Domain.CreateClusterManagedService(ictx, service) } @@ -1122,6 +1122,37 @@ func (r *queryResolver) InfraGetClusterManagedService(ctx context.Context, name return r.Domain.GetClusterManagedService(ictx, name) } +// InfraListHelmTypeClusterManagedServices is the resolver for the infra_listHelmTypeClusterManagedServices field. +func (r *queryResolver) InfraListHelmTypeClusterManagedServices(ctx context.Context, search *model.SearchClusterManagedService, pagination *repos.CursorPagination) (*model.ClusterManagedServicePaginatedRecords, error) { + ictx, err := toConsoleContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } + + if pagination == nil { + pagination = &repos.DefaultCursorPagination + } + + filter := map[string]repos.MatchFilter{} + + if search != nil { + if search.IsReady != nil { + filter["status.isReady"] = *search.IsReady + } + + if search.Text != nil { + filter["metadata.name"] = *search.Text + } + } + + pClusters, err := r.Domain.ListHelmTypeClusterManagedServices(ictx, filter, *pagination) + if err != nil { + return nil, errors.NewE(err) + } + + return fn.JsonConvertP[model.ClusterManagedServicePaginatedRecords](pClusters) +} + // CoreListManagedResources is the resolver for the core_listManagedResources field. func (r *queryResolver) CoreListManagedResources(ctx context.Context, search *model.SearchManagedResources, pq *repos.CursorPagination) (*model.ManagedResourcePaginatedRecords, error) { cc, err := toConsoleContext(ctx) diff --git a/apps/console/internal/app/graph/struct-to-graphql/common-types.graphqls b/apps/console/internal/app/graph/struct-to-graphql/common-types.graphqls index 8df85e35c..9a3790cd3 100644 --- a/apps/console/internal/app/graph/struct-to-graphql/common-types.graphqls +++ b/apps/console/internal/app/graph/struct-to-graphql/common-types.graphqls @@ -114,6 +114,7 @@ type Github__com___kloudlite___operator___apis___crds___v1__AppRouter @shareable https: Github__com___kloudlite___operator___apis___crds___v1__Https ingressClass: String maxBodySizeInMB: Int + nginxIngressAnnotations: Map rateLimit: Github__com___kloudlite___operator___apis___crds___v1__RateLimit routes: [Github__com___kloudlite___operator___apis___crds___v1__Route!] } @@ -213,30 +214,6 @@ type Github__com___kloudlite___operator___apis___crds___v1__HPA @shareable { thresholdMemory: Int } -type Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec @shareable { - 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! -} - -type Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus @shareable { - checkList: [Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta!] - checks: Map - isReady: Boolean! - lastReadyGeneration: Int - lastReconcileTime: Date - releaseNotes: String! - releaseStatus: String! - resources: [Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef!] -} - type Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe @shareable { httpHeaders: Map path: String! @@ -256,13 +233,6 @@ type Github__com___kloudlite___operator___apis___crds___v1__Intercept @shareable toIPAddr: String } -type Github__com___kloudlite___operator___apis___crds___v1__JobVars @shareable { - affinity: K8s__io___api___core___v1__Affinity - backOffLimit: Int - nodeSelector: Map - tolerations: [K8s__io___api___core___v1__Toleration!] -} - type Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec @shareable { managedServiceRef: Github__com___kloudlite___operator___toolkit___types__ObjectReference! plugin: Github__com___kloudlite___operator___apis___crds___v1__PluginTemplate! @@ -312,6 +282,7 @@ type Github__com___kloudlite___operator___apis___crds___v1__RouterSpec @shareabl https: Github__com___kloudlite___operator___apis___crds___v1__Https ingressClass: String maxBodySizeInMB: Int + nginxIngressAnnotations: Map rateLimit: Github__com___kloudlite___operator___apis___crds___v1__RateLimit routes: [Github__com___kloudlite___operator___apis___crds___v1__Route!] } @@ -379,7 +350,7 @@ type Github__com___kloudlite___operator___pkg___raw____json__RawJson @shareable type Github__com___kloudlite___operator___toolkit___plugin__Export @shareable { template: String - viaSecret: String! + viaSecret: String } type Github__com___kloudlite___operator___toolkit___reconciler__Check @shareable { @@ -417,6 +388,16 @@ type Github__com___kloudlite___operator___toolkit___reconciler__Status @shareabl resources: [Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef!] } +type Github__com___kloudlite___operator___toolkit___types__CPUResource @shareable { + max: String! + min: String! +} + +type Github__com___kloudlite___operator___toolkit___types__MemoryResource @shareable { + max: String! + min: String! +} + type Github__com___kloudlite___operator___toolkit___types__ObjectReference @shareable { apiVersion: String! kind: String! @@ -424,6 +405,45 @@ type Github__com___kloudlite___operator___toolkit___types__ObjectReference @shar namespace: String! } +type Github__com___kloudlite___operator___toolkit___types__Resource @shareable { + cpu: Github__com___kloudlite___operator___toolkit___types__CPUResource + memory: Github__com___kloudlite___operator___toolkit___types__MemoryResource +} + +type Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo @shareable { + name: String! + url: String! + version: String +} + +type Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec @shareable { + chart: Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfo! + helmValues: Map! + jobVars: Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars + postInstall: String + postUninstall: String + preInstall: String + preUninstall: String +} + +type Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus @shareable { + checkList: [Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta!] + checks: Map + isReady: Boolean! + lastReadyGeneration: Int + lastReconcileTime: Date + releaseNotes: String! + releaseStatus: String! + resources: [Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef!] +} + +type Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVars @shareable { + affinity: K8s__io___api___core___v1__Affinity + nodeSelector: Map + resources: Github__com___kloudlite___operator___toolkit___types__Resource + tolerations: [K8s__io___api___core___v1__Toleration!] +} + type K8s__io___api___core___v1__Affinity @shareable { nodeAffinity: K8s__io___api___core___v1__NodeAffinity podAffinity: K8s__io___api___core___v1__PodAffinity @@ -625,6 +645,7 @@ input Github__com___kloudlite___operator___apis___crds___v1__AppRouterIn { https: Github__com___kloudlite___operator___apis___crds___v1__HttpsIn ingressClass: String maxBodySizeInMB: Int + nginxIngressAnnotations: Map rateLimit: Github__com___kloudlite___operator___apis___crds___v1__RateLimitIn routes: [Github__com___kloudlite___operator___apis___crds___v1__RouteIn!] } @@ -721,18 +742,6 @@ input Github__com___kloudlite___operator___apis___crds___v1__HPAIn { thresholdMemory: Int } -input Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpecIn { - 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! -} - input Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbeIn { httpHeaders: Map path: String! @@ -752,13 +761,6 @@ input Github__com___kloudlite___operator___apis___crds___v1__InterceptIn { toIPAddr: String } -input Github__com___kloudlite___operator___apis___crds___v1__JobVarsIn { - affinity: K8s__io___api___core___v1__AffinityIn - backOffLimit: Int - nodeSelector: Map - tolerations: [K8s__io___api___core___v1__TolerationIn!] -} - input Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpecIn { managedServiceRef: Github__com___kloudlite___operator___toolkit___types__ObjectReferenceIn! plugin: Github__com___kloudlite___operator___apis___crds___v1__PluginTemplateIn! @@ -808,6 +810,7 @@ input Github__com___kloudlite___operator___apis___crds___v1__RouterSpecIn { https: Github__com___kloudlite___operator___apis___crds___v1__HttpsIn ingressClass: String maxBodySizeInMB: Int + nginxIngressAnnotations: Map rateLimit: Github__com___kloudlite___operator___apis___crds___v1__RateLimitIn routes: [Github__com___kloudlite___operator___apis___crds___v1__RouteIn!] } @@ -875,7 +878,7 @@ input Github__com___kloudlite___operator___pkg___raw____json__RawJsonIn { input Github__com___kloudlite___operator___toolkit___plugin__ExportIn { template: String - viaSecret: String! + viaSecret: String } input Github__com___kloudlite___operator___toolkit___reconciler__CheckIn { @@ -913,6 +916,16 @@ input Github__com___kloudlite___operator___toolkit___reconciler__StatusIn { resources: [Github__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn!] } +input Github__com___kloudlite___operator___toolkit___types__CPUResourceIn { + max: String! + min: String! +} + +input Github__com___kloudlite___operator___toolkit___types__MemoryResourceIn { + max: String! + min: String! +} + input Github__com___kloudlite___operator___toolkit___types__ObjectReferenceIn { apiVersion: String! kind: String! @@ -920,6 +933,45 @@ input Github__com___kloudlite___operator___toolkit___types__ObjectReferenceIn { namespace: String! } +input Github__com___kloudlite___operator___toolkit___types__ResourceIn { + cpu: Github__com___kloudlite___operator___toolkit___types__CPUResourceIn + memory: Github__com___kloudlite___operator___toolkit___types__MemoryResourceIn +} + +input Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfoIn { + name: String! + url: String! + version: String +} + +input Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpecIn { + chart: Github__com___kloudlite___plugin____helm____chart___api___v1__ChartInfoIn! + helmValues: Map! + jobVars: Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVarsIn + postInstall: String + postUninstall: String + preInstall: String + preUninstall: String +} + +input Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatusIn { + checkList: [Github__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn!] + checks: Map + isReady: Boolean! + lastReadyGeneration: Int + lastReconcileTime: Date + releaseNotes: String! + releaseStatus: String! + resources: [Github__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn!] +} + +input Github__com___kloudlite___plugin____helm____chart___api___v1__HelmJobVarsIn { + affinity: K8s__io___api___core___v1__AffinityIn + nodeSelector: Map + resources: Github__com___kloudlite___operator___toolkit___types__ResourceIn + tolerations: [K8s__io___api___core___v1__TolerationIn!] +} + input K8s__io___api___core___v1__AffinityIn { nodeAffinity: K8s__io___api___core___v1__NodeAffinityIn podAffinity: K8s__io___api___core___v1__PodAffinityIn diff --git a/apps/console/internal/app/graph/struct-to-graphql/helmchart.graphqls b/apps/console/internal/app/graph/struct-to-graphql/helmchart.graphqls index aab03ee78..73dc1da60 100644 --- a/apps/console/internal/app/graph/struct-to-graphql/helmchart.graphqls +++ b/apps/console/internal/app/graph/struct-to-graphql/helmchart.graphqls @@ -5,14 +5,15 @@ type HelmChart @shareable { creationTime: Date! displayName: String! environmentName: String! + export: Github__com___kloudlite___operator___toolkit___plugin__Export id: ID! kind: String lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! markedForDeletion: Boolean metadata: Metadata @goField(name: "objectMeta") recordVersion: Int! - spec: Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec - status: Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus + spec: Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpec + status: Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatus syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! updateTime: Date! } @@ -31,8 +32,10 @@ type HelmChartPaginatedRecords @shareable { input HelmChartIn { apiVersion: String displayName: String! + export: Github__com___kloudlite___operator___toolkit___plugin__ExportIn kind: String metadata: MetadataIn - spec: Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpecIn + spec: Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartSpecIn + status: Github__com___kloudlite___plugin____helm____chart___api___v1__HelmChartStatusIn } diff --git a/apps/console/internal/app/resource-updates-receiver/process-resource-updates.go b/apps/console/internal/app/resource-updates-receiver/process-resource-updates.go index 43bd1f975..69fe6e01d 100644 --- a/apps/console/internal/app/resource-updates-receiver/process-resource-updates.go +++ b/apps/console/internal/app/resource-updates-receiver/process-resource-updates.go @@ -37,7 +37,7 @@ func newResourceContext(ctx domain.ConsoleContext, environmentName string) domai var ( appsGVK = fn.GVK("crds.kloudlite.io/v1", "App") - helmChartsGVK = fn.GVK("crds.kloudlite.io/v1", "HelmChart") + helmChartsGVK = fn.GVK("plugin-helm-chart.kloudlite.github.com/v1", "HelmChart") externalAppsGVK = fn.GVK("crds.kloudlite.io/v1", "ExternalApp") environmentGVK = fn.GVK("crds.kloudlite.io/v1", "Environment") deviceGVK = fn.GVK("wireguard.kloudlite.io/v1", "Device") diff --git a/apps/console/internal/domain/api.go b/apps/console/internal/domain/api.go index 6c126e6a2..641984a79 100644 --- a/apps/console/internal/domain/api.go +++ b/apps/console/internal/domain/api.go @@ -358,6 +358,7 @@ type ServiceBinding interface { type ClusterManagedService interface { ListClusterManagedServices(ctx ConsoleContext, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.ClusterManagedService], error) + ListHelmTypeClusterManagedServices(ctx ConsoleContext, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.ClusterManagedService], error) GetClusterManagedService(ctx ConsoleContext, serviceName string) (*entities.ClusterManagedService, error) diff --git a/apps/console/internal/domain/cluster-managed-service.go b/apps/console/internal/domain/cluster-managed-service.go index 64813d667..57f09fc12 100644 --- a/apps/console/internal/domain/cluster-managed-service.go +++ b/apps/console/internal/domain/cluster-managed-service.go @@ -26,6 +26,9 @@ func (d *domain) ListClusterManagedServices(ctx ConsoleContext, search map[strin f := repos.Filter{ fields.AccountName: ctx.AccountName, + fc.ClusterManagedServiceSpecMsvcSpecPluginKind: map[string]any{ + "$ne": "HelmChart", + }, } pr, err := d.clusterManagedServiceRepo.FindPaginated(ctx, d.secretRepo.MergeMatchFilters(f, search), pagination) @@ -36,6 +39,24 @@ func (d *domain) ListClusterManagedServices(ctx ConsoleContext, search map[strin return pr, nil } +func (d *domain) ListHelmTypeClusterManagedServices(ctx ConsoleContext, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.ClusterManagedService], error) { + if err := d.canPerformActionInAccount(ctx, iamT.ListClusterManagedServices); err != nil { + return nil, errors.NewE(err) + } + + f := repos.Filter{ + fields.AccountName: ctx.AccountName, + fc.ClusterManagedServiceSpecMsvcSpecPluginKind: "HelmChart", + } + pr, err := d.clusterManagedServiceRepo.FindPaginated(ctx, d.secretRepo.MergeMatchFilters(f, search), pagination) + if err != nil { + return nil, errors.NewE(err) + } + + return pr, nil + +} + func (d *domain) findClusterManagedService(ctx ConsoleContext, name string) (*entities.ClusterManagedService, error) { cmsvc, err := d.clusterManagedServiceRepo.FindOne(ctx, repos.Filter{ fields.AccountName: ctx.AccountName, @@ -379,7 +400,7 @@ func (d *domain) OnClusterManagedServiceUpdateMessage(ctx ConsoleContext, cluste Kind: "RootCredentials", Spec: nil, Export: plugin.Export{ - ViaSecret: xService.SyncedOutputSecretRef.Name, + ViaSecret: service.SyncedOutputSecretRef.Name, }, }, // ResourceTemplate: crdsv1.MresResourceTemplate{ diff --git a/apps/console/internal/domain/environment.go b/apps/console/internal/domain/environment.go index 25ccf5619..09cfc87a6 100644 --- a/apps/console/internal/domain/environment.go +++ b/apps/console/internal/domain/environment.go @@ -22,6 +22,7 @@ import ( fc "github.com/kloudlite/api/apps/console/internal/entities/field-constants" "github.com/kloudlite/api/pkg/repos" t "github.com/kloudlite/api/pkg/types" + helmPlugin "github.com/kloudlite/plugin-helm-chart/api/v1" ) func (d *domain) cleanupEnvironment(ctx ConsoleContext, envName string) error { @@ -547,7 +548,7 @@ func (d *domain) CloneEnvironment(ctx ConsoleContext, args CloneEnvironmentArgs) for i := range helmCharts { if _, err := d.createAndApplyHelmChart(resCtx, &entities.HelmChart{ - HelmChart: crdsv1.HelmChart{ + HelmChart: helmPlugin.HelmChart{ TypeMeta: helmCharts[i].TypeMeta, ObjectMeta: objectMeta(helmCharts[i].ObjectMeta, destEnv.Spec.TargetNamespace), Spec: helmCharts[i].Spec, diff --git a/apps/console/internal/domain/helm-chart.go b/apps/console/internal/domain/helm-chart.go index 924248697..faf8145b9 100644 --- a/apps/console/internal/domain/helm-chart.go +++ b/apps/console/internal/domain/helm-chart.go @@ -148,8 +148,8 @@ func (d *domain) UpdateHelmChart(ctx ResourceContext, helmcIn entities.HelmChart } patchDoc := repos.Document{ - fc.HelmChartSpecChartVersion: helmcIn.Spec.ChartVersion, - fc.HelmChartSpecValues: helmcIn.Spec.Values, + fc.HelmChartSpecChartVersion: helmcIn.Spec.Chart.Version, + fc.HelmChartSpecHelmValues: helmcIn.Spec.HelmValues, } patchForUpdate := common.PatchForUpdate( diff --git a/apps/console/internal/entities/field-constants/generated_constants.go b/apps/console/internal/entities/field-constants/generated_constants.go index 0dc927204..d61f4fc76 100644 --- a/apps/console/internal/entities/field-constants/generated_constants.go +++ b/apps/console/internal/entities/field-constants/generated_constants.go @@ -4,54 +4,55 @@ package field_constants // constant vars generated for struct App const ( - 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" - AppSpecInterceptDeviceHostSuffix = "spec.intercept.deviceHostSuffix" - AppSpecInterceptEnabled = "spec.intercept.enabled" - AppSpecInterceptPortMappings = "spec.intercept.portMappings" - AppSpecInterceptToDevice = "spec.intercept.toDevice" - AppSpecInterceptToIPAddr = "spec.intercept.toIPAddr" - AppSpecNodeSelector = "spec.nodeSelector" - AppSpecRegion = "spec.region" - AppSpecReplicas = "spec.replicas" - AppSpecRouter = "spec.router" - AppSpecRouterBackendProtocol = "spec.router.backendProtocol" - AppSpecRouterBasicAuth = "spec.router.basicAuth" - AppSpecRouterBasicAuthEnabled = "spec.router.basicAuth.enabled" - AppSpecRouterBasicAuthSecretName = "spec.router.basicAuth.secretName" - AppSpecRouterBasicAuthUsername = "spec.router.basicAuth.username" - AppSpecRouterCors = "spec.router.cors" - AppSpecRouterCorsAllowCredentials = "spec.router.cors.allowCredentials" - AppSpecRouterCorsEnabled = "spec.router.cors.enabled" - AppSpecRouterCorsOrigins = "spec.router.cors.origins" - AppSpecRouterDomains = "spec.router.domains" - AppSpecRouterHttps = "spec.router.https" - AppSpecRouterHttpsClusterIssuer = "spec.router.https.clusterIssuer" - AppSpecRouterHttpsEnabled = "spec.router.https.enabled" - AppSpecRouterHttpsForceRedirect = "spec.router.https.forceRedirect" - AppSpecRouterIngressClass = "spec.router.ingressClass" - AppSpecRouterMaxBodySizeInMB = "spec.router.maxBodySizeInMB" - AppSpecRouterRateLimit = "spec.router.rateLimit" - AppSpecRouterRateLimitConnections = "spec.router.rateLimit.connections" - AppSpecRouterRateLimitEnabled = "spec.router.rateLimit.enabled" - AppSpecRouterRateLimitRpm = "spec.router.rateLimit.rpm" - AppSpecRouterRateLimitRps = "spec.router.rateLimit.rps" - AppSpecRouterRoutes = "spec.router.routes" - AppSpecServiceAccount = "spec.serviceAccount" - AppSpecServices = "spec.services" - AppSpecTolerations = "spec.tolerations" - AppSpecTopologySpreadConstraints = "spec.topologySpreadConstraints" + 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" + AppSpecInterceptDeviceHostSuffix = "spec.intercept.deviceHostSuffix" + AppSpecInterceptEnabled = "spec.intercept.enabled" + AppSpecInterceptPortMappings = "spec.intercept.portMappings" + AppSpecInterceptToDevice = "spec.intercept.toDevice" + AppSpecInterceptToIPAddr = "spec.intercept.toIPAddr" + AppSpecNodeSelector = "spec.nodeSelector" + AppSpecRegion = "spec.region" + AppSpecReplicas = "spec.replicas" + AppSpecRouter = "spec.router" + AppSpecRouterBackendProtocol = "spec.router.backendProtocol" + AppSpecRouterBasicAuth = "spec.router.basicAuth" + AppSpecRouterBasicAuthEnabled = "spec.router.basicAuth.enabled" + AppSpecRouterBasicAuthSecretName = "spec.router.basicAuth.secretName" + AppSpecRouterBasicAuthUsername = "spec.router.basicAuth.username" + AppSpecRouterCors = "spec.router.cors" + AppSpecRouterCorsAllowCredentials = "spec.router.cors.allowCredentials" + AppSpecRouterCorsEnabled = "spec.router.cors.enabled" + AppSpecRouterCorsOrigins = "spec.router.cors.origins" + AppSpecRouterDomains = "spec.router.domains" + AppSpecRouterHttps = "spec.router.https" + AppSpecRouterHttpsClusterIssuer = "spec.router.https.clusterIssuer" + AppSpecRouterHttpsEnabled = "spec.router.https.enabled" + AppSpecRouterHttpsForceRedirect = "spec.router.https.forceRedirect" + AppSpecRouterIngressClass = "spec.router.ingressClass" + AppSpecRouterMaxBodySizeInMB = "spec.router.maxBodySizeInMB" + AppSpecRouterNginxIngressAnnotations = "spec.router.nginxIngressAnnotations" + AppSpecRouterRateLimit = "spec.router.rateLimit" + AppSpecRouterRateLimitConnections = "spec.router.rateLimit.connections" + AppSpecRouterRateLimitEnabled = "spec.router.rateLimit.enabled" + AppSpecRouterRateLimitRpm = "spec.router.rateLimit.rpm" + AppSpecRouterRateLimitRps = "spec.router.rateLimit.rps" + AppSpecRouterRoutes = "spec.router.routes" + AppSpecServiceAccount = "spec.serviceAccount" + AppSpecServices = "spec.services" + AppSpecTolerations = "spec.tolerations" + AppSpecTopologySpreadConstraints = "spec.topologySpreadConstraints" ) // constant vars generated for struct ClusterManagedService @@ -133,10 +134,15 @@ const ( // constant vars generated for struct HelmChart const ( + HelmChartExport = "export" + HelmChartExportTemplate = "export.template" + HelmChartExportViaSecret = "export.viaSecret" HelmChartSpec = "spec" - HelmChartSpecChartName = "spec.chartName" - HelmChartSpecChartRepoURL = "spec.chartRepoURL" - HelmChartSpecChartVersion = "spec.chartVersion" + HelmChartSpecChart = "spec.chart" + HelmChartSpecChartName = "spec.chart.name" + HelmChartSpecChartUrl = "spec.chart.url" + HelmChartSpecChartVersion = "spec.chart.version" + HelmChartSpecHelmValues = "spec.helmValues" HelmChartSpecJobVars = "spec.jobVars" HelmChartSpecJobVarsAffinity = "spec.jobVars.affinity" HelmChartSpecJobVarsAffinityNodeAffinity = "spec.jobVars.affinity.nodeAffinity" @@ -149,15 +155,19 @@ const ( HelmChartSpecJobVarsAffinityPodAntiAffinity = "spec.jobVars.affinity.podAntiAffinity" HelmChartSpecJobVarsAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution = "spec.jobVars.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution" HelmChartSpecJobVarsAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution = "spec.jobVars.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution" - HelmChartSpecJobVarsBackOffLimit = "spec.jobVars.backOffLimit" HelmChartSpecJobVarsNodeSelector = "spec.jobVars.nodeSelector" + HelmChartSpecJobVarsResources = "spec.jobVars.resources" + HelmChartSpecJobVarsResourcesCpu = "spec.jobVars.resources.cpu" + HelmChartSpecJobVarsResourcesCpuMax = "spec.jobVars.resources.cpu.max" + HelmChartSpecJobVarsResourcesCpuMin = "spec.jobVars.resources.cpu.min" + HelmChartSpecJobVarsResourcesMemory = "spec.jobVars.resources.memory" + HelmChartSpecJobVarsResourcesMemoryMax = "spec.jobVars.resources.memory.max" + HelmChartSpecJobVarsResourcesMemoryMin = "spec.jobVars.resources.memory.min" HelmChartSpecJobVarsTolerations = "spec.jobVars.tolerations" HelmChartSpecPostInstall = "spec.postInstall" HelmChartSpecPostUninstall = "spec.postUninstall" HelmChartSpecPreInstall = "spec.preInstall" HelmChartSpecPreUninstall = "spec.preUninstall" - HelmChartSpecReleaseName = "spec.releaseName" - HelmChartSpecValues = "spec.values" ) // constant vars generated for struct ImagePullSecret @@ -331,30 +341,31 @@ const ( // constant vars generated for struct Router const ( - RouterEnabled = "enabled" - RouterSpec = "spec" - RouterSpecBackendProtocol = "spec.backendProtocol" - RouterSpecBasicAuth = "spec.basicAuth" - RouterSpecBasicAuthEnabled = "spec.basicAuth.enabled" - RouterSpecBasicAuthSecretName = "spec.basicAuth.secretName" - RouterSpecBasicAuthUsername = "spec.basicAuth.username" - RouterSpecCors = "spec.cors" - RouterSpecCorsAllowCredentials = "spec.cors.allowCredentials" - RouterSpecCorsEnabled = "spec.cors.enabled" - RouterSpecCorsOrigins = "spec.cors.origins" - RouterSpecDomains = "spec.domains" - RouterSpecHttps = "spec.https" - RouterSpecHttpsClusterIssuer = "spec.https.clusterIssuer" - RouterSpecHttpsEnabled = "spec.https.enabled" - RouterSpecHttpsForceRedirect = "spec.https.forceRedirect" - RouterSpecIngressClass = "spec.ingressClass" - RouterSpecMaxBodySizeInMB = "spec.maxBodySizeInMB" - RouterSpecRateLimit = "spec.rateLimit" - RouterSpecRateLimitConnections = "spec.rateLimit.connections" - RouterSpecRateLimitEnabled = "spec.rateLimit.enabled" - RouterSpecRateLimitRpm = "spec.rateLimit.rpm" - RouterSpecRateLimitRps = "spec.rateLimit.rps" - RouterSpecRoutes = "spec.routes" + RouterEnabled = "enabled" + RouterSpec = "spec" + RouterSpecBackendProtocol = "spec.backendProtocol" + RouterSpecBasicAuth = "spec.basicAuth" + RouterSpecBasicAuthEnabled = "spec.basicAuth.enabled" + RouterSpecBasicAuthSecretName = "spec.basicAuth.secretName" + RouterSpecBasicAuthUsername = "spec.basicAuth.username" + RouterSpecCors = "spec.cors" + RouterSpecCorsAllowCredentials = "spec.cors.allowCredentials" + RouterSpecCorsEnabled = "spec.cors.enabled" + RouterSpecCorsOrigins = "spec.cors.origins" + RouterSpecDomains = "spec.domains" + RouterSpecHttps = "spec.https" + RouterSpecHttpsClusterIssuer = "spec.https.clusterIssuer" + RouterSpecHttpsEnabled = "spec.https.enabled" + RouterSpecHttpsForceRedirect = "spec.https.forceRedirect" + RouterSpecIngressClass = "spec.ingressClass" + RouterSpecMaxBodySizeInMB = "spec.maxBodySizeInMB" + RouterSpecNginxIngressAnnotations = "spec.nginxIngressAnnotations" + RouterSpecRateLimit = "spec.rateLimit" + RouterSpecRateLimitConnections = "spec.rateLimit.connections" + RouterSpecRateLimitEnabled = "spec.rateLimit.enabled" + RouterSpecRateLimitRpm = "spec.rateLimit.rpm" + RouterSpecRateLimitRps = "spec.rateLimit.rps" + RouterSpecRoutes = "spec.routes" ) // constant vars generated for struct Secret diff --git a/apps/console/internal/entities/helm-chart.go b/apps/console/internal/entities/helm-chart.go index 75fc80b58..65f926da4 100644 --- a/apps/console/internal/entities/helm-chart.go +++ b/apps/console/internal/entities/helm-chart.go @@ -5,14 +5,14 @@ import ( "github.com/kloudlite/api/common/fields" "github.com/kloudlite/api/pkg/repos" t "github.com/kloudlite/api/pkg/types" - crdsv1 "github.com/kloudlite/operator/apis/crds/v1" "github.com/kloudlite/operator/toolkit/reconciler" + helmPlugin "github.com/kloudlite/plugin-helm-chart/api/v1" ) type HelmChart struct { repos.BaseEntity `json:",inline" graphql:"noinput"` - crdsv1.HelmChart `json:",inline"` + helmPlugin.HelmChart `json:",inline"` AccountName string `json:"accountName" graphql:"noinput"` EnvironmentName string `json:"environmentName" graphql:"noinput"` diff --git a/apps/gateway/supergraph.yml b/apps/gateway/supergraph.yml index c13e1a89a..3add16651 100644 --- a/apps/gateway/supergraph.yml +++ b/apps/gateway/supergraph.yml @@ -7,11 +7,7 @@ subgraphs: account-api: routing_url: http://accounts-api:3000/query schema: - file: ./schemas/accounts-api.schema - container-registry-api: - routing_url: http://container-registry-api:3000/query - schema: - file: ./schemas/container-registry-api.schema + file: ./schemas/accounts-api.schema console-api: routing_url: http://console-api:3000/query schema: @@ -28,3 +24,7 @@ subgraphs: # routing_url: http://iot-console-api:3000/query # schema: # file: ./schemas/iot-console-api.schema + # container-registry-api: + # routing_url: http://container-registry-api:3000/query + # schema: + # file: ./schemas/container-registry-api.schema diff --git a/apps/infra/Taskfile.yml b/apps/infra/Taskfile.yml index 7798df2d8..44fc7326d 100644 --- a/apps/infra/Taskfile.yml +++ b/apps/infra/Taskfile.yml @@ -37,13 +37,15 @@ tasks: --struct github.com/kloudlite/api/apps/infra/internal/entities.PersistentVolume --struct github.com/kloudlite/api/apps/infra/internal/entities.Namespace --struct github.com/kloudlite/api/apps/infra/internal/entities.VolumeAttachment + --struct github.com/kloudlite/api/apps/infra/internal/entities.Workspace + --struct github.com/kloudlite/api/apps/infra/internal/entities.Workmachine --struct github.com/kloudlite/api/pkg/repos.MatchFilter --struct github.com/kloudlite/api/apps/infra/internal/domain.BYOKSetupInstruction --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 Cluster,BYOKCluster,Node,NodePool,GlobalVPN,GlobalVPNDevice,CloudProviderSecret,DomainEntry,PersistentVolumeClaim,Namespace,VolumeAttachment,PersistentVolume + go run main.go --dev --out-dir ../graph/struct-to-graphql --with-pagination Cluster,BYOKCluster,Node,NodePool,GlobalVPN,GlobalVPNDevice,CloudProviderSecret,DomainEntry,PersistentVolumeClaim,Namespace,VolumeAttachment,PersistentVolume,Workspace,Workmachine popd - rm -rf ./internal/app/_struct-to-graphql @@ -83,7 +85,7 @@ tasks: - task: docker:build-and-push vars: - args: "--platform linux/amd64,linux/arm64 --build-arg BINARY={{.binary}} ." + args: "--platform linux/amd64 --build-arg BINARY={{.binary}} ." image: "{{.image}}" test: diff --git a/apps/infra/internal/app/app.go b/apps/infra/internal/app/app.go index 8d9e3ed74..4299bd2d1 100644 --- a/apps/infra/internal/app/app.go +++ b/apps/infra/internal/app/app.go @@ -2,8 +2,10 @@ package app import ( "context" + "fmt" "log/slog" + "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/auth" "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/console" "github.com/kloudlite/api/apps/infra/internal/entities" @@ -38,6 +40,7 @@ type ( IAMGrpcClient grpc.Client AccountGrpcClient grpc.Client ConsoleGrpcClient grpc.Client + AuthGrpcClient grpc.Client ) type ( @@ -69,6 +72,10 @@ var Module = fx.Module( repos.NewFxMongoRepo[*entities.PersistentVolume]("pv", "pv", entities.PersistentVolumeIndices), repos.NewFxMongoRepo[*entities.VolumeAttachment]("volume_attachments", "volatt", entities.VolumeAttachmentIndices), + // Workspace + repos.NewFxMongoRepo[*entities.Workspace]("workspaces", "wsp", entities.WorkspaceIndexes), + repos.NewFxMongoRepo[*entities.Workmachine]("work_machines", "wm", entities.WorkmachineIndexes), + fx.Provide( func(conn IAMGrpcClient) iam.IAMClient { return iam.NewIAMClient(conn) @@ -88,6 +95,12 @@ var Module = fx.Module( }, ), + fx.Provide( + func(conn AuthGrpcClient) auth.AuthClient { + return auth.NewAuthClient(conn) + }, + ), + fx.Provide(func(jsc *nats.JetstreamClient, logger logging.Logger) SendTargetClusterMessagesProducer { return msg_nats.NewJetstreamProducer(jsc) }), @@ -224,6 +237,12 @@ var Module = fx.Module( schema := generated.NewExecutableSchema(config) server.SetupGraphqlServer(schema, + func(c *fiber.Ctx) error { + b := c.Body() + fmt.Println(string(b)) + c.Next() + return nil + }, httpServer.NewReadSessionMiddleware(sessionRepo, constants.CookieName, constants.CacheSessionPrefix), ) }, diff --git a/apps/infra/internal/app/gqlgen.yml b/apps/infra/internal/app/gqlgen.yml index 23adb5d25..fcc823693 100644 --- a/apps/infra/internal/app/gqlgen.yml +++ b/apps/infra/internal/app/gqlgen.yml @@ -125,6 +125,14 @@ models: model: github.com/kloudlite/api/apps/infra/internal/entities.VolumeAttachment VolumeAttachmentIn: *volume-attachment-model + Workspace: &workspace-model + model: github.com/kloudlite/api/apps/infra/internal/entities.Workspace + WorkspaceIn: *workspace-model + + Workmachine: &workmachine-model + model: github.com/kloudlite/api/apps/infra/internal/entities.Workmachine + WorkmachineIn: *workmachine-model + Node: &node-model model: github.com/kloudlite/api/apps/infra/internal/entities.Node diff --git a/apps/infra/internal/app/graph/generated/generated.go b/apps/infra/internal/app/graph/generated/generated.go index 51ef9e15a..34b40bd7a 100644 --- a/apps/infra/internal/app/graph/generated/generated.go +++ b/apps/infra/internal/app/graph/generated/generated.go @@ -67,6 +67,8 @@ type ResolverRoot interface { PersistentVolumeClaim() PersistentVolumeClaimResolver Query() QueryResolver VolumeAttachment() VolumeAttachmentResolver + Workmachine() WorkmachineResolver + Workspace() WorkspaceResolver BYOKClusterIn() BYOKClusterInResolver CloudProviderSecretIn() CloudProviderSecretInResolver ClusterIn() ClusterInResolver @@ -77,6 +79,8 @@ type ResolverRoot interface { NodePoolIn() NodePoolInResolver PersistentVolumeIn() PersistentVolumeInResolver VolumeAttachmentIn() VolumeAttachmentInResolver + WorkmachineIn() WorkmachineInResolver + WorkspaceIn() WorkspaceInResolver } type DirectiveRoot struct { @@ -365,6 +369,7 @@ type ComplexityRoot struct { } Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig struct { + Ami func(childComplexity int) int InstanceType func(childComplexity int) int Nodes func(childComplexity int) int } @@ -379,6 +384,7 @@ type ComplexityRoot struct { } Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig struct { + Ami func(childComplexity int) int CPUNode func(childComplexity int) int GpuNode func(childComplexity int) int Nodes func(childComplexity int) int @@ -505,6 +511,45 @@ type ComplexityRoot struct { Namespace func(childComplexity int) int } + Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig struct { + Ami func(childComplexity int) int + ExternalVolumeSize func(childComplexity int) int + ExternalVolumeType func(childComplexity int) int + IamInstanceProfileRole func(childComplexity int) int + InstanceType func(childComplexity int) int + RootVolumeSize func(childComplexity int) int + RootVolumeType func(childComplexity int) int + } + + Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams struct { + NodeSelector func(childComplexity int) int + Tolerations func(childComplexity int) int + } + + Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec struct { + AWS func(childComplexity int) int + JobParams func(childComplexity int) int + SSHPublicKeys func(childComplexity int) int + State func(childComplexity int) int + TargetNamespace func(childComplexity int) int + } + + Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus struct { + MachineSSHKey func(childComplexity int) int + Status func(childComplexity int) int + } + + Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec struct { + EnableCodeServer func(childComplexity int) int + EnableJupyterNotebook func(childComplexity int) int + EnableTtyd func(childComplexity int) int + EnableVSCodeServer func(childComplexity int) int + ImagePullPolicy func(childComplexity int) int + ServiceAccountName func(childComplexity int) int + State func(childComplexity int) int + WorkMachine func(childComplexity int) int + } + Github__com___kloudlite___operator___pkg___operator__Check struct { Debug func(childComplexity int) int Error func(childComplexity int) int @@ -955,6 +1000,14 @@ type ComplexityRoot struct { Value func(childComplexity int) int } + K8s__io___api___core___v1__Toleration struct { + Effect func(childComplexity int) int + Key func(childComplexity int) int + Operator func(childComplexity int) int + TolerationSeconds func(childComplexity int) int + Value func(childComplexity int) int + } + K8s__io___api___core___v1__TypedLocalObjectReference struct { APIGroup func(childComplexity int) int Kind func(childComplexity int) int @@ -1047,28 +1100,35 @@ type ComplexityRoot struct { } Mutation struct { - InfraCreateBYOKCluster func(childComplexity int, cluster entities.BYOKCluster) int - InfraCreateCluster func(childComplexity int, cluster entities.Cluster) int - InfraCreateDomainEntry func(childComplexity int, domainEntry entities.DomainEntry) int - InfraCreateGlobalVPNDevice func(childComplexity int, gvpnDevice entities.GlobalVPNDevice) int - InfraCreateGlobalVpn func(childComplexity int, gvpn entities.GlobalVPN) int - InfraCreateNodePool func(childComplexity int, clusterName string, pool entities.NodePool) int - InfraCreateProviderSecret func(childComplexity int, secret entities.CloudProviderSecret) int - InfraDeleteBYOKCluster func(childComplexity int, name string) int - InfraDeleteCluster func(childComplexity int, name string) int - InfraDeleteDomainEntry func(childComplexity int, domainName string) int - InfraDeleteGlobalVPNDevice func(childComplexity int, gvpn string, deviceName string) int - InfraDeleteGlobalVpn func(childComplexity int, name string) int - InfraDeleteNodePool func(childComplexity int, clusterName string, poolName string) int - InfraDeleteProviderSecret func(childComplexity int, secretName string) int - InfraDeletePv func(childComplexity int, clusterName string, pvName string) int - InfraUpdateBYOKCluster func(childComplexity int, clusterName string, displayName string) int - InfraUpdateCluster func(childComplexity int, cluster entities.Cluster) int - InfraUpdateDomainEntry func(childComplexity int, domainEntry entities.DomainEntry) int - InfraUpdateGlobalVPNDevice func(childComplexity int, gvpnDevice entities.GlobalVPNDevice) int - InfraUpdateGlobalVpn func(childComplexity int, gvpn entities.GlobalVPN) int - InfraUpdateNodePool func(childComplexity int, clusterName string, pool entities.NodePool) int - InfraUpdateProviderSecret func(childComplexity int, secret entities.CloudProviderSecret) int + InfraCreateBYOKCluster func(childComplexity int, cluster entities.BYOKCluster) int + InfraCreateCluster func(childComplexity int, cluster entities.Cluster) int + InfraCreateDomainEntry func(childComplexity int, domainEntry entities.DomainEntry) int + InfraCreateGlobalVPNDevice func(childComplexity int, gvpnDevice entities.GlobalVPNDevice) int + InfraCreateGlobalVpn func(childComplexity int, gvpn entities.GlobalVPN) int + InfraCreateNodePool func(childComplexity int, clusterName string, pool entities.NodePool) int + InfraCreateProviderSecret func(childComplexity int, secret entities.CloudProviderSecret) int + InfraCreateWorkMachine func(childComplexity int, clusterName string, workmachine entities.Workmachine) int + InfraCreateWorkspace func(childComplexity int, workmachineName string, clusterName string, workspace entities.Workspace) int + InfraDeleteBYOKCluster func(childComplexity int, name string) int + InfraDeleteCluster func(childComplexity int, name string) int + InfraDeleteDomainEntry func(childComplexity int, domainName string) int + InfraDeleteGlobalVPNDevice func(childComplexity int, gvpn string, deviceName string) int + InfraDeleteGlobalVpn func(childComplexity int, name string) int + InfraDeleteNodePool func(childComplexity int, clusterName string, poolName string) int + InfraDeleteProviderSecret func(childComplexity int, secretName string) int + InfraDeletePv func(childComplexity int, clusterName string, pvName string) int + InfraDeleteWorkspace func(childComplexity int, workmachineName string, clusterName string, name string) int + InfraUpdateBYOKCluster func(childComplexity int, clusterName string, displayName string) int + InfraUpdateCluster func(childComplexity int, cluster entities.Cluster) int + InfraUpdateDomainEntry func(childComplexity int, domainEntry entities.DomainEntry) int + InfraUpdateGlobalVPNDevice func(childComplexity int, gvpnDevice entities.GlobalVPNDevice) int + InfraUpdateGlobalVpn func(childComplexity int, gvpn entities.GlobalVPN) int + InfraUpdateNodePool func(childComplexity int, clusterName string, pool entities.NodePool) int + InfraUpdateProviderSecret func(childComplexity int, secret entities.CloudProviderSecret) int + InfraUpdateWorkMachine func(childComplexity int, clusterName string, workmachine entities.Workmachine) int + InfraUpdateWorkMachineStatus func(childComplexity int, clusterName string, status bool, name string) int + InfraUpdateWorkspace func(childComplexity int, workmachineName string, clusterName string, workspace entities.Workspace) int + InfraUpdateWorkspaceStatus func(childComplexity int, workmachineName string, clusterName string, status bool, name string) int } Namespace struct { @@ -1241,6 +1301,8 @@ type ComplexityRoot struct { InfraGetPv func(childComplexity int, clusterName string, name string) int InfraGetPvc func(childComplexity int, clusterName string, name string) int InfraGetVolumeAttachment func(childComplexity int, clusterName string, name string) int + InfraGetWorkmachine func(childComplexity int, clusterName string, name string) int + InfraGetWorkspace func(childComplexity int, workmachineName string, clusterName string, name string) int InfraListBYOKClusters func(childComplexity int, search *model.SearchCluster, pagination *repos.CursorPagination) int InfraListClusters func(childComplexity int, search *model.SearchCluster, pagination *repos.CursorPagination) int InfraListDomainEntries func(childComplexity int, search *model.SearchDomainEntry, pagination *repos.CursorPagination) int @@ -1253,6 +1315,7 @@ type ComplexityRoot struct { InfraListPVs func(childComplexity int, clusterName string, search *model.SearchPersistentVolumes, pq *repos.CursorPagination) int InfraListProviderSecrets func(childComplexity int, search *model.SearchProviderSecret, pagination *repos.CursorPagination) int InfraListVolumeAttachments func(childComplexity int, clusterName string, search *model.SearchVolumeAttachments, pq *repos.CursorPagination) int + InfraListWorkspaces func(childComplexity int, workmachineName string, clusterName string, search *model.SearchWorkspaces, pagination *repos.CursorPagination) int InfratGetBYOKClusterSetupInstructions func(childComplexity int, name string, onlyHelmValues *bool) int __resolve__service func(childComplexity int) int } @@ -1287,6 +1350,69 @@ type ComplexityRoot struct { TotalCount func(childComplexity int) int } + Workmachine struct { + APIVersion func(childComplexity int) int + AccountName func(childComplexity int) int + ClusterName func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreationTime func(childComplexity int) int + DispatchAddr func(childComplexity int) int + DisplayName func(childComplexity int) int + ID func(childComplexity int) int + Kind func(childComplexity int) int + LastUpdatedBy func(childComplexity int) int + MarkedForDeletion func(childComplexity int) int + ObjectMeta func(childComplexity int) int + RecordVersion func(childComplexity int) int + Spec func(childComplexity int) int + Status func(childComplexity int) int + SyncStatus func(childComplexity int) int + UpdateTime func(childComplexity int) int + } + + WorkmachineEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + WorkmachinePaginatedRecords struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + Workspace struct { + APIVersion func(childComplexity int) int + AccountName func(childComplexity int) int + ClusterName func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreationTime func(childComplexity int) int + DispatchAddr func(childComplexity int) int + DisplayName func(childComplexity int) int + ID func(childComplexity int) int + Kind func(childComplexity int) int + LastUpdatedBy func(childComplexity int) int + MarkedForDeletion func(childComplexity int) int + ObjectMeta func(childComplexity int) int + RecordVersion func(childComplexity int) int + Spec func(childComplexity int) int + Status func(childComplexity int) int + SyncStatus func(childComplexity int) int + UpdateTime func(childComplexity int) int + WorkmachineName func(childComplexity int) int + } + + WorkspaceEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + WorkspacePaginatedRecords struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + _Service struct { SDL func(childComplexity int) int } @@ -1406,6 +1532,13 @@ type MutationResolver interface { InfraUpdateNodePool(ctx context.Context, clusterName string, pool entities.NodePool) (*entities.NodePool, error) InfraDeleteNodePool(ctx context.Context, clusterName string, poolName string) (bool, error) InfraDeletePv(ctx context.Context, clusterName string, pvName string) (bool, error) + InfraCreateWorkspace(ctx context.Context, workmachineName string, clusterName string, workspace entities.Workspace) (*entities.Workspace, error) + InfraUpdateWorkspace(ctx context.Context, workmachineName string, clusterName string, workspace entities.Workspace) (*entities.Workspace, error) + InfraDeleteWorkspace(ctx context.Context, workmachineName string, clusterName string, name string) (bool, error) + InfraUpdateWorkspaceStatus(ctx context.Context, workmachineName string, clusterName string, status bool, name string) (bool, error) + InfraCreateWorkMachine(ctx context.Context, clusterName string, workmachine entities.Workmachine) (*entities.Workmachine, error) + InfraUpdateWorkMachine(ctx context.Context, clusterName string, workmachine entities.Workmachine) (*entities.Workmachine, error) + InfraUpdateWorkMachineStatus(ctx context.Context, clusterName string, status bool, name string) (bool, error) } type NamespaceResolver interface { CreationTime(ctx context.Context, obj *entities.Namespace) (string, error) @@ -1422,7 +1555,6 @@ type NodeResolver interface { ID(ctx context.Context, obj *entities.Node) (repos.ID, error) Spec(ctx context.Context, obj *entities.Node) (*model.GithubComKloudliteOperatorApisClustersV1NodeSpec, error) - Status(ctx context.Context, obj *entities.Node) (*model.GithubComKloudliteOperatorPkgOperatorStatus, error) UpdateTime(ctx context.Context, obj *entities.Node) (string, error) } @@ -1484,6 +1616,9 @@ type QueryResolver interface { InfraGetPv(ctx context.Context, clusterName string, name string) (*entities.PersistentVolume, error) InfraListVolumeAttachments(ctx context.Context, clusterName string, search *model.SearchVolumeAttachments, pq *repos.CursorPagination) (*model.VolumeAttachmentPaginatedRecords, error) InfraGetVolumeAttachment(ctx context.Context, clusterName string, name string) (*entities.VolumeAttachment, error) + InfraListWorkspaces(ctx context.Context, workmachineName string, clusterName string, search *model.SearchWorkspaces, pagination *repos.CursorPagination) (*model.WorkspacePaginatedRecords, error) + InfraGetWorkspace(ctx context.Context, workmachineName string, clusterName string, name string) (*entities.Workspace, error) + InfraGetWorkmachine(ctx context.Context, clusterName string, name string) (*entities.Workmachine, error) } type VolumeAttachmentResolver interface { CreationTime(ctx context.Context, obj *entities.VolumeAttachment) (string, error) @@ -1495,6 +1630,28 @@ type VolumeAttachmentResolver interface { UpdateTime(ctx context.Context, obj *entities.VolumeAttachment) (string, error) } +type WorkmachineResolver interface { + CreationTime(ctx context.Context, obj *entities.Workmachine) (string, error) + DispatchAddr(ctx context.Context, obj *entities.Workmachine) (*model.GithubComKloudliteAPIAppsInfraInternalEntitiesDispatchAddr, error) + + ID(ctx context.Context, obj *entities.Workmachine) (repos.ID, error) + + Spec(ctx context.Context, obj *entities.Workmachine) (*model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpec, error) + Status(ctx context.Context, obj *entities.Workmachine) (*model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatus, error) + + UpdateTime(ctx context.Context, obj *entities.Workmachine) (string, error) +} +type WorkspaceResolver interface { + CreationTime(ctx context.Context, obj *entities.Workspace) (string, error) + DispatchAddr(ctx context.Context, obj *entities.Workspace) (*model.GithubComKloudliteAPIAppsInfraInternalEntitiesDispatchAddr, error) + + ID(ctx context.Context, obj *entities.Workspace) (repos.ID, error) + + Spec(ctx context.Context, obj *entities.Workspace) (*model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec, error) + + UpdateTime(ctx context.Context, obj *entities.Workspace) (string, error) + WorkmachineName(ctx context.Context, obj *entities.Workspace) (string, error) +} type BYOKClusterInResolver interface { Metadata(ctx context.Context, obj *entities.BYOKCluster, data *v1.ObjectMeta) error @@ -1541,6 +1698,16 @@ type VolumeAttachmentInResolver interface { Spec(ctx context.Context, obj *entities.VolumeAttachment, data *model.K8sIoAPIStorageV1VolumeAttachmentSpecIn) error Status(ctx context.Context, obj *entities.VolumeAttachment, data *model.K8sIoAPIStorageV1VolumeAttachmentStatusIn) error } +type WorkmachineInResolver interface { + Metadata(ctx context.Context, obj *entities.Workmachine, data *v1.ObjectMeta) error + Spec(ctx context.Context, obj *entities.Workmachine, data *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpecIn) error + Status(ctx context.Context, obj *entities.Workmachine, data *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatusIn) error +} +type WorkspaceInResolver interface { + Metadata(ctx context.Context, obj *entities.Workspace, data *v1.ObjectMeta) error + Spec(ctx context.Context, obj *entities.Workspace, data *model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpecIn) error + Status(ctx context.Context, obj *entities.Workspace, data *model.GithubComKloudliteOperatorToolkitReconcilerStatusIn) error +} type executableSchema struct { schema *ast.Schema @@ -2814,6 +2981,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Github__com___kloudlite___operator___apis___clusters___v1__AwsCredentials.SecretRef(childComplexity), true + case "Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig.ami": + if e.complexity.Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig.Ami == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig.Ami(childComplexity), true + case "Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig.instanceType": if e.complexity.Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig.InstanceType == nil { break @@ -2849,6 +3023,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNode.InstanceTypes(childComplexity), true + case "Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig.ami": + if e.complexity.Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig.Ami == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig.Ami(childComplexity), true + case "Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig.cpuNode": if e.complexity.Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig.CPUNode == nil { break @@ -3381,6 +3562,174 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Github__com___kloudlite___operator___apis___common____types__SecretRef.Namespace(childComplexity), true + case "Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.ami": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.Ami == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.Ami(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.externalVolumeSize": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.ExternalVolumeSize == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.ExternalVolumeSize(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.externalVolumeType": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.ExternalVolumeType == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.ExternalVolumeType(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.iamInstanceProfileRole": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.IamInstanceProfileRole == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.IamInstanceProfileRole(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.instanceType": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.InstanceType == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.InstanceType(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.rootVolumeSize": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.RootVolumeSize == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.RootVolumeSize(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.rootVolumeType": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.RootVolumeType == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig.RootVolumeType(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams.nodeSelector": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams.NodeSelector == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams.NodeSelector(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams.tolerations": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams.Tolerations == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams.Tolerations(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.aws": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.AWS == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.AWS(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.jobParams": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.JobParams == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.JobParams(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.sshPublicKeys": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.SSHPublicKeys == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.SSHPublicKeys(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.state": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.State == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.State(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.targetNamespace": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.TargetNamespace == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec.TargetNamespace(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus.machineSSHKey": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus.MachineSSHKey == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus.MachineSSHKey(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus.status": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus.Status == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus.Status(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.enableCodeServer": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.EnableCodeServer == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.EnableCodeServer(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.enableJupyterNotebook": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.EnableJupyterNotebook == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.EnableJupyterNotebook(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.enableTTYD": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.EnableTtyd == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.EnableTtyd(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.enableVSCodeServer": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.EnableVSCodeServer == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.EnableVSCodeServer(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.imagePullPolicy": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.ImagePullPolicy == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.ImagePullPolicy(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.serviceAccountName": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.ServiceAccountName == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.ServiceAccountName(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.state": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.State == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.State(childComplexity), true + + case "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.workMachine": + if e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.WorkMachine == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec.WorkMachine(childComplexity), true + case "Github__com___kloudlite___operator___pkg___operator__Check.debug": if e.complexity.Github__com___kloudlite___operator___pkg___operator__Check.Debug == nil { break @@ -5418,6 +5767,41 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.K8s__io___api___core___v1__Taint.Value(childComplexity), true + case "K8s__io___api___core___v1__Toleration.effect": + if e.complexity.K8s__io___api___core___v1__Toleration.Effect == nil { + break + } + + return e.complexity.K8s__io___api___core___v1__Toleration.Effect(childComplexity), true + + case "K8s__io___api___core___v1__Toleration.key": + if e.complexity.K8s__io___api___core___v1__Toleration.Key == nil { + break + } + + return e.complexity.K8s__io___api___core___v1__Toleration.Key(childComplexity), true + + case "K8s__io___api___core___v1__Toleration.operator": + if e.complexity.K8s__io___api___core___v1__Toleration.Operator == nil { + break + } + + return e.complexity.K8s__io___api___core___v1__Toleration.Operator(childComplexity), true + + case "K8s__io___api___core___v1__Toleration.tolerationSeconds": + if e.complexity.K8s__io___api___core___v1__Toleration.TolerationSeconds == nil { + break + } + + return e.complexity.K8s__io___api___core___v1__Toleration.TolerationSeconds(childComplexity), true + + case "K8s__io___api___core___v1__Toleration.value": + if e.complexity.K8s__io___api___core___v1__Toleration.Value == nil { + break + } + + return e.complexity.K8s__io___api___core___v1__Toleration.Value(childComplexity), true + case "K8s__io___api___core___v1__TypedLocalObjectReference.apiGroup": if e.complexity.K8s__io___api___core___v1__TypedLocalObjectReference.APIGroup == nil { break @@ -5824,6 +6208,30 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.InfraCreateProviderSecret(childComplexity, args["secret"].(entities.CloudProviderSecret)), true + case "Mutation.infra_createWorkMachine": + if e.complexity.Mutation.InfraCreateWorkMachine == nil { + break + } + + args, err := ec.field_Mutation_infra_createWorkMachine_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.InfraCreateWorkMachine(childComplexity, args["clusterName"].(string), args["workmachine"].(entities.Workmachine)), true + + case "Mutation.infra_createWorkspace": + if e.complexity.Mutation.InfraCreateWorkspace == nil { + break + } + + args, err := ec.field_Mutation_infra_createWorkspace_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.InfraCreateWorkspace(childComplexity, args["workmachineName"].(string), args["clusterName"].(string), args["workspace"].(entities.Workspace)), true + case "Mutation.infra_deleteBYOKCluster": if e.complexity.Mutation.InfraDeleteBYOKCluster == nil { break @@ -5920,6 +6328,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.InfraDeletePv(childComplexity, args["clusterName"].(string), args["pvName"].(string)), true + case "Mutation.infra_deleteWorkspace": + if e.complexity.Mutation.InfraDeleteWorkspace == nil { + break + } + + args, err := ec.field_Mutation_infra_deleteWorkspace_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.InfraDeleteWorkspace(childComplexity, args["workmachineName"].(string), args["clusterName"].(string), args["name"].(string)), true + case "Mutation.infra_updateBYOKCluster": if e.complexity.Mutation.InfraUpdateBYOKCluster == nil { break @@ -6004,6 +6424,54 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.InfraUpdateProviderSecret(childComplexity, args["secret"].(entities.CloudProviderSecret)), true + case "Mutation.infra_updateWorkMachine": + if e.complexity.Mutation.InfraUpdateWorkMachine == nil { + break + } + + args, err := ec.field_Mutation_infra_updateWorkMachine_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.InfraUpdateWorkMachine(childComplexity, args["clusterName"].(string), args["workmachine"].(entities.Workmachine)), true + + case "Mutation.infra_updateWorkMachineStatus": + if e.complexity.Mutation.InfraUpdateWorkMachineStatus == nil { + break + } + + args, err := ec.field_Mutation_infra_updateWorkMachineStatus_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.InfraUpdateWorkMachineStatus(childComplexity, args["clusterName"].(string), args["status"].(bool), args["name"].(string)), true + + case "Mutation.infra_updateWorkspace": + if e.complexity.Mutation.InfraUpdateWorkspace == nil { + break + } + + args, err := ec.field_Mutation_infra_updateWorkspace_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.InfraUpdateWorkspace(childComplexity, args["workmachineName"].(string), args["clusterName"].(string), args["workspace"].(entities.Workspace)), true + + case "Mutation.infra_updateWorkspaceStatus": + if e.complexity.Mutation.InfraUpdateWorkspaceStatus == nil { + break + } + + args, err := ec.field_Mutation_infra_updateWorkspaceStatus_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.InfraUpdateWorkspaceStatus(childComplexity, args["workmachineName"].(string), args["clusterName"].(string), args["status"].(bool), args["name"].(string)), true + case "Namespace.apiVersion": if e.complexity.Namespace.APIVersion == nil { break @@ -6921,6 +7389,30 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.InfraGetVolumeAttachment(childComplexity, args["clusterName"].(string), args["name"].(string)), true + case "Query.infra_getWorkmachine": + if e.complexity.Query.InfraGetWorkmachine == nil { + break + } + + args, err := ec.field_Query_infra_getWorkmachine_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.InfraGetWorkmachine(childComplexity, args["clusterName"].(string), args["name"].(string)), true + + case "Query.infra_getWorkspace": + if e.complexity.Query.InfraGetWorkspace == nil { + break + } + + args, err := ec.field_Query_infra_getWorkspace_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.InfraGetWorkspace(childComplexity, args["workmachineName"].(string), args["clusterName"].(string), args["name"].(string)), true + case "Query.infra_listBYOKClusters": if e.complexity.Query.InfraListBYOKClusters == nil { break @@ -7060,6 +7552,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.InfraListVolumeAttachments(childComplexity, args["clusterName"].(string), args["search"].(*model.SearchVolumeAttachments), args["pq"].(*repos.CursorPagination)), true + case "Query.infra_listWorkspaces": + if e.complexity.Query.InfraListWorkspaces == nil { + break + } + + args, err := ec.field_Query_infra_listWorkspaces_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.InfraListWorkspaces(childComplexity, args["workmachineName"].(string), args["clusterName"].(string), args["search"].(*model.SearchWorkspaces), args["pagination"].(*repos.CursorPagination)), true + case "Query.infrat_getBYOKClusterSetupInstructions": if e.complexity.Query.InfratGetBYOKClusterSetupInstructions == nil { break @@ -7226,6 +7730,321 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.VolumeAttachmentPaginatedRecords.TotalCount(childComplexity), true + case "Workmachine.apiVersion": + if e.complexity.Workmachine.APIVersion == nil { + break + } + + return e.complexity.Workmachine.APIVersion(childComplexity), true + + case "Workmachine.accountName": + if e.complexity.Workmachine.AccountName == nil { + break + } + + return e.complexity.Workmachine.AccountName(childComplexity), true + + case "Workmachine.clusterName": + if e.complexity.Workmachine.ClusterName == nil { + break + } + + return e.complexity.Workmachine.ClusterName(childComplexity), true + + case "Workmachine.createdBy": + if e.complexity.Workmachine.CreatedBy == nil { + break + } + + return e.complexity.Workmachine.CreatedBy(childComplexity), true + + case "Workmachine.creationTime": + if e.complexity.Workmachine.CreationTime == nil { + break + } + + return e.complexity.Workmachine.CreationTime(childComplexity), true + + case "Workmachine.dispatchAddr": + if e.complexity.Workmachine.DispatchAddr == nil { + break + } + + return e.complexity.Workmachine.DispatchAddr(childComplexity), true + + case "Workmachine.displayName": + if e.complexity.Workmachine.DisplayName == nil { + break + } + + return e.complexity.Workmachine.DisplayName(childComplexity), true + + case "Workmachine.id": + if e.complexity.Workmachine.ID == nil { + break + } + + return e.complexity.Workmachine.ID(childComplexity), true + + case "Workmachine.kind": + if e.complexity.Workmachine.Kind == nil { + break + } + + return e.complexity.Workmachine.Kind(childComplexity), true + + case "Workmachine.lastUpdatedBy": + if e.complexity.Workmachine.LastUpdatedBy == nil { + break + } + + return e.complexity.Workmachine.LastUpdatedBy(childComplexity), true + + case "Workmachine.markedForDeletion": + if e.complexity.Workmachine.MarkedForDeletion == nil { + break + } + + return e.complexity.Workmachine.MarkedForDeletion(childComplexity), true + + case "Workmachine.metadata": + if e.complexity.Workmachine.ObjectMeta == nil { + break + } + + return e.complexity.Workmachine.ObjectMeta(childComplexity), true + + case "Workmachine.recordVersion": + if e.complexity.Workmachine.RecordVersion == nil { + break + } + + return e.complexity.Workmachine.RecordVersion(childComplexity), true + + case "Workmachine.spec": + if e.complexity.Workmachine.Spec == nil { + break + } + + return e.complexity.Workmachine.Spec(childComplexity), true + + case "Workmachine.status": + if e.complexity.Workmachine.Status == nil { + break + } + + return e.complexity.Workmachine.Status(childComplexity), true + + case "Workmachine.syncStatus": + if e.complexity.Workmachine.SyncStatus == nil { + break + } + + return e.complexity.Workmachine.SyncStatus(childComplexity), true + + case "Workmachine.updateTime": + if e.complexity.Workmachine.UpdateTime == nil { + break + } + + return e.complexity.Workmachine.UpdateTime(childComplexity), true + + case "WorkmachineEdge.cursor": + if e.complexity.WorkmachineEdge.Cursor == nil { + break + } + + return e.complexity.WorkmachineEdge.Cursor(childComplexity), true + + case "WorkmachineEdge.node": + if e.complexity.WorkmachineEdge.Node == nil { + break + } + + return e.complexity.WorkmachineEdge.Node(childComplexity), true + + case "WorkmachinePaginatedRecords.edges": + if e.complexity.WorkmachinePaginatedRecords.Edges == nil { + break + } + + return e.complexity.WorkmachinePaginatedRecords.Edges(childComplexity), true + + case "WorkmachinePaginatedRecords.pageInfo": + if e.complexity.WorkmachinePaginatedRecords.PageInfo == nil { + break + } + + return e.complexity.WorkmachinePaginatedRecords.PageInfo(childComplexity), true + + case "WorkmachinePaginatedRecords.totalCount": + if e.complexity.WorkmachinePaginatedRecords.TotalCount == nil { + break + } + + return e.complexity.WorkmachinePaginatedRecords.TotalCount(childComplexity), true + + case "Workspace.apiVersion": + if e.complexity.Workspace.APIVersion == nil { + break + } + + return e.complexity.Workspace.APIVersion(childComplexity), true + + case "Workspace.accountName": + if e.complexity.Workspace.AccountName == nil { + break + } + + return e.complexity.Workspace.AccountName(childComplexity), true + + case "Workspace.clusterName": + if e.complexity.Workspace.ClusterName == nil { + break + } + + return e.complexity.Workspace.ClusterName(childComplexity), true + + case "Workspace.createdBy": + if e.complexity.Workspace.CreatedBy == nil { + break + } + + return e.complexity.Workspace.CreatedBy(childComplexity), true + + case "Workspace.creationTime": + if e.complexity.Workspace.CreationTime == nil { + break + } + + return e.complexity.Workspace.CreationTime(childComplexity), true + + case "Workspace.dispatchAddr": + if e.complexity.Workspace.DispatchAddr == nil { + break + } + + return e.complexity.Workspace.DispatchAddr(childComplexity), true + + case "Workspace.displayName": + if e.complexity.Workspace.DisplayName == nil { + break + } + + return e.complexity.Workspace.DisplayName(childComplexity), true + + case "Workspace.id": + if e.complexity.Workspace.ID == nil { + break + } + + return e.complexity.Workspace.ID(childComplexity), true + + case "Workspace.kind": + if e.complexity.Workspace.Kind == nil { + break + } + + return e.complexity.Workspace.Kind(childComplexity), true + + case "Workspace.lastUpdatedBy": + if e.complexity.Workspace.LastUpdatedBy == nil { + break + } + + return e.complexity.Workspace.LastUpdatedBy(childComplexity), true + + case "Workspace.markedForDeletion": + if e.complexity.Workspace.MarkedForDeletion == nil { + break + } + + return e.complexity.Workspace.MarkedForDeletion(childComplexity), true + + case "Workspace.metadata": + if e.complexity.Workspace.ObjectMeta == nil { + break + } + + return e.complexity.Workspace.ObjectMeta(childComplexity), true + + case "Workspace.recordVersion": + if e.complexity.Workspace.RecordVersion == nil { + break + } + + return e.complexity.Workspace.RecordVersion(childComplexity), true + + case "Workspace.spec": + if e.complexity.Workspace.Spec == nil { + break + } + + return e.complexity.Workspace.Spec(childComplexity), true + + case "Workspace.status": + if e.complexity.Workspace.Status == nil { + break + } + + return e.complexity.Workspace.Status(childComplexity), true + + case "Workspace.syncStatus": + if e.complexity.Workspace.SyncStatus == nil { + break + } + + return e.complexity.Workspace.SyncStatus(childComplexity), true + + case "Workspace.updateTime": + if e.complexity.Workspace.UpdateTime == nil { + break + } + + return e.complexity.Workspace.UpdateTime(childComplexity), true + + case "Workspace.workmachineName": + if e.complexity.Workspace.WorkmachineName == nil { + break + } + + return e.complexity.Workspace.WorkmachineName(childComplexity), true + + case "WorkspaceEdge.cursor": + if e.complexity.WorkspaceEdge.Cursor == nil { + break + } + + return e.complexity.WorkspaceEdge.Cursor(childComplexity), true + + case "WorkspaceEdge.node": + if e.complexity.WorkspaceEdge.Node == nil { + break + } + + return e.complexity.WorkspaceEdge.Node(childComplexity), true + + case "WorkspacePaginatedRecords.edges": + if e.complexity.WorkspacePaginatedRecords.Edges == nil { + break + } + + return e.complexity.WorkspacePaginatedRecords.Edges(childComplexity), true + + case "WorkspacePaginatedRecords.pageInfo": + if e.complexity.WorkspacePaginatedRecords.PageInfo == nil { + break + } + + return e.complexity.WorkspacePaginatedRecords.PageInfo(childComplexity), true + + case "WorkspacePaginatedRecords.totalCount": + if e.complexity.WorkspacePaginatedRecords.TotalCount == nil { + break + } + + return e.complexity.WorkspacePaginatedRecords.TotalCount(childComplexity), true + case "_Service.sdl": if e.complexity._Service.SDL == nil { break @@ -7268,6 +8087,15 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputGithub__com___kloudlite___operator___apis___clusters___v1__NodeSpecIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___common____types__MinMaxFloatIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___common____types__SecretRefIn, + ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__AWSMachineConfigIn, + ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParamsIn, + ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineSpecIn, + ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineStatusIn, + ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__WorkspaceSpecIn, + ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__CheckIn, + ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn, + ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn, + ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__StatusIn, ec.unmarshalInputGlobalVPNDeviceIn, ec.unmarshalInputGlobalVPNIn, ec.unmarshalInputK8s__io___api___core___v1__AWSElasticBlockStoreVolumeSourceIn, @@ -7306,6 +8134,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputK8s__io___api___core___v1__SecretReferenceIn, ec.unmarshalInputK8s__io___api___core___v1__StorageOSPersistentVolumeSourceIn, ec.unmarshalInputK8s__io___api___core___v1__TaintIn, + ec.unmarshalInputK8s__io___api___core___v1__TolerationIn, ec.unmarshalInputK8s__io___api___core___v1__TypedLocalObjectReferenceIn, ec.unmarshalInputK8s__io___api___core___v1__TypedObjectReferenceIn, ec.unmarshalInputK8s__io___api___core___v1__VolumeNodeAffinityIn, @@ -7334,7 +8163,11 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputSearchPersistentVolumes, ec.unmarshalInputSearchProviderSecret, ec.unmarshalInputSearchVolumeAttachments, + ec.unmarshalInputSearchWorkmachines, + ec.unmarshalInputSearchWorkspaces, ec.unmarshalInputVolumeAttachmentIn, + ec.unmarshalInputWorkmachineIn, + ec.unmarshalInputWorkspaceIn, ) first := true @@ -7505,6 +8338,14 @@ input SearchVolumeAttachments { text: MatchFilterIn } +input SearchWorkspaces { + text: MatchFilterIn +} + +input SearchWorkmachines { + text: MatchFilterIn +} + type CheckAwsAccessOutput { result: Boolean! installationUrl: String @@ -7563,6 +8404,13 @@ type Query { infra_listVolumeAttachments(clusterName: String!, search: SearchVolumeAttachments, pq: CursorPaginationIn): VolumeAttachmentPaginatedRecords @isLoggedInAndVerified @hasAccount infra_getVolumeAttachment(clusterName: String!, name: String!): VolumeAttachment @isLoggedInAndVerified @hasAccount + + # Workspaces + infra_listWorkspaces(workmachineName: String!, clusterName: String!,search: SearchWorkspaces, pagination: CursorPaginationIn): WorkspacePaginatedRecords @isLoggedInAndVerified @hasAccount + infra_getWorkspace(workmachineName: String!,clusterName: String!,name: String!): Workspace @isLoggedInAndVerified @hasAccount + + # Workmachine + infra_getWorkmachine(clusterName: String!, name: String!): Workmachine @isLoggedInAndVerified @hasAccount } type Mutation { @@ -7603,6 +8451,17 @@ type Mutation { # infra_deleteHelmRelease(clusterName: String!, releaseName: String!): Boolean! @isLoggedInAndVerified @hasAccount infra_deletePV(clusterName: String!, pvName: String!): Boolean! @isLoggedInAndVerified @hasAccount + + # Workspaces + infra_createWorkspace(workmachineName: String!, clusterName: String!, workspace: WorkspaceIn!): Workspace @isLoggedInAndVerified @hasAccount + infra_updateWorkspace(workmachineName: String!, clusterName: String!, workspace: WorkspaceIn!): Workspace @isLoggedInAndVerified @hasAccount + infra_deleteWorkspace(workmachineName: String!, clusterName: String!, name: String!): Boolean! @isLoggedInAndVerified @hasAccount + infra_updateWorkspaceStatus(workmachineName: String!, clusterName: String!, status: Boolean!, name: String!): Boolean! @isLoggedInAndVerified @hasAccount + + # Workmachine + infra_createWorkMachine(clusterName: String!, workmachine: WorkmachineIn!): Workmachine @isLoggedInAndVerified @hasAccount + infra_updateWorkMachine(clusterName: String!, workmachine: WorkmachineIn!): Workmachine @isLoggedInAndVerified @hasAccount + infra_updateWorkMachineStatus(clusterName: String!, status: Boolean!, name: String!): Boolean! @isLoggedInAndVerified @hasAccount } type EncodedValue { @@ -7883,6 +8742,7 @@ type Github__com___kloudlite___operator___apis___clusters___v1__AwsCredentials @ } type Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig @shareable { + ami: String! instanceType: String! nodes: Map } @@ -7897,6 +8757,7 @@ type Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNode @ } type Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig @shareable { + ami: String! cpuNode: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotCpuNode gpuNode: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNode nodes: Map @@ -8023,6 +8884,45 @@ type Github__com___kloudlite___operator___apis___common____types__SecretRef @sha namespace: String } +type Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig @shareable { + ami: String! + externalVolumeSize: Int! + externalVolumeType: String! + iamInstanceProfileRole: String + instanceType: String! + rootVolumeSize: Int! + rootVolumeType: String! +} + +type Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams @shareable { + nodeSelector: Map + tolerations: [K8s__io___api___core___v1__Toleration!] +} + +type Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec @shareable { + aws: Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig + jobParams: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams + sshPublicKeys: [String!]! + state: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineState! + targetNamespace: String +} + +type Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus @shareable { + machineSSHKey: String + status: Github__com___kloudlite___operator___toolkit___reconciler__Status +} + +type Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec @shareable { + enableCodeServer: Boolean + enableJupyterNotebook: Boolean + enableTTYD: Boolean + enableVSCodeServer: Boolean + imagePullPolicy: String + serviceAccountName: String + state: Github__com___kloudlite___operator___apis___crds___v1__WorkspaceState! + workMachine: String! +} + type Github__com___kloudlite___operator___pkg___operator__Check @shareable { debug: String error: String @@ -8399,6 +9299,14 @@ type K8s__io___api___core___v1__Taint @shareable { value: String } +type K8s__io___api___core___v1__Toleration @shareable { + effect: K8s__io___api___core___v1__TaintEffect + key: String + operator: K8s__io___api___core___v1__TolerationOperator + tolerationSeconds: Int + value: String +} + type K8s__io___api___core___v1__TypedLocalObjectReference @shareable { apiGroup: String kind: String! @@ -8531,6 +9439,7 @@ input Github__com___kloudlite___operator___apis___clusters___v1__AwsCredentialsI } input Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfigIn { + ami: String! instanceType: String! nodes: Map } @@ -8545,6 +9454,7 @@ input Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNodeI } input Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfigIn { + ami: String! cpuNode: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotCpuNodeIn gpuNode: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNodeIn nodes: Map @@ -8597,6 +9507,75 @@ input Github__com___kloudlite___operator___apis___common____types__SecretRefIn { namespace: String } +input Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfigIn { + ami: String! + externalVolumeSize: Int! + instanceType: String! +} + +input Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParamsIn { + nodeSelector: Map + tolerations: [K8s__io___api___core___v1__TolerationIn!] +} + +input Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpecIn { + aws: Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfigIn + jobParams: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParamsIn + sshPublicKeys: [String!]! + state: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineState! + targetNamespace: String +} + +input Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatusIn { + machineSSHKey: String + status: Github__com___kloudlite___operator___toolkit___reconciler__StatusIn +} + +input Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpecIn { + enableCodeServer: Boolean + enableJupyterNotebook: Boolean + enableTTYD: Boolean + enableVSCodeServer: Boolean + imagePullPolicy: String + serviceAccountName: String + state: Github__com___kloudlite___operator___apis___crds___v1__WorkspaceState! +} + +input Github__com___kloudlite___operator___toolkit___reconciler__CheckIn { + debug: String + error: String + generation: Int + info: String + message: String + startedAt: Date + state: Github__com___kloudlite___operator___toolkit___reconciler__State + status: Boolean! +} + +input Github__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn { + debug: Boolean + description: String + hide: Boolean + name: String! + title: String! +} + +input Github__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn { + apiVersion: String! + kind: String! + name: String! + namespace: String! +} + +input Github__com___kloudlite___operator___toolkit___reconciler__StatusIn { + checkList: [Github__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn!] + checks: Map + isReady: Boolean! + lastReadyGeneration: Int + lastReconcileTime: Date + resources: [Github__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn!] +} + input K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSourceIn { fsType: String partition: Int @@ -8898,6 +9877,14 @@ input K8s__io___api___core___v1__TaintIn { value: String } +input K8s__io___api___core___v1__TolerationIn { + 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__TypedLocalObjectReferenceIn { apiGroup: String kind: String! @@ -9024,6 +10011,17 @@ enum Github__com___kloudlite___operator___apis___common____types__CloudProvider azure digitalocean gcp + unknown +} + +enum Github__com___kloudlite___operator___apis___crds___v1__WorkMachineState { + OFF + ON +} + +enum Github__com___kloudlite___operator___apis___crds___v1__WorkspaceState { + OFF + ON } enum Github__com___kloudlite___operator___pkg___operator__State { @@ -9109,6 +10107,11 @@ enum K8s__io___api___core___v1__TaintEffect { PreferNoSchedule } +enum K8s__io___api___core___v1__TolerationOperator { + Equal + Exists +} + enum K8s__io___apimachinery___pkg___api___resource__Format { BinarySI DecimalExponent @@ -9354,7 +10357,7 @@ input NamespaceIn { metadata: Metadata @goField(name: "objectMeta") recordVersion: Int! spec: Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec! - status: Github__com___kloudlite___operator___pkg___operator__Status + status: Github__com___kloudlite___operator___toolkit___reconciler__Status syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! updateTime: Date! } @@ -9531,6 +10534,89 @@ input VolumeAttachmentIn { status: K8s__io___api___storage___v1__VolumeAttachmentStatusIn } +`, BuiltIn: false}, + {Name: "../struct-to-graphql/workmachine.graphqls", Input: `type Workmachine @shareable { + accountName: String! + apiVersion: String + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + dispatchAddr: Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata @goField(name: "objectMeta") + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec + status: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type WorkmachineEdge @shareable { + cursor: String! + node: Workmachine! +} + +type WorkmachinePaginatedRecords @shareable { + edges: [WorkmachineEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +input WorkmachineIn { + apiVersion: String + displayName: String! + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpecIn + status: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatusIn +} + +`, BuiltIn: false}, + {Name: "../struct-to-graphql/workspace.graphqls", Input: `type Workspace @shareable { + accountName: String! + apiVersion: String + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + dispatchAddr: Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata @goField(name: "objectMeta") + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec + status: Github__com___kloudlite___operator___toolkit___reconciler__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! + workmachineName: String! +} + +type WorkspaceEdge @shareable { + cursor: String! + node: Workspace! +} + +type WorkspacePaginatedRecords @shareable { + edges: [WorkspaceEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +input WorkspaceIn { + apiVersion: String + displayName: String! + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpecIn + status: Github__com___kloudlite___operator___toolkit___reconciler__StatusIn +} + `, BuiltIn: false}, {Name: "../../federation/directives.graphql", Input: ` directive @authenticated on FIELD_DEFINITION | OBJECT | INTERFACE | SCALAR | ENUM @@ -9850,6 +10936,151 @@ func (ec *executionContext) field_Mutation_infra_createProviderSecret_argsSecret return zeroVal, nil } +func (ec *executionContext) field_Mutation_infra_createWorkMachine_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_infra_createWorkMachine_argsClusterName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["clusterName"] = arg0 + arg1, err := ec.field_Mutation_infra_createWorkMachine_argsWorkmachine(ctx, rawArgs) + if err != nil { + return nil, err + } + args["workmachine"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_infra_createWorkMachine_argsClusterName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["clusterName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + if tmp, ok := rawArgs["clusterName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_createWorkMachine_argsWorkmachine( + ctx context.Context, + rawArgs map[string]interface{}, +) (entities.Workmachine, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["workmachine"] + if !ok { + var zeroVal entities.Workmachine + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("workmachine")) + if tmp, ok := rawArgs["workmachine"]; ok { + return ec.unmarshalNWorkmachineIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkmachine(ctx, tmp) + } + + var zeroVal entities.Workmachine + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_createWorkspace_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_infra_createWorkspace_argsWorkmachineName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["workmachineName"] = arg0 + arg1, err := ec.field_Mutation_infra_createWorkspace_argsClusterName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["clusterName"] = arg1 + arg2, err := ec.field_Mutation_infra_createWorkspace_argsWorkspace(ctx, rawArgs) + if err != nil { + return nil, err + } + args["workspace"] = arg2 + return args, nil +} +func (ec *executionContext) field_Mutation_infra_createWorkspace_argsWorkmachineName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["workmachineName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("workmachineName")) + if tmp, ok := rawArgs["workmachineName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_createWorkspace_argsClusterName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["clusterName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + if tmp, ok := rawArgs["clusterName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_createWorkspace_argsWorkspace( + ctx context.Context, + rawArgs map[string]interface{}, +) (entities.Workspace, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["workspace"] + if !ok { + var zeroVal entities.Workspace + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("workspace")) + if tmp, ok := rawArgs["workspace"]; ok { + return ec.unmarshalNWorkspaceIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkspace(ctx, tmp) + } + + var zeroVal entities.Workspace + return zeroVal, nil +} + func (ec *executionContext) field_Mutation_infra_deleteBYOKCluster_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -10187,6 +11418,92 @@ func (ec *executionContext) field_Mutation_infra_deleteProviderSecret_argsSecret return zeroVal, nil } +func (ec *executionContext) field_Mutation_infra_deleteWorkspace_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_infra_deleteWorkspace_argsWorkmachineName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["workmachineName"] = arg0 + arg1, err := ec.field_Mutation_infra_deleteWorkspace_argsClusterName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["clusterName"] = arg1 + arg2, err := ec.field_Mutation_infra_deleteWorkspace_argsName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["name"] = arg2 + return args, nil +} +func (ec *executionContext) field_Mutation_infra_deleteWorkspace_argsWorkmachineName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["workmachineName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("workmachineName")) + if tmp, ok := rawArgs["workmachineName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_deleteWorkspace_argsClusterName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["clusterName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + if tmp, ok := rawArgs["clusterName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_deleteWorkspace_argsName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["name"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + if tmp, ok := rawArgs["name"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + func (ec *executionContext) field_Mutation_infra_updateBYOKCluster_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -10465,6 +11782,350 @@ func (ec *executionContext) field_Mutation_infra_updateProviderSecret_argsSecret return zeroVal, nil } +func (ec *executionContext) field_Mutation_infra_updateWorkMachineStatus_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_infra_updateWorkMachineStatus_argsClusterName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["clusterName"] = arg0 + arg1, err := ec.field_Mutation_infra_updateWorkMachineStatus_argsStatus(ctx, rawArgs) + if err != nil { + return nil, err + } + args["status"] = arg1 + arg2, err := ec.field_Mutation_infra_updateWorkMachineStatus_argsName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["name"] = arg2 + return args, nil +} +func (ec *executionContext) field_Mutation_infra_updateWorkMachineStatus_argsClusterName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["clusterName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + if tmp, ok := rawArgs["clusterName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_updateWorkMachineStatus_argsStatus( + ctx context.Context, + rawArgs map[string]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["status"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + if tmp, ok := rawArgs["status"]; ok { + return ec.unmarshalNBoolean2bool(ctx, tmp) + } + + var zeroVal bool + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_updateWorkMachineStatus_argsName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["name"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + if tmp, ok := rawArgs["name"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_updateWorkMachine_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_infra_updateWorkMachine_argsClusterName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["clusterName"] = arg0 + arg1, err := ec.field_Mutation_infra_updateWorkMachine_argsWorkmachine(ctx, rawArgs) + if err != nil { + return nil, err + } + args["workmachine"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_infra_updateWorkMachine_argsClusterName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["clusterName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + if tmp, ok := rawArgs["clusterName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_updateWorkMachine_argsWorkmachine( + ctx context.Context, + rawArgs map[string]interface{}, +) (entities.Workmachine, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["workmachine"] + if !ok { + var zeroVal entities.Workmachine + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("workmachine")) + if tmp, ok := rawArgs["workmachine"]; ok { + return ec.unmarshalNWorkmachineIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkmachine(ctx, tmp) + } + + var zeroVal entities.Workmachine + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_updateWorkspaceStatus_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_infra_updateWorkspaceStatus_argsWorkmachineName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["workmachineName"] = arg0 + arg1, err := ec.field_Mutation_infra_updateWorkspaceStatus_argsClusterName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["clusterName"] = arg1 + arg2, err := ec.field_Mutation_infra_updateWorkspaceStatus_argsStatus(ctx, rawArgs) + if err != nil { + return nil, err + } + args["status"] = arg2 + arg3, err := ec.field_Mutation_infra_updateWorkspaceStatus_argsName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["name"] = arg3 + return args, nil +} +func (ec *executionContext) field_Mutation_infra_updateWorkspaceStatus_argsWorkmachineName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["workmachineName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("workmachineName")) + if tmp, ok := rawArgs["workmachineName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_updateWorkspaceStatus_argsClusterName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["clusterName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + if tmp, ok := rawArgs["clusterName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_updateWorkspaceStatus_argsStatus( + ctx context.Context, + rawArgs map[string]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["status"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + if tmp, ok := rawArgs["status"]; ok { + return ec.unmarshalNBoolean2bool(ctx, tmp) + } + + var zeroVal bool + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_updateWorkspaceStatus_argsName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["name"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + if tmp, ok := rawArgs["name"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_updateWorkspace_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_infra_updateWorkspace_argsWorkmachineName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["workmachineName"] = arg0 + arg1, err := ec.field_Mutation_infra_updateWorkspace_argsClusterName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["clusterName"] = arg1 + arg2, err := ec.field_Mutation_infra_updateWorkspace_argsWorkspace(ctx, rawArgs) + if err != nil { + return nil, err + } + args["workspace"] = arg2 + return args, nil +} +func (ec *executionContext) field_Mutation_infra_updateWorkspace_argsWorkmachineName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["workmachineName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("workmachineName")) + if tmp, ok := rawArgs["workmachineName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_updateWorkspace_argsClusterName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["clusterName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + if tmp, ok := rawArgs["clusterName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_infra_updateWorkspace_argsWorkspace( + ctx context.Context, + rawArgs map[string]interface{}, +) (entities.Workspace, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["workspace"] + if !ok { + var zeroVal entities.Workspace + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("workspace")) + if tmp, ok := rawArgs["workspace"]; ok { + return ec.unmarshalNWorkspaceIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkspace(ctx, tmp) + } + + var zeroVal entities.Workspace + return zeroVal, nil +} + func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -11188,6 +12849,151 @@ func (ec *executionContext) field_Query_infra_getVolumeAttachment_argsName( return zeroVal, nil } +func (ec *executionContext) field_Query_infra_getWorkmachine_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_infra_getWorkmachine_argsClusterName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["clusterName"] = arg0 + arg1, err := ec.field_Query_infra_getWorkmachine_argsName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["name"] = arg1 + return args, nil +} +func (ec *executionContext) field_Query_infra_getWorkmachine_argsClusterName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["clusterName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + if tmp, ok := rawArgs["clusterName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_infra_getWorkmachine_argsName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["name"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + if tmp, ok := rawArgs["name"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_infra_getWorkspace_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_infra_getWorkspace_argsWorkmachineName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["workmachineName"] = arg0 + arg1, err := ec.field_Query_infra_getWorkspace_argsClusterName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["clusterName"] = arg1 + arg2, err := ec.field_Query_infra_getWorkspace_argsName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["name"] = arg2 + return args, nil +} +func (ec *executionContext) field_Query_infra_getWorkspace_argsWorkmachineName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["workmachineName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("workmachineName")) + if tmp, ok := rawArgs["workmachineName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_infra_getWorkspace_argsClusterName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["clusterName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + if tmp, ok := rawArgs["clusterName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_infra_getWorkspace_argsName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["name"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + if tmp, ok := rawArgs["name"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + func (ec *executionContext) field_Query_infra_listBYOKClusters_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -11999,6 +13805,119 @@ func (ec *executionContext) field_Query_infra_listVolumeAttachments_argsPq( return zeroVal, nil } +func (ec *executionContext) field_Query_infra_listWorkspaces_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_infra_listWorkspaces_argsWorkmachineName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["workmachineName"] = arg0 + arg1, err := ec.field_Query_infra_listWorkspaces_argsClusterName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["clusterName"] = arg1 + arg2, err := ec.field_Query_infra_listWorkspaces_argsSearch(ctx, rawArgs) + if err != nil { + return nil, err + } + args["search"] = arg2 + arg3, err := ec.field_Query_infra_listWorkspaces_argsPagination(ctx, rawArgs) + if err != nil { + return nil, err + } + args["pagination"] = arg3 + return args, nil +} +func (ec *executionContext) field_Query_infra_listWorkspaces_argsWorkmachineName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["workmachineName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("workmachineName")) + if tmp, ok := rawArgs["workmachineName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_infra_listWorkspaces_argsClusterName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["clusterName"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + if tmp, ok := rawArgs["clusterName"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_infra_listWorkspaces_argsSearch( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.SearchWorkspaces, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["search"] + if !ok { + var zeroVal *model.SearchWorkspaces + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) + if tmp, ok := rawArgs["search"]; ok { + return ec.unmarshalOSearchWorkspaces2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐSearchWorkspaces(ctx, tmp) + } + + var zeroVal *model.SearchWorkspaces + return zeroVal, nil +} + +func (ec *executionContext) field_Query_infra_listWorkspaces_argsPagination( + ctx context.Context, + rawArgs map[string]interface{}, +) (*repos.CursorPagination, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["pagination"] + if !ok { + var zeroVal *repos.CursorPagination + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("pagination")) + if tmp, ok := rawArgs["pagination"]; ok { + return ec.unmarshalOCursorPaginationIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐCursorPagination(ctx, tmp) + } + + var zeroVal *repos.CursorPagination + return zeroVal, nil +} + func (ec *executionContext) field_Query_infrat_getBYOKClusterSetupInstructions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -19908,6 +21827,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "ami": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig_ami(ctx, field) case "instanceType": return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig_instanceType(ctx, field) case "nodes": @@ -20216,6 +22137,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "ami": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig_ami(ctx, field) case "cpuNode": return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig_cpuNode(ctx, field) case "gpuNode": @@ -20413,6 +22336,50 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } +func (ec *executionContext) _Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig_ami(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisClustersV1AWSEC2PoolConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig_ami(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Ami, 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_Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig_ami(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig", + 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) _Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig_instanceType(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisClustersV1AWSEC2PoolConfig) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig_instanceType(ctx, field) if err != nil { @@ -20639,6 +22606,50 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } +func (ec *executionContext) _Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig_ami(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisClustersV1AWSSpotPoolConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig_ami(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Ami, 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_Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig_ami(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig", + 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) _Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig_cpuNode(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisClustersV1AWSSpotPoolConfig) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig_cpuNode(ctx, field) if err != nil { @@ -24074,8 +26085,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_debug(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_debug(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_ami(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_ami(ctx, field) if err != nil { return graphql.Null } @@ -24088,23 +26099,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.Ami, 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_Github__com___kloudlite___operator___pkg___operator__Check_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_ami(_ 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___apis___crds___v1__AWSMachineConfig", Field: field, IsMethod: false, IsResolver: false, @@ -24115,8 +26129,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_error(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_error(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_externalVolumeSize(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_externalVolumeSize(ctx, field) if err != nil { return graphql.Null } @@ -24129,35 +26143,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.Error, nil + return obj.ExternalVolumeSize, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_externalVolumeSize(_ 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___apis___crds___v1__AWSMachineConfig", 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_generation(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_generation(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_externalVolumeType(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_externalVolumeType(ctx, field) if err != nil { return graphql.Null } @@ -24170,35 +26187,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.ExternalVolumeType, 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.marshalOInt2int64(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_generation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_externalVolumeType(_ 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___apis___crds___v1__AWSMachineConfig", 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_info(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_info(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_iamInstanceProfileRole(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_iamInstanceProfileRole(ctx, field) if err != nil { return graphql.Null } @@ -24211,7 +26231,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.IamInstanceProfileRole, nil }) if err != nil { ec.Error(ctx, err) @@ -24220,14 +26240,14 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_info(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_iamInstanceProfileRole(_ 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___apis___crds___v1__AWSMachineConfig", Field: field, IsMethod: false, IsResolver: false, @@ -24238,8 +26258,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_message(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_message(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_instanceType(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_instanceType(ctx, field) if err != nil { return graphql.Null } @@ -24252,23 +26272,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.Message, nil + return obj.InstanceType, 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_Github__com___kloudlite___operator___pkg___operator__Check_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_instanceType(_ 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___apis___crds___v1__AWSMachineConfig", Field: field, IsMethod: false, IsResolver: false, @@ -24279,8 +26302,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_startedAt(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_startedAt(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_rootVolumeSize(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_rootVolumeSize(ctx, field) if err != nil { return graphql.Null } @@ -24293,76 +26316,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 ec.resolvers.Github__com___kloudlite___operator___pkg___operator__Check().StartedAt(rctx, obj) + return obj.RootVolumeSize, 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.marshalODate2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_startedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Check", - 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) _Github__com___kloudlite___operator___pkg___operator__Check_state(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_state(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - 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___operator___pkg___operator__Check().State(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) return graphql.Null } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.GithubComKloudliteOperatorPkgOperatorState) + res := resTmp.(int) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__State2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorState(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_rootVolumeSize(_ 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___apis___crds___v1__AWSMachineConfig", 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___operator___pkg___operator__State 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_status(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_status(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_rootVolumeType(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_rootVolumeType(ctx, field) if err != nil { return graphql.Null } @@ -24375,7 +26360,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.Status, nil + return obj.RootVolumeType, nil }) if err != nil { ec.Error(ctx, err) @@ -24387,26 +26372,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__Check_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_rootVolumeType(_ 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___apis___crds___v1__AWSMachineConfig", 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__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) _Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams_nodeSelector(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineJobParams) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams_nodeSelector(ctx, field) if err != nil { return graphql.Null } @@ -24419,7 +26404,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.NodeSelector, nil }) if err != nil { ec.Error(ctx, err) @@ -24428,26 +26413,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams_nodeSelector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams", 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 Map does not have child fields") }, } 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) _Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams_tolerations(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineJobParams) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams_tolerations(ctx, field) if err != nil { return graphql.Null } @@ -24460,7 +26445,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.Description, nil + return obj.Tolerations, nil }) if err != nil { ec.Error(ctx, err) @@ -24469,26 +26454,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.K8sIoAPICoreV1Toleration) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__Toleration2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1Tolerationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams_tolerations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams", 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 "effect": + return ec.fieldContext_K8s__io___api___core___v1__Toleration_effect(ctx, field) + case "key": + return ec.fieldContext_K8s__io___api___core___v1__Toleration_key(ctx, field) + case "operator": + return ec.fieldContext_K8s__io___api___core___v1__Toleration_operator(ctx, field) + case "tolerationSeconds": + return ec.fieldContext_K8s__io___api___core___v1__Toleration_tolerationSeconds(ctx, field) + case "value": + return ec.fieldContext_K8s__io___api___core___v1__Toleration_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__Toleration", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_aws(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_aws(ctx, field) if err != nil { return graphql.Null } @@ -24501,7 +26498,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.Hide, nil + return obj.AWS, nil }) if err != nil { ec.Error(ctx, err) @@ -24510,26 +26507,42 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfig) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1AWSMachineConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_aws(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec", 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") + switch field.Name { + case "ami": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_ami(ctx, field) + case "externalVolumeSize": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_externalVolumeSize(ctx, field) + case "externalVolumeType": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_externalVolumeType(ctx, field) + case "iamInstanceProfileRole": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_iamInstanceProfileRole(ctx, field) + case "instanceType": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_instanceType(ctx, field) + case "rootVolumeSize": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_rootVolumeSize(ctx, field) + case "rootVolumeType": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_rootVolumeType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig", field.Name) }, } 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) _Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_jobParams(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_jobParams(ctx, field) if err != nil { return graphql.Null } @@ -24542,38 +26555,41 @@ 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.JobParams, 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.GithubComKloudliteOperatorApisCrdsV1WorkMachineJobParams) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineJobParams(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_jobParams(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec", 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 "nodeSelector": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams_nodeSelector(ctx, field) + case "tolerations": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams_tolerations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams", field.Name) }, } 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) _Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_sshPublicKeys(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_sshPublicKeys(ctx, field) if err != nil { return graphql.Null } @@ -24586,7 +26602,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.SSHPublicKeys, nil }) if err != nil { ec.Error(ctx, err) @@ -24598,14 +26614,14 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator } 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_Github__com___kloudlite___operator___pkg___operator__CheckMeta_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_sshPublicKeys(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec", Field: field, IsMethod: false, IsResolver: false, @@ -24616,8 +26632,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx context.Context, field graphql.CollectedField, obj *operator.ResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_state(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_state(ctx, field) if err != nil { return graphql.Null } @@ -24630,7 +26646,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.State, nil }) if err != nil { ec.Error(ctx, err) @@ -24642,26 +26658,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator } return graphql.Null } - res := resTmp.(string) + res := resTmp.(model.GithubComKloudliteOperatorApisCrdsV1WorkMachineState) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineState2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineState(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec", 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___apis___crds___v1__WorkMachineState 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 *operator.ResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_targetNamespace(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_targetNamespace(ctx, field) if err != nil { return graphql.Null } @@ -24674,26 +26690,23 @@ 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.TargetNamespace, 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___operator___pkg___operator__ResourceRef_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_targetNamespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec", Field: field, IsMethod: false, IsResolver: false, @@ -24704,8 +26717,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 *operator.ResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus_machineSSHKey(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus_machineSSHKey(ctx, field) if err != nil { return graphql.Null } @@ -24718,26 +26731,23 @@ 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.MachineSSHKey, 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___operator___pkg___operator__ResourceRef_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus_machineSSHKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus", Field: field, IsMethod: false, IsResolver: false, @@ -24748,8 +26758,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx context.Context, field graphql.CollectedField, obj *operator.ResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus_status(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus_status(ctx, field) if err != nil { return graphql.Null } @@ -24762,38 +26772,49 @@ 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.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.(string) + res := resTmp.(*reconciler.Status) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__Status2ᚖgithubᚗcomᚋkloudliteᚋoperatorᚋtoolkitᚋreconcilerᚐStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus", 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 "checkList": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(ctx, field) + case "checks": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(ctx, field) + case "isReady": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx, field) + case "lastReadyGeneration": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx, field) + case "lastReconcileTime": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx, field) + case "resources": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___reconciler__Status", field.Name) }, } 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) _Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableCodeServer(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableCodeServer(ctx, field) if err != nil { return graphql.Null } @@ -24806,7 +26827,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.CheckList, nil + return obj.EnableCodeServer, nil }) if err != nil { ec.Error(ctx, err) @@ -24815,38 +26836,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.GithubComKloudliteOperatorPkgOperatorCheckMeta) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorCheckMetaᚄ(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checkList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableCodeServer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec", 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 "hide": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(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 Boolean 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) _Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableJupyterNotebook(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableJupyterNotebook(ctx, field) if err != nil { return graphql.Null } @@ -24859,7 +26868,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.Checks, nil + return obj.EnableJupyterNotebook, nil }) if err != nil { ec.Error(ctx, err) @@ -24868,26 +26877,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableJupyterNotebook(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec", 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 Boolean 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) _Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableTTYD(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableTTYD(ctx, field) if err != nil { return graphql.Null } @@ -24900,26 +26909,23 @@ 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.EnableTtyd, 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.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_isReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableTTYD(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec", Field: field, IsMethod: false, IsResolver: false, @@ -24930,8 +26936,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk 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) _Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableVSCodeServer(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableVSCodeServer(ctx, field) if err != nil { return graphql.Null } @@ -24944,7 +26950,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.LastReadyGeneration, nil + return obj.EnableVSCodeServer, nil }) if err != nil { ec.Error(ctx, err) @@ -24953,26 +26959,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator 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___operator___pkg___operator__Status_lastReadyGeneration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableVSCodeServer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec", 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) _Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_imagePullPolicy(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_imagePullPolicy(ctx, field) if err != nil { return graphql.Null } @@ -24985,7 +26991,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.LastReconcileTime, nil + return obj.ImagePullPolicy, nil }) if err != nil { ec.Error(ctx, err) @@ -24996,24 +27002,24 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator } res := resTmp.(*string) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReconcileTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_imagePullPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec", 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) _Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_serviceAccountName(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_serviceAccountName(ctx, field) if err != nil { return graphql.Null } @@ -25026,7 +27032,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.ServiceAccountName, nil }) if err != nil { ec.Error(ctx, err) @@ -25035,30 +27041,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ᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgRawJSONRawJSON(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_serviceAccountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec", Field: field, IsMethod: false, IsResolver: false, 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 String 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) _Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_state(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_state(ctx, field) if err != nil { return graphql.Null } @@ -25071,45 +27073,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.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.([]*operator.ResourceRef) + res := resTmp.(model.GithubComKloudliteOperatorApisCrdsV1WorkspaceState) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__ResourceRef2ᚕᚖgithubᚗcomᚋkloudliteᚋoperatorᚋpkgᚋoperatorᚐResourceRefᚄ(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___operator___apis___crds___v1__WorkspaceState2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkspaceState(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec", 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 Github__com___kloudlite___operator___apis___crds___v1__WorkspaceState 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) _Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_workMachine(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_workMachine(ctx, field) if err != nil { return graphql.Null } @@ -25122,35 +27117,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.WorkMachine, 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.(any) + 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(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_workMachine(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___raw____json__RawJson", + Object: "Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec", 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) _Github__com___kloudlite___operator___toolkit___reconciler__Check_debug(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_debug(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_debug(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_debug(ctx, field) if err != nil { return graphql.Null } @@ -25172,14 +27170,14 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco 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.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, @@ -25190,8 +27188,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_error(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_error(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_error(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_error(ctx, field) if err != nil { return graphql.Null } @@ -25213,14 +27211,14 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco 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.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, @@ -25231,8 +27229,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_generation(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_generation(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_generation(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_generation(ctx, field) if err != nil { return graphql.Null } @@ -25254,14 +27252,14 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco if resTmp == nil { return graphql.Null } - res := resTmp.(*int) + res := resTmp.(int64) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalOInt2int64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_generation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_generation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, @@ -25272,8 +27270,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_info(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_info(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_info(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_info(ctx, field) if err != nil { return graphql.Null } @@ -25295,14 +27293,14 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco 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.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_info(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_info(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, @@ -25313,8 +27311,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_message(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_message(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_message(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_message(ctx, field) if err != nil { return graphql.Null } @@ -25336,14 +27334,14 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco 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.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, @@ -25354,8 +27352,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_startedAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_startedAt(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_startedAt(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_startedAt(ctx, field) if err != nil { return graphql.Null } @@ -25368,7 +27366,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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 ec.resolvers.Github__com___kloudlite___operator___pkg___operator__Check().StartedAt(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -25382,12 +27380,12 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_startedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_startedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", 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 Date does not have child fields") }, @@ -25395,8 +27393,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_state(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_state(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_state(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_state(ctx, field) if err != nil { return graphql.Null } @@ -25409,7 +27407,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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 ec.resolvers.Github__com___kloudlite___operator___pkg___operator__Check().State(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -25418,26 +27416,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorToolkitReconcilerState) + res := resTmp.(*model.GithubComKloudliteOperatorPkgOperatorState) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__State2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerState(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__State2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorState(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", 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 Github__com___kloudlite___operator___toolkit___reconciler__State 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___toolkit___reconciler__Check_status(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_status(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_status(ctx context.Context, field graphql.CollectedField, obj *operator.Check) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_status(ctx, field) if err != nil { return graphql.Null } @@ -25467,9 +27465,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, @@ -25480,8 +27478,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(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 } @@ -25508,9 +27506,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", + Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -25521,8 +27519,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(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 } @@ -25549,9 +27547,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", + Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -25562,8 +27560,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(ctx, field) if err != nil { return graphql.Null } @@ -25590,9 +27588,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", + Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -25603,8 +27601,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(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 } @@ -25634,9 +27632,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", + Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -25647,8 +27645,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(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 } @@ -25678,9 +27676,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", + Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -25691,8 +27689,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx context.Context, field graphql.CollectedField, obj *operator.ResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -25722,9 +27720,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", + Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", Field: field, IsMethod: false, IsResolver: false, @@ -25735,8 +27733,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(ctx context.Context, field graphql.CollectedField, obj *operator.ResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(ctx, field) if err != nil { return graphql.Null } @@ -25766,9 +27764,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", + Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", Field: field, IsMethod: false, IsResolver: false, @@ -25779,8 +27777,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(ctx context.Context, field graphql.CollectedField, obj *operator.ResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(ctx, field) if err != nil { return graphql.Null } @@ -25810,9 +27808,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", + Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", Field: field, IsMethod: false, IsResolver: false, @@ -25823,8 +27821,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx context.Context, field graphql.CollectedField, obj *operator.ResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx, field) if err != nil { return graphql.Null } @@ -25854,9 +27852,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", + Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", Field: field, IsMethod: false, IsResolver: false, @@ -25867,8 +27865,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(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 } @@ -25881,7 +27879,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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___operator___toolkit___reconciler__Status().CheckList(rctx, obj) + return obj.CheckList, nil }) if err != nil { ec.Error(ctx, err) @@ -25890,38 +27888,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) + res := resTmp.([]*model.GithubComKloudliteOperatorPkgOperatorCheckMeta) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerCheckMetaᚄ(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorCheckMetaᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checkList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", 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 "debug": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(ctx, field) case "description": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(ctx, field) case "hide": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_hide(ctx, field) case "name": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(ctx, field) + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(ctx, field) case "title": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(ctx, field) + 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___toolkit___reconciler__CheckMeta", field.Name) + 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___toolkit___reconciler__Status_checks(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(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 } @@ -25934,7 +27932,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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___operator___toolkit___reconciler__Status().Checks(rctx, obj) + return obj.Checks, nil }) if err != nil { ec.Error(ctx, err) @@ -25948,12 +27946,12 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", 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 Map does not have child fields") }, @@ -25961,8 +27959,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(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 } @@ -25992,9 +27990,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_isReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", Field: field, IsMethod: false, IsResolver: false, @@ -26005,8 +28003,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(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 } @@ -26028,14 +28026,14 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco if resTmp == nil { return graphql.Null } - res := resTmp.(int64) + res := resTmp.(*int) fc.Result = res - return ec.marshalOInt2int64(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReadyGeneration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", Field: field, IsMethod: false, IsResolver: false, @@ -26046,8 +28044,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(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 } @@ -26060,7 +28058,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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___operator___toolkit___reconciler__Status().LastReconcileTime(rctx, obj) + return obj.LastReconcileTime, nil }) if err != nil { ec.Error(ctx, err) @@ -26074,12 +28072,12 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReconcileTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", 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") }, @@ -26087,8 +28085,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___to return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(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 } @@ -26101,7 +28099,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco }() 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___operator___toolkit___reconciler__Status().Resources(rctx, obj) + return obj.Message, nil }) if err != nil { ec.Error(ctx, err) @@ -26110,36 +28108,30 @@ func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reco if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) + res := resTmp.(*model.GithubComKloudliteOperatorPkgRawJSONRawJSON) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRef2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRefᚄ(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___pkg___raw____json__RawJson2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgRawJSONRawJSON(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", 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 "apiVersion": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(ctx, field) - case "kind": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(ctx, field) - case "name": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(ctx, field) - case "namespace": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(ctx, field) + 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___toolkit___reconciler__ResourceRef", field.Name) + 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) _GlobalVPN_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_accountName(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 } @@ -26152,38 +28144,45 @@ func (ec *executionContext) _GlobalVPN_accountName(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.AccountName, nil + return obj.Resources, 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.([]*operator.ResourceRef) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__ResourceRef2ᚕᚖgithubᚗcomᚋkloudliteᚋoperatorᚋpkgᚋoperatorᚐResourceRefᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + 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 "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) _GlobalVPN_allocatableCIDRSuffix(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_allocatableCIDRSuffix(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 } @@ -26196,38 +28195,35 @@ func (ec *executionContext) _GlobalVPN_allocatableCIDRSuffix(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.AllocatableCIDRSuffix, 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.(int) + res := resTmp.(any) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOAny2interface(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_allocatableCIDRSuffix(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___raw____json__RawJson_RawMessage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + 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 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) _GlobalVPN_CIDR(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_CIDR(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_debug(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_debug(ctx, field) if err != nil { return graphql.Null } @@ -26240,26 +28236,23 @@ func (ec *executionContext) _GlobalVPN_CIDR(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.CIDR, nil + return obj.Debug, 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_GlobalVPN_CIDR(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", Field: field, IsMethod: false, IsResolver: false, @@ -26270,8 +28263,8 @@ func (ec *executionContext) fieldContext_GlobalVPN_CIDR(_ context.Context, field return fc, nil } -func (ec *executionContext) _GlobalVPN_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_createdBy(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_error(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_error(ctx, field) if err != nil { return graphql.Null } @@ -26284,46 +28277,35 @@ func (ec *executionContext) _GlobalVPN_createdBy(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.CreatedBy, nil + return obj.Error, 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.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", 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) _GlobalVPN_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_creationTime(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_generation(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_generation(ctx, field) if err != nil { return graphql.Null } @@ -26336,38 +28318,35 @@ func (ec *executionContext) _GlobalVPN_creationTime(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 ec.resolvers.GlobalVPN().CreationTime(rctx, obj) + 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.(string) + res := resTmp.(*int) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_generation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", 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) _GlobalVPN_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_displayName(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_info(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_info(ctx, field) if err != nil { return graphql.Null } @@ -26380,26 +28359,23 @@ func (ec *executionContext) _GlobalVPN_displayName(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.DisplayName, nil + return obj.Info, 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_GlobalVPN_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_info(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", Field: field, IsMethod: false, IsResolver: false, @@ -26410,8 +28386,8 @@ func (ec *executionContext) fieldContext_GlobalVPN_displayName(_ context.Context return fc, nil } -func (ec *executionContext) _GlobalVPN_id(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_id(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_message(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_message(ctx, field) if err != nil { return graphql.Null } @@ -26424,38 +28400,35 @@ func (ec *executionContext) _GlobalVPN_id(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 ec.resolvers.GlobalVPN().ID(rctx, obj) + return obj.Message, 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.(*string) fc.Result = res - return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", 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 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) _GlobalVPN_kloudliteClusterLocalDevice(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_kloudliteClusterLocalDevice(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_startedAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_startedAt(ctx, field) if err != nil { return graphql.Null } @@ -26468,44 +28441,35 @@ func (ec *executionContext) _GlobalVPN_kloudliteClusterLocalDevice(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.GlobalVPN().KloudliteClusterLocalDevice(rctx, obj) + return obj.StartedAt, 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.GlobalVPNKloudliteClusterLocalDevice) + res := resTmp.(*string) fc.Result = res - return ec.marshalNGlobalVPNKloudliteClusterLocalDevice2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGlobalVPNKloudliteClusterLocalDevice(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_kloudliteClusterLocalDevice(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_startedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", 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 "ipAddr": - return ec.fieldContext_GlobalVPNKloudliteClusterLocalDevice_ipAddr(ctx, field) - case "name": - return ec.fieldContext_GlobalVPNKloudliteClusterLocalDevice_name(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPNKloudliteClusterLocalDevice", field.Name) + return nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPN_kloudliteGatewayDevice(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_kloudliteGatewayDevice(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_state(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_state(ctx, field) if err != nil { return graphql.Null } @@ -26518,44 +28482,35 @@ func (ec *executionContext) _GlobalVPN_kloudliteGatewayDevice(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.GlobalVPN().KloudliteGatewayDevice(rctx, obj) + 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.(*model.GlobalVPNKloudliteGatewayDevice) + res := resTmp.(*model.GithubComKloudliteOperatorToolkitReconcilerState) fc.Result = res - return ec.marshalNGlobalVPNKloudliteGatewayDevice2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGlobalVPNKloudliteGatewayDevice(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__State2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerState(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_kloudliteGatewayDevice(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", 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 "ipAddr": - return ec.fieldContext_GlobalVPNKloudliteGatewayDevice_ipAddr(ctx, field) - case "name": - return ec.fieldContext_GlobalVPNKloudliteGatewayDevice_name(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPNKloudliteGatewayDevice", field.Name) + return nil, errors.New("field of type Github__com___kloudlite___operator___toolkit___reconciler__State does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPN_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_lastUpdatedBy(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Check_status(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_status(ctx, field) if err != nil { return graphql.Null } @@ -26568,7 +28523,7 @@ func (ec *executionContext) _GlobalVPN_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 obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -26580,34 +28535,26 @@ func (ec *executionContext) _GlobalVPN_lastUpdatedBy(ctx context.Context, field } return graphql.Null } - res := resTmp.(common.CreatedOrUpdatedBy) + res := resTmp.(bool) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Check_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Check", 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 Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPN_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_markedForDeletion(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(ctx, field) if err != nil { return graphql.Null } @@ -26620,7 +28567,7 @@ func (ec *executionContext) _GlobalVPN_markedForDeletion(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.MarkedForDeletion, nil + return obj.Debug, nil }) if err != nil { ec.Error(ctx, err) @@ -26634,9 +28581,9 @@ func (ec *executionContext) _GlobalVPN_markedForDeletion(ctx context.Context, fi return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", Field: field, IsMethod: false, IsResolver: false, @@ -26647,8 +28594,8 @@ func (ec *executionContext) fieldContext_GlobalVPN_markedForDeletion(_ context.C return fc, nil } -func (ec *executionContext) _GlobalVPN_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_metadata(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(ctx, field) if err != nil { return graphql.Null } @@ -26661,54 +28608,35 @@ func (ec *executionContext) _GlobalVPN_metadata(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.ObjectMeta, 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.(v1.ObjectMeta) + res := resTmp.(*string) fc.Result = res - return ec.marshalNMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPN_nonClusterUseAllowedIPs(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_nonClusterUseAllowedIPs(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(ctx, field) if err != nil { return graphql.Null } @@ -26721,38 +28649,35 @@ func (ec *executionContext) _GlobalVPN_nonClusterUseAllowedIPs(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.NonClusterUseAllowedIPs, nil + return obj.Hide, 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.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_nonClusterUseAllowedIPs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__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) _GlobalVPN_numAllocatedClusterCIDRs(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_numAllocatedClusterCIDRs(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(ctx, field) if err != nil { return graphql.Null } @@ -26765,7 +28690,7 @@ func (ec *executionContext) _GlobalVPN_numAllocatedClusterCIDRs(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.NumAllocatedClusterCIDRs, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -26777,26 +28702,26 @@ func (ec *executionContext) _GlobalVPN_numAllocatedClusterCIDRs(ctx context.Cont } 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_GlobalVPN_numAllocatedClusterCIDRs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__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 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) _GlobalVPN_numAllocatedDevices(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_numAllocatedDevices(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(ctx, field) if err != nil { return graphql.Null } @@ -26809,7 +28734,7 @@ func (ec *executionContext) _GlobalVPN_numAllocatedDevices(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.NumAllocatedDevices, nil + return obj.Title, nil }) if err != nil { ec.Error(ctx, err) @@ -26821,26 +28746,26 @@ func (ec *executionContext) _GlobalVPN_numAllocatedDevices(ctx context.Context, } 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_GlobalVPN_numAllocatedDevices(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__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 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) _GlobalVPN_numReservedIPsForNonClusterUse(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_numReservedIPsForNonClusterUse(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -26853,7 +28778,7 @@ func (ec *executionContext) _GlobalVPN_numReservedIPsForNonClusterUse(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NumReservedIPsForNonClusterUse, nil + return obj.APIVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -26865,26 +28790,26 @@ func (ec *executionContext) _GlobalVPN_numReservedIPsForNonClusterUse(ctx contex } 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_GlobalVPN_numReservedIPsForNonClusterUse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__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) _GlobalVPN_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_recordVersion(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(ctx, field) if err != nil { return graphql.Null } @@ -26897,7 +28822,7 @@ func (ec *executionContext) _GlobalVPN_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.Kind, nil }) if err != nil { ec.Error(ctx, err) @@ -26909,26 +28834,26 @@ func (ec *executionContext) _GlobalVPN_recordVersion(ctx context.Context, field } 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_GlobalVPN_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__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) _GlobalVPN_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_updateTime(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(ctx, field) if err != nil { return graphql.Null } @@ -26941,7 +28866,7 @@ func (ec *executionContext) _GlobalVPN_updateTime(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.GlobalVPN().UpdateTime(rctx, obj) + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -26955,24 +28880,24 @@ func (ec *executionContext) _GlobalVPN_updateTime(ctx context.Context, field gra } res := resTmp.(string) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", 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) _GlobalVPN_wgInterface(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPN_wgInterface(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(ctx, field) if err != nil { return graphql.Null } @@ -26985,7 +28910,7 @@ func (ec *executionContext) _GlobalVPN_wgInterface(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.WgInterface, nil + return obj.Namespace, nil }) if err != nil { ec.Error(ctx, err) @@ -27002,9 +28927,9 @@ func (ec *executionContext) _GlobalVPN_wgInterface(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPN_wgInterface(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPN", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", Field: field, IsMethod: false, IsResolver: false, @@ -27015,8 +28940,8 @@ func (ec *executionContext) fieldContext_GlobalVPN_wgInterface(_ context.Context return fc, nil } -func (ec *executionContext) _GlobalVPNDevice_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_accountName(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(ctx, field) if err != nil { return graphql.Null } @@ -27029,38 +28954,88 @@ func (ec *executionContext) _GlobalVPNDevice_accountName(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.AccountName, nil + return ec.resolvers.Github__com___kloudlite___operator___toolkit___reconciler__Status().CheckList(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.GithubComKloudliteOperatorToolkitReconcilerCheckMeta) + fc.Result = res + return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerCheckMetaᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "debug": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_debug(ctx, field) + case "description": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_description(ctx, field) + case "hide": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_hide(ctx, field) + case "name": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_name(ctx, field) + case "title": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta_title(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Github__com___kloudlite___operator___toolkit___reconciler__Status().Checks(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(string) + if resTmp == nil { + return graphql.Null + } + 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_GlobalVPNDevice_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", 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) _GlobalVPNDevice_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_createdBy(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx, field) if err != nil { return graphql.Null } @@ -27073,7 +29048,7 @@ func (ec *executionContext) _GlobalVPNDevice_createdBy(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.CreatedBy, nil + return obj.IsReady, nil }) if err != nil { ec.Error(ctx, err) @@ -27085,34 +29060,26 @@ func (ec *executionContext) _GlobalVPNDevice_createdBy(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(common.CreatedOrUpdatedBy) + res := resTmp.(bool) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevice_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", 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 Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPNDevice_creationMethod(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_creationMethod(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx, field) if err != nil { return graphql.Null } @@ -27125,7 +29092,7 @@ func (ec *executionContext) _GlobalVPNDevice_creationMethod(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.CreationMethod, nil + return obj.LastReadyGeneration, nil }) if err != nil { ec.Error(ctx, err) @@ -27134,26 +29101,26 @@ func (ec *executionContext) _GlobalVPNDevice_creationMethod(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(int64) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOInt2int64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevice_creationMethod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__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) _GlobalVPNDevice_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_creationTime(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx, field) if err != nil { return graphql.Null } @@ -27166,26 +29133,23 @@ func (ec *executionContext) _GlobalVPNDevice_creationTime(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.GlobalVPNDevice().CreationTime(rctx, obj) + return ec.resolvers.Github__com___kloudlite___operator___toolkit___reconciler__Status().LastReconcileTime(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.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevice_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", Field: field, IsMethod: true, IsResolver: true, @@ -27196,8 +29160,8 @@ func (ec *executionContext) fieldContext_GlobalVPNDevice_creationTime(_ context. return fc, nil } -func (ec *executionContext) _GlobalVPNDevice_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_displayName(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(ctx context.Context, field graphql.CollectedField, obj *reconciler.Status) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(ctx, field) if err != nil { return graphql.Null } @@ -27210,38 +29174,45 @@ func (ec *executionContext) _GlobalVPNDevice_displayName(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.DisplayName, nil + return ec.resolvers.Github__com___kloudlite___operator___toolkit___reconciler__Status().Resources(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.([]*model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRef2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRefᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevice_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "Github__com___kloudlite___operator___toolkit___reconciler__Status", 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 "apiVersion": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_apiVersion(ctx, field) + case "kind": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_kind(ctx, field) + case "name": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_name(ctx, field) + case "namespace": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef", field.Name) }, } return fc, nil } -func (ec *executionContext) _GlobalVPNDevice_globalVPNName(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_globalVPNName(ctx, field) +func (ec *executionContext) _GlobalVPN_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_accountName(ctx, field) if err != nil { return graphql.Null } @@ -27254,7 +29225,7 @@ func (ec *executionContext) _GlobalVPNDevice_globalVPNName(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.GlobalVPNName, nil + return obj.AccountName, nil }) if err != nil { ec.Error(ctx, err) @@ -27271,9 +29242,9 @@ func (ec *executionContext) _GlobalVPNDevice_globalVPNName(ctx context.Context, return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevice_globalVPNName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "GlobalVPN", Field: field, IsMethod: false, IsResolver: false, @@ -27284,8 +29255,8 @@ func (ec *executionContext) fieldContext_GlobalVPNDevice_globalVPNName(_ context return fc, nil } -func (ec *executionContext) _GlobalVPNDevice_id(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_id(ctx, field) +func (ec *executionContext) _GlobalVPN_allocatableCIDRSuffix(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_allocatableCIDRSuffix(ctx, field) if err != nil { return graphql.Null } @@ -27298,7 +29269,7 @@ func (ec *executionContext) _GlobalVPNDevice_id(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 ec.resolvers.GlobalVPNDevice().ID(rctx, obj) + return obj.AllocatableCIDRSuffix, nil }) if err != nil { ec.Error(ctx, err) @@ -27310,26 +29281,26 @@ func (ec *executionContext) _GlobalVPNDevice_id(ctx context.Context, field graph } 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_GlobalVPNDevice_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_allocatableCIDRSuffix(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "GlobalVPN", 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 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) _GlobalVPNDevice_ipAddr(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_ipAddr(ctx, field) +func (ec *executionContext) _GlobalVPN_CIDR(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_CIDR(ctx, field) if err != nil { return graphql.Null } @@ -27342,7 +29313,7 @@ func (ec *executionContext) _GlobalVPNDevice_ipAddr(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.IPAddr, nil + return obj.CIDR, nil }) if err != nil { ec.Error(ctx, err) @@ -27359,9 +29330,9 @@ func (ec *executionContext) _GlobalVPNDevice_ipAddr(ctx context.Context, field g return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevice_ipAddr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_CIDR(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "GlobalVPN", Field: field, IsMethod: false, IsResolver: false, @@ -27372,8 +29343,8 @@ func (ec *executionContext) fieldContext_GlobalVPNDevice_ipAddr(_ context.Contex return fc, nil } -func (ec *executionContext) _GlobalVPNDevice_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_lastUpdatedBy(ctx, field) +func (ec *executionContext) _GlobalVPN_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -27386,7 +29357,7 @@ func (ec *executionContext) _GlobalVPNDevice_lastUpdatedBy(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.LastUpdatedBy, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -27403,9 +29374,9 @@ func (ec *executionContext) _GlobalVPNDevice_lastUpdatedBy(ctx context.Context, return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevice_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "GlobalVPN", Field: field, IsMethod: false, IsResolver: false, @@ -27424,8 +29395,8 @@ func (ec *executionContext) fieldContext_GlobalVPNDevice_lastUpdatedBy(_ context return fc, nil } -func (ec *executionContext) _GlobalVPNDevice_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_markedForDeletion(ctx, field) +func (ec *executionContext) _GlobalVPN_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_creationTime(ctx, field) if err != nil { return graphql.Null } @@ -27438,35 +29409,38 @@ func (ec *executionContext) _GlobalVPNDevice_markedForDeletion(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.MarkedForDeletion, nil + return ec.resolvers.GlobalVPN().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_GlobalVPNDevice_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "GlobalVPN", 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) _GlobalVPNDevice_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_metadata(ctx, field) +func (ec *executionContext) _GlobalVPN_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_displayName(ctx, field) if err != nil { return graphql.Null } @@ -27479,7 +29453,7 @@ func (ec *executionContext) _GlobalVPNDevice_metadata(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.ObjectMeta, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -27491,42 +29465,26 @@ func (ec *executionContext) _GlobalVPNDevice_metadata(ctx context.Context, field } return graphql.Null } - res := resTmp.(v1.ObjectMeta) + res := resTmp.(string) fc.Result = res - return ec.marshalNMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevice_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "GlobalVPN", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPNDevice_privateKey(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_privateKey(ctx, field) +func (ec *executionContext) _GlobalVPN_id(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_id(ctx, field) if err != nil { return graphql.Null } @@ -27539,7 +29497,7 @@ func (ec *executionContext) _GlobalVPNDevice_privateKey(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.PrivateKey, nil + return ec.resolvers.GlobalVPN().ID(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -27551,26 +29509,26 @@ func (ec *executionContext) _GlobalVPNDevice_privateKey(ctx context.Context, fie } 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_GlobalVPNDevice_privateKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "GlobalVPN", 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 ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPNDevice_publicEndpoint(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_publicEndpoint(ctx, field) +func (ec *executionContext) _GlobalVPN_kloudliteClusterLocalDevice(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_kloudliteClusterLocalDevice(ctx, field) if err != nil { return graphql.Null } @@ -27583,35 +29541,44 @@ func (ec *executionContext) _GlobalVPNDevice_publicEndpoint(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.PublicEndpoint, nil + return ec.resolvers.GlobalVPN().KloudliteClusterLocalDevice(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.(*model.GlobalVPNKloudliteClusterLocalDevice) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNGlobalVPNKloudliteClusterLocalDevice2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGlobalVPNKloudliteClusterLocalDevice(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevice_publicEndpoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_kloudliteClusterLocalDevice(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "GlobalVPN", 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 "ipAddr": + return ec.fieldContext_GlobalVPNKloudliteClusterLocalDevice_ipAddr(ctx, field) + case "name": + return ec.fieldContext_GlobalVPNKloudliteClusterLocalDevice_name(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPNKloudliteClusterLocalDevice", field.Name) }, } return fc, nil } -func (ec *executionContext) _GlobalVPNDevice_publicKey(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_publicKey(ctx, field) +func (ec *executionContext) _GlobalVPN_kloudliteGatewayDevice(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_kloudliteGatewayDevice(ctx, field) if err != nil { return graphql.Null } @@ -27624,7 +29591,7 @@ func (ec *executionContext) _GlobalVPNDevice_publicKey(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.PublicKey, nil + return ec.resolvers.GlobalVPN().KloudliteGatewayDevice(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -27636,26 +29603,32 @@ func (ec *executionContext) _GlobalVPNDevice_publicKey(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.GlobalVPNKloudliteGatewayDevice) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNGlobalVPNKloudliteGatewayDevice2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGlobalVPNKloudliteGatewayDevice(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevice_publicKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_kloudliteGatewayDevice(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "GlobalVPN", 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 "ipAddr": + return ec.fieldContext_GlobalVPNKloudliteGatewayDevice_ipAddr(ctx, field) + case "name": + return ec.fieldContext_GlobalVPNKloudliteGatewayDevice_name(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPNKloudliteGatewayDevice", field.Name) }, } return fc, nil } -func (ec *executionContext) _GlobalVPNDevice_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_recordVersion(ctx, field) +func (ec *executionContext) _GlobalVPN_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_lastUpdatedBy(ctx, field) if err != nil { return graphql.Null } @@ -27668,7 +29641,7 @@ func (ec *executionContext) _GlobalVPNDevice_recordVersion(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.RecordVersion, nil + return obj.LastUpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -27680,26 +29653,34 @@ func (ec *executionContext) _GlobalVPNDevice_recordVersion(ctx context.Context, } return graphql.Null } - res := resTmp.(int) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalNInt2int(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_GlobalVPNDevice_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "GlobalVPN", 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 "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) _GlobalVPNDevice_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_updateTime(ctx, field) +func (ec *executionContext) _GlobalVPN_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_markedForDeletion(ctx, field) if err != nil { return graphql.Null } @@ -27712,38 +29693,35 @@ func (ec *executionContext) _GlobalVPNDevice_updateTime(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.GlobalVPNDevice().UpdateTime(rctx, obj) + 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.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevice_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "GlobalVPN", 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 Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPNDevice_wireguardConfig(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevice_wireguardConfig(ctx, field) +func (ec *executionContext) _GlobalVPN_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_metadata(ctx, field) if err != nil { return graphql.Null } @@ -27756,41 +29734,54 @@ func (ec *executionContext) _GlobalVPNDevice_wireguardConfig(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.GlobalVPNDevice().WireguardConfig(rctx, obj) + 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.(*model.EncodedValue) + res := resTmp.(v1.ObjectMeta) fc.Result = res - return ec.marshalOEncodedValue2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐEncodedValue(ctx, field.Selections, res) + return ec.marshalNMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevice_wireguardConfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevice", + Object: "GlobalVPN", 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 "value": - return ec.fieldContext_EncodedValue_value(ctx, field) - case "encoding": - return ec.fieldContext_EncodedValue_encoding(ctx, field) + 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 EncodedValue", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Metadata", field.Name) }, } return fc, nil } -func (ec *executionContext) _GlobalVPNDeviceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNDeviceEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDeviceEdge_cursor(ctx, field) +func (ec *executionContext) _GlobalVPN_nonClusterUseAllowedIPs(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_nonClusterUseAllowedIPs(ctx, field) if err != nil { return graphql.Null } @@ -27803,7 +29794,7 @@ func (ec *executionContext) _GlobalVPNDeviceEdge_cursor(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.Cursor, nil + return obj.NonClusterUseAllowedIPs, nil }) if err != nil { ec.Error(ctx, err) @@ -27815,14 +29806,14 @@ func (ec *executionContext) _GlobalVPNDeviceEdge_cursor(ctx context.Context, fie } 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_GlobalVPNDeviceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_nonClusterUseAllowedIPs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDeviceEdge", + Object: "GlobalVPN", Field: field, IsMethod: false, IsResolver: false, @@ -27833,8 +29824,8 @@ func (ec *executionContext) fieldContext_GlobalVPNDeviceEdge_cursor(_ context.Co return fc, nil } -func (ec *executionContext) _GlobalVPNDeviceEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNDeviceEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDeviceEdge_node(ctx, field) +func (ec *executionContext) _GlobalVPN_numAllocatedClusterCIDRs(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_numAllocatedClusterCIDRs(ctx, field) if err != nil { return graphql.Null } @@ -27847,7 +29838,7 @@ func (ec *executionContext) _GlobalVPNDeviceEdge_node(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.Node, nil + return obj.NumAllocatedClusterCIDRs, nil }) if err != nil { ec.Error(ctx, err) @@ -27859,62 +29850,26 @@ func (ec *executionContext) _GlobalVPNDeviceEdge_node(ctx context.Context, field } return graphql.Null } - res := resTmp.(*entities.GlobalVPNDevice) + res := resTmp.(int) fc.Result = res - return ec.marshalNGlobalVPNDevice2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPNDevice(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDeviceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_numAllocatedClusterCIDRs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDeviceEdge", + Object: "GlobalVPN", 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_GlobalVPNDevice_accountName(ctx, field) - case "createdBy": - return ec.fieldContext_GlobalVPNDevice_createdBy(ctx, field) - case "creationMethod": - return ec.fieldContext_GlobalVPNDevice_creationMethod(ctx, field) - case "creationTime": - return ec.fieldContext_GlobalVPNDevice_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_GlobalVPNDevice_displayName(ctx, field) - case "globalVPNName": - return ec.fieldContext_GlobalVPNDevice_globalVPNName(ctx, field) - case "id": - return ec.fieldContext_GlobalVPNDevice_id(ctx, field) - case "ipAddr": - return ec.fieldContext_GlobalVPNDevice_ipAddr(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_GlobalVPNDevice_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_GlobalVPNDevice_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_GlobalVPNDevice_metadata(ctx, field) - case "privateKey": - return ec.fieldContext_GlobalVPNDevice_privateKey(ctx, field) - case "publicEndpoint": - return ec.fieldContext_GlobalVPNDevice_publicEndpoint(ctx, field) - case "publicKey": - return ec.fieldContext_GlobalVPNDevice_publicKey(ctx, field) - case "recordVersion": - return ec.fieldContext_GlobalVPNDevice_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_GlobalVPNDevice_updateTime(ctx, field) - case "wireguardConfig": - return ec.fieldContext_GlobalVPNDevice_wireguardConfig(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPNDevice", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPNDevicePaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNDevicePaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevicePaginatedRecords_edges(ctx, field) +func (ec *executionContext) _GlobalVPN_numAllocatedDevices(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_numAllocatedDevices(ctx, field) if err != nil { return graphql.Null } @@ -27927,7 +29882,7 @@ func (ec *executionContext) _GlobalVPNDevicePaginatedRecords_edges(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.Edges, nil + return obj.NumAllocatedDevices, nil }) if err != nil { ec.Error(ctx, err) @@ -27939,32 +29894,26 @@ func (ec *executionContext) _GlobalVPNDevicePaginatedRecords_edges(ctx context.C } return graphql.Null } - res := resTmp.([]*model.GlobalVPNDeviceEdge) + res := resTmp.(int) fc.Result = res - return ec.marshalNGlobalVPNDeviceEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGlobalVPNDeviceEdgeᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevicePaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_numAllocatedDevices(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevicePaginatedRecords", + Object: "GlobalVPN", 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_GlobalVPNDeviceEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_GlobalVPNDeviceEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPNDeviceEdge", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPNDevicePaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNDevicePaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevicePaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _GlobalVPN_numReservedIPsForNonClusterUse(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_numReservedIPsForNonClusterUse(ctx, field) if err != nil { return graphql.Null } @@ -27977,7 +29926,7 @@ func (ec *executionContext) _GlobalVPNDevicePaginatedRecords_pageInfo(ctx contex }() 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.NumReservedIPsForNonClusterUse, nil }) if err != nil { ec.Error(ctx, err) @@ -27989,36 +29938,26 @@ func (ec *executionContext) _GlobalVPNDevicePaginatedRecords_pageInfo(ctx contex } return graphql.Null } - res := resTmp.(*model.PageInfo) + res := resTmp.(int) fc.Result = res - return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevicePaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_numReservedIPsForNonClusterUse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevicePaginatedRecords", + Object: "GlobalVPN", 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 "hasPrevPage": - return ec.fieldContext_PageInfo_hasPrevPage(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) _GlobalVPNDevicePaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNDevicePaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNDevicePaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _GlobalVPN_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -28031,7 +29970,7 @@ func (ec *executionContext) _GlobalVPNDevicePaginatedRecords_totalCount(ctx cont }() 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.RecordVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -28048,9 +29987,9 @@ func (ec *executionContext) _GlobalVPNDevicePaginatedRecords_totalCount(ctx cont return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNDevicePaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNDevicePaginatedRecords", + Object: "GlobalVPN", Field: field, IsMethod: false, IsResolver: false, @@ -28061,8 +30000,8 @@ func (ec *executionContext) fieldContext_GlobalVPNDevicePaginatedRecords_totalCo return fc, nil } -func (ec *executionContext) _GlobalVPNEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNEdge_cursor(ctx, field) +func (ec *executionContext) _GlobalVPN_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_updateTime(ctx, field) if err != nil { return graphql.Null } @@ -28075,7 +30014,7 @@ func (ec *executionContext) _GlobalVPNEdge_cursor(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.Cursor, nil + return ec.resolvers.GlobalVPN().UpdateTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -28089,24 +30028,24 @@ func (ec *executionContext) _GlobalVPNEdge_cursor(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_GlobalVPNEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNEdge", + Object: "GlobalVPN", 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) _GlobalVPNEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNEdge_node(ctx, field) +func (ec *executionContext) _GlobalVPN_wgInterface(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPN) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPN_wgInterface(ctx, field) if err != nil { return graphql.Null } @@ -28119,7 +30058,7 @@ func (ec *executionContext) _GlobalVPNEdge_node(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.Node, nil + return obj.WgInterface, nil }) if err != nil { ec.Error(ctx, err) @@ -28131,66 +30070,26 @@ func (ec *executionContext) _GlobalVPNEdge_node(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(*entities.GlobalVPN) + res := resTmp.(string) fc.Result = res - return ec.marshalNGlobalVPN2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPN(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPN_wgInterface(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNEdge", + Object: "GlobalVPN", 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_GlobalVPN_accountName(ctx, field) - case "allocatableCIDRSuffix": - return ec.fieldContext_GlobalVPN_allocatableCIDRSuffix(ctx, field) - case "CIDR": - return ec.fieldContext_GlobalVPN_CIDR(ctx, field) - case "createdBy": - return ec.fieldContext_GlobalVPN_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_GlobalVPN_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_GlobalVPN_displayName(ctx, field) - case "id": - return ec.fieldContext_GlobalVPN_id(ctx, field) - case "kloudliteClusterLocalDevice": - return ec.fieldContext_GlobalVPN_kloudliteClusterLocalDevice(ctx, field) - case "kloudliteGatewayDevice": - return ec.fieldContext_GlobalVPN_kloudliteGatewayDevice(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_GlobalVPN_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_GlobalVPN_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_GlobalVPN_metadata(ctx, field) - case "nonClusterUseAllowedIPs": - return ec.fieldContext_GlobalVPN_nonClusterUseAllowedIPs(ctx, field) - case "numAllocatedClusterCIDRs": - return ec.fieldContext_GlobalVPN_numAllocatedClusterCIDRs(ctx, field) - case "numAllocatedDevices": - return ec.fieldContext_GlobalVPN_numAllocatedDevices(ctx, field) - case "numReservedIPsForNonClusterUse": - return ec.fieldContext_GlobalVPN_numReservedIPsForNonClusterUse(ctx, field) - case "recordVersion": - return ec.fieldContext_GlobalVPN_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_GlobalVPN_updateTime(ctx, field) - case "wgInterface": - return ec.fieldContext_GlobalVPN_wgInterface(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPN", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPNKloudliteClusterLocalDevice_ipAddr(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNKloudliteClusterLocalDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNKloudliteClusterLocalDevice_ipAddr(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_accountName(ctx, field) if err != nil { return graphql.Null } @@ -28203,7 +30102,7 @@ func (ec *executionContext) _GlobalVPNKloudliteClusterLocalDevice_ipAddr(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IPAddr, nil + return obj.AccountName, nil }) if err != nil { ec.Error(ctx, err) @@ -28220,9 +30119,9 @@ func (ec *executionContext) _GlobalVPNKloudliteClusterLocalDevice_ipAddr(ctx con return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNKloudliteClusterLocalDevice_ipAddr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNKloudliteClusterLocalDevice", + Object: "GlobalVPNDevice", Field: field, IsMethod: false, IsResolver: false, @@ -28233,8 +30132,8 @@ func (ec *executionContext) fieldContext_GlobalVPNKloudliteClusterLocalDevice_ip return fc, nil } -func (ec *executionContext) _GlobalVPNKloudliteClusterLocalDevice_name(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNKloudliteClusterLocalDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNKloudliteClusterLocalDevice_name(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -28247,7 +30146,7 @@ func (ec *executionContext) _GlobalVPNKloudliteClusterLocalDevice_name(ctx conte }() 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.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -28259,26 +30158,34 @@ func (ec *executionContext) _GlobalVPNKloudliteClusterLocalDevice_name(ctx conte } return graphql.Null } - res := resTmp.(string) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalNString2string(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_GlobalVPNKloudliteClusterLocalDevice_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNKloudliteClusterLocalDevice", + Object: "GlobalVPNDevice", 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 "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) _GlobalVPNKloudliteGatewayDevice_ipAddr(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNKloudliteGatewayDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNKloudliteGatewayDevice_ipAddr(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_creationMethod(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_creationMethod(ctx, field) if err != nil { return graphql.Null } @@ -28291,26 +30198,23 @@ func (ec *executionContext) _GlobalVPNKloudliteGatewayDevice_ipAddr(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IPAddr, nil + return obj.CreationMethod, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNKloudliteGatewayDevice_ipAddr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_creationMethod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNKloudliteGatewayDevice", + Object: "GlobalVPNDevice", Field: field, IsMethod: false, IsResolver: false, @@ -28321,8 +30225,8 @@ func (ec *executionContext) fieldContext_GlobalVPNKloudliteGatewayDevice_ipAddr( return fc, nil } -func (ec *executionContext) _GlobalVPNKloudliteGatewayDevice_name(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNKloudliteGatewayDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNKloudliteGatewayDevice_name(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_creationTime(ctx, field) if err != nil { return graphql.Null } @@ -28335,7 +30239,7 @@ func (ec *executionContext) _GlobalVPNKloudliteGatewayDevice_name(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.Name, nil + return ec.resolvers.GlobalVPNDevice().CreationTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -28349,24 +30253,24 @@ func (ec *executionContext) _GlobalVPNKloudliteGatewayDevice_name(ctx context.Co } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNKloudliteGatewayDevice_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNKloudliteGatewayDevice", + Object: "GlobalVPNDevice", 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) _GlobalVPNPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNPaginatedRecords_edges(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_displayName(ctx, field) if err != nil { return graphql.Null } @@ -28379,7 +30283,7 @@ func (ec *executionContext) _GlobalVPNPaginatedRecords_edges(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.Edges, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -28391,32 +30295,26 @@ func (ec *executionContext) _GlobalVPNPaginatedRecords_edges(ctx context.Context } return graphql.Null } - res := resTmp.([]*model.GlobalVPNEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalNGlobalVPNEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGlobalVPNEdgeᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNPaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNPaginatedRecords", + Object: "GlobalVPNDevice", 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_GlobalVPNEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_GlobalVPNEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPNEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPNPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNPaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_globalVPNName(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_globalVPNName(ctx, field) if err != nil { return graphql.Null } @@ -28429,7 +30327,7 @@ func (ec *executionContext) _GlobalVPNPaginatedRecords_pageInfo(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.PageInfo, nil + return obj.GlobalVPNName, nil }) if err != nil { ec.Error(ctx, err) @@ -28441,36 +30339,26 @@ func (ec *executionContext) _GlobalVPNPaginatedRecords_pageInfo(ctx context.Cont } return graphql.Null } - res := resTmp.(*model.PageInfo) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GlobalVPNPaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_globalVPNName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNPaginatedRecords", + Object: "GlobalVPNDevice", 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 "hasPrevPage": - return ec.fieldContext_PageInfo_hasPrevPage(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 String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GlobalVPNPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GlobalVPNPaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_id(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_id(ctx, field) if err != nil { return graphql.Null } @@ -28483,7 +30371,7 @@ func (ec *executionContext) _GlobalVPNPaginatedRecords_totalCount(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.TotalCount, nil + return ec.resolvers.GlobalVPNDevice().ID(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -28495,26 +30383,26 @@ func (ec *executionContext) _GlobalVPNPaginatedRecords_totalCount(ctx context.Co } 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_GlobalVPNPaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GlobalVPNPaginatedRecords", + Object: "GlobalVPNDevice", 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 ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AWSElasticBlockStoreVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_fsType(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_ipAddr(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_ipAddr(ctx, field) if err != nil { return graphql.Null } @@ -28527,23 +30415,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FsType, nil + return obj.IPAddr, 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_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_ipAddr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource", + Object: "GlobalVPNDevice", Field: field, IsMethod: false, IsResolver: false, @@ -28554,8 +30445,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AWSElasticBl return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_partition(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AWSElasticBlockStoreVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_partition(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_lastUpdatedBy(ctx, field) if err != nil { return graphql.Null } @@ -28568,35 +30459,46 @@ func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Partition, nil + 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.(*int) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalOInt2ᚖint(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_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_partition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource", + Object: "GlobalVPNDevice", 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 "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) _K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AWSElasticBlockStoreVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_markedForDeletion(ctx, field) if err != nil { return graphql.Null } @@ -28609,7 +30511,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, nil + return obj.MarkedForDeletion, nil }) if err != nil { ec.Error(ctx, err) @@ -28623,9 +30525,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolu return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource", + Object: "GlobalVPNDevice", Field: field, IsMethod: false, IsResolver: false, @@ -28636,8 +30538,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AWSElasticBl return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_volumeID(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AWSElasticBlockStoreVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_volumeID(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_metadata(ctx, field) if err != nil { return graphql.Null } @@ -28650,7 +30552,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeID, nil + return obj.ObjectMeta, nil }) if err != nil { ec.Error(ctx, err) @@ -28662,26 +30564,42 @@ func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolu } return graphql.Null } - res := resTmp.(string) + res := resTmp.(v1.ObjectMeta) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_volumeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource", + Object: "GlobalVPNDevice", 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) _K8s__io___api___core___v1__AzureDiskVolumeSource_cachingMode(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_cachingMode(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_privateKey(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_privateKey(ctx, field) if err != nil { return graphql.Null } @@ -28694,23 +30612,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_ca }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CachingMode, nil + return obj.PrivateKey, 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_K8s__io___api___core___v1__AzureDiskVolumeSource_cachingMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_privateKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AzureDiskVolumeSource", + Object: "GlobalVPNDevice", Field: field, IsMethod: false, IsResolver: false, @@ -28721,8 +30642,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureDiskVol return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_diskName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_diskName(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_publicEndpoint(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_publicEndpoint(ctx, field) if err != nil { return graphql.Null } @@ -28735,26 +30656,23 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_di }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DiskName, nil + return obj.PublicEndpoint, 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_K8s__io___api___core___v1__AzureDiskVolumeSource_diskName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_publicEndpoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AzureDiskVolumeSource", + Object: "GlobalVPNDevice", Field: field, IsMethod: false, IsResolver: false, @@ -28765,8 +30683,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureDiskVol return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_diskURI(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_diskURI(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_publicKey(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_publicKey(ctx, field) if err != nil { return graphql.Null } @@ -28779,7 +30697,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_di }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DiskURI, nil + return obj.PublicKey, nil }) if err != nil { ec.Error(ctx, err) @@ -28796,9 +30714,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_di return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_diskURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_publicKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AzureDiskVolumeSource", + Object: "GlobalVPNDevice", Field: field, IsMethod: false, IsResolver: false, @@ -28809,8 +30727,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureDiskVol return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_fsType(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -28823,35 +30741,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_fs }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FsType, 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.(*string) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AzureDiskVolumeSource", + Object: "GlobalVPNDevice", 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) _K8s__io___api___core___v1__AzureDiskVolumeSource_kind(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_kind(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_updateTime(ctx, field) if err != nil { return graphql.Null } @@ -28864,35 +30785,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_ki }() 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 ec.resolvers.GlobalVPNDevice().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_K8s__io___api___core___v1__AzureDiskVolumeSource_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AzureDiskVolumeSource", + Object: "GlobalVPNDevice", 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) _K8s__io___api___core___v1__AzureDiskVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _GlobalVPNDevice_wireguardConfig(ctx context.Context, field graphql.CollectedField, obj *entities.GlobalVPNDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevice_wireguardConfig(ctx, field) if err != nil { return graphql.Null } @@ -28905,7 +30829,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_re }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, nil + return ec.resolvers.GlobalVPNDevice().WireguardConfig(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -28914,26 +30838,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_re if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*model.EncodedValue) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOEncodedValue2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐEncodedValue(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevice_wireguardConfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AzureDiskVolumeSource", + Object: "GlobalVPNDevice", 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") + switch field.Name { + case "value": + return ec.fieldContext_EncodedValue_value(ctx, field) + case "encoding": + return ec.fieldContext_EncodedValue_encoding(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EncodedValue", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureFilePersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _GlobalVPNDeviceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNDeviceEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDeviceEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -28946,35 +30876,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolum }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, 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.(*bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDeviceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AzureFilePersistentVolumeSource", + Object: "GlobalVPNDeviceEdge", 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) _K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureFilePersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretName(ctx, field) +func (ec *executionContext) _GlobalVPNDeviceEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNDeviceEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDeviceEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -28987,7 +30920,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolum }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecretName, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -28999,26 +30932,62 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolum } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*entities.GlobalVPNDevice) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNGlobalVPNDevice2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPNDevice(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDeviceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AzureFilePersistentVolumeSource", + Object: "GlobalVPNDeviceEdge", 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 "accountName": + return ec.fieldContext_GlobalVPNDevice_accountName(ctx, field) + case "createdBy": + return ec.fieldContext_GlobalVPNDevice_createdBy(ctx, field) + case "creationMethod": + return ec.fieldContext_GlobalVPNDevice_creationMethod(ctx, field) + case "creationTime": + return ec.fieldContext_GlobalVPNDevice_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_GlobalVPNDevice_displayName(ctx, field) + case "globalVPNName": + return ec.fieldContext_GlobalVPNDevice_globalVPNName(ctx, field) + case "id": + return ec.fieldContext_GlobalVPNDevice_id(ctx, field) + case "ipAddr": + return ec.fieldContext_GlobalVPNDevice_ipAddr(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_GlobalVPNDevice_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_GlobalVPNDevice_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_GlobalVPNDevice_metadata(ctx, field) + case "privateKey": + return ec.fieldContext_GlobalVPNDevice_privateKey(ctx, field) + case "publicEndpoint": + return ec.fieldContext_GlobalVPNDevice_publicEndpoint(ctx, field) + case "publicKey": + return ec.fieldContext_GlobalVPNDevice_publicKey(ctx, field) + case "recordVersion": + return ec.fieldContext_GlobalVPNDevice_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_GlobalVPNDevice_updateTime(ctx, field) + case "wireguardConfig": + return ec.fieldContext_GlobalVPNDevice_wireguardConfig(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPNDevice", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretNamespace(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureFilePersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretNamespace(ctx, field) +func (ec *executionContext) _GlobalVPNDevicePaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNDevicePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevicePaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -29031,35 +31000,44 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolum }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecretNamespace, 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.GlobalVPNDeviceEdge) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNGlobalVPNDeviceEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGlobalVPNDeviceEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretNamespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevicePaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AzureFilePersistentVolumeSource", + Object: "GlobalVPNDevicePaginatedRecords", 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_GlobalVPNDeviceEdge_cursor(ctx, field) + case "node": + return ec.fieldContext_GlobalVPNDeviceEdge_node(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPNDeviceEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolumeSource_shareName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureFilePersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_shareName(ctx, field) +func (ec *executionContext) _GlobalVPNDevicePaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNDevicePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevicePaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -29072,7 +31050,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolum }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ShareName, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -29084,26 +31062,36 @@ func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolum } 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ᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_shareName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevicePaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__AzureFilePersistentVolumeSource", + Object: "GlobalVPNDevicePaginatedRecords", 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 "hasPrevPage": + return ec.fieldContext_PageInfo_hasPrevPage(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) _K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerExpandSecretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerExpandSecretRef(ctx, field) +func (ec *executionContext) _GlobalVPNDevicePaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNDevicePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNDevicePaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -29116,41 +31104,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControllerExpandSecretRef, 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.(*model.K8sIoAPICoreV1SecretReference) + res := resTmp.(int) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerExpandSecretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNDevicePaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", + Object: "GlobalVPNDevicePaginatedRecords", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) - case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerPublishSecretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerPublishSecretRef(ctx, field) +func (ec *executionContext) _GlobalVPNEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -29163,41 +31148,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControllerPublishSecretRef, 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.(*model.K8sIoAPICoreV1SecretReference) + res := resTmp.(string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerPublishSecretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", + Object: "GlobalVPNEdge", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) - case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_driver(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_driver(ctx, field) +func (ec *executionContext) _GlobalVPNEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -29210,7 +31192,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Driver, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -29222,26 +31204,66 @@ func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSourc } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*entities.GlobalVPN) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNGlobalVPN2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPN(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_driver(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", + Object: "GlobalVPNEdge", 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 "accountName": + return ec.fieldContext_GlobalVPN_accountName(ctx, field) + case "allocatableCIDRSuffix": + return ec.fieldContext_GlobalVPN_allocatableCIDRSuffix(ctx, field) + case "CIDR": + return ec.fieldContext_GlobalVPN_CIDR(ctx, field) + case "createdBy": + return ec.fieldContext_GlobalVPN_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_GlobalVPN_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_GlobalVPN_displayName(ctx, field) + case "id": + return ec.fieldContext_GlobalVPN_id(ctx, field) + case "kloudliteClusterLocalDevice": + return ec.fieldContext_GlobalVPN_kloudliteClusterLocalDevice(ctx, field) + case "kloudliteGatewayDevice": + return ec.fieldContext_GlobalVPN_kloudliteGatewayDevice(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_GlobalVPN_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_GlobalVPN_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_GlobalVPN_metadata(ctx, field) + case "nonClusterUseAllowedIPs": + return ec.fieldContext_GlobalVPN_nonClusterUseAllowedIPs(ctx, field) + case "numAllocatedClusterCIDRs": + return ec.fieldContext_GlobalVPN_numAllocatedClusterCIDRs(ctx, field) + case "numAllocatedDevices": + return ec.fieldContext_GlobalVPN_numAllocatedDevices(ctx, field) + case "numReservedIPsForNonClusterUse": + return ec.fieldContext_GlobalVPN_numReservedIPsForNonClusterUse(ctx, field) + case "recordVersion": + return ec.fieldContext_GlobalVPN_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_GlobalVPN_updateTime(ctx, field) + case "wgInterface": + return ec.fieldContext_GlobalVPN_wgInterface(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPN", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_fsType(ctx, field) +func (ec *executionContext) _GlobalVPNKloudliteClusterLocalDevice_ipAddr(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNKloudliteClusterLocalDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNKloudliteClusterLocalDevice_ipAddr(ctx, field) if err != nil { return graphql.Null } @@ -29254,23 +31276,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FsType, nil + return obj.IPAddr, 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_K8s__io___api___core___v1__CSIPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNKloudliteClusterLocalDevice_ipAddr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", + Object: "GlobalVPNKloudliteClusterLocalDevice", Field: field, IsMethod: false, IsResolver: false, @@ -29281,8 +31306,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersisten return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeExpandSecretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeExpandSecretRef(ctx, field) +func (ec *executionContext) _GlobalVPNKloudliteClusterLocalDevice_name(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNKloudliteClusterLocalDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNKloudliteClusterLocalDevice_name(ctx, field) if err != nil { return graphql.Null } @@ -29295,41 +31320,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NodeExpandSecretRef, 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.(*model.K8sIoAPICoreV1SecretReference) + res := resTmp.(string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeExpandSecretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNKloudliteClusterLocalDevice_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", + Object: "GlobalVPNKloudliteClusterLocalDevice", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) - case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_nodePublishSecretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodePublishSecretRef(ctx, field) +func (ec *executionContext) _GlobalVPNKloudliteGatewayDevice_ipAddr(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNKloudliteGatewayDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNKloudliteGatewayDevice_ipAddr(ctx, field) if err != nil { return graphql.Null } @@ -29342,41 +31364,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NodePublishSecretRef, nil + return obj.IPAddr, 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.K8sIoAPICoreV1SecretReference) + res := resTmp.(string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodePublishSecretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNKloudliteGatewayDevice_ipAddr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", + Object: "GlobalVPNKloudliteGatewayDevice", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) - case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeStageSecretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeStageSecretRef(ctx, field) +func (ec *executionContext) _GlobalVPNKloudliteGatewayDevice_name(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNKloudliteGatewayDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNKloudliteGatewayDevice_name(ctx, field) if err != nil { return graphql.Null } @@ -29389,41 +31408,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NodeStageSecretRef, 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.(*model.K8sIoAPICoreV1SecretReference) + res := resTmp.(string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeStageSecretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNKloudliteGatewayDevice_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", + Object: "GlobalVPNKloudliteGatewayDevice", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) - case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _GlobalVPNPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNPaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -29436,35 +31452,44 @@ func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, 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.(*bool) + res := resTmp.([]*model.GlobalVPNEdge) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNGlobalVPNEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGlobalVPNEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNPaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", + Object: "GlobalVPNPaginatedRecords", 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") + switch field.Name { + case "cursor": + return ec.fieldContext_GlobalVPNEdge_cursor(ctx, field) + case "node": + return ec.fieldContext_GlobalVPNEdge_node(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPNEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeAttributes(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeAttributes(ctx, field) +func (ec *executionContext) _GlobalVPNPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNPaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -29477,35 +31502,48 @@ func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeAttributes, 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.(map[string]interface{}) + res := resTmp.(*model.PageInfo) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeAttributes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNPaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", + Object: "GlobalVPNPaginatedRecords", 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") + switch field.Name { + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPrevPage": + return ec.fieldContext_PageInfo_hasPrevPage(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) _K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeHandle(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeHandle(ctx, field) +func (ec *executionContext) _GlobalVPNPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.GlobalVPNPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GlobalVPNPaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -29518,7 +31556,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeHandle, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -29530,26 +31568,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSourc } 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_K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeHandle(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GlobalVPNPaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", + Object: "GlobalVPNPaginatedRecords", 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) _K8s__io___api___core___v1__CephFSPersistentVolumeSource_monitors(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CephFSPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_monitors(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AWSElasticBlockStoreVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -29562,26 +31600,23 @@ func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSo }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Monitors, nil + return obj.FsType, 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_K8s__io___api___core___v1__CephFSPersistentVolumeSource_monitors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CephFSPersistentVolumeSource", + Object: "K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -29592,8 +31627,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersis return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSource_path(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CephFSPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_path(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_partition(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AWSElasticBlockStoreVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_partition(ctx, field) if err != nil { return graphql.Null } @@ -29606,7 +31641,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSo }() 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.Partition, nil }) if err != nil { ec.Error(ctx, err) @@ -29615,26 +31650,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSo 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_K8s__io___api___core___v1__CephFSPersistentVolumeSource_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_partition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CephFSPersistentVolumeSource", + Object: "K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource", 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) _K8s__io___api___core___v1__CephFSPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CephFSPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AWSElasticBlockStoreVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -29661,9 +31696,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSo return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CephFSPersistentVolumeSource", + Object: "K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -29674,8 +31709,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersis return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretFile(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CephFSPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretFile(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_volumeID(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AWSElasticBlockStoreVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_volumeID(ctx, field) if err != nil { return graphql.Null } @@ -29688,7 +31723,51 @@ func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSo }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecretFile, nil + return obj.VolumeID, 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_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_volumeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource", + 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) _K8s__io___api___core___v1__AzureDiskVolumeSource_cachingMode(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_cachingMode(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.CachingMode, nil }) if err != nil { ec.Error(ctx, err) @@ -29702,9 +31781,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSo return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_cachingMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CephFSPersistentVolumeSource", + Object: "K8s__io___api___core___v1__AzureDiskVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -29715,8 +31794,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersis return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CephFSPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretRef(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_diskName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_diskName(ctx, field) if err != nil { return graphql.Null } @@ -29729,41 +31808,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSo }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecretRef, nil + return obj.DiskName, 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.K8sIoAPICoreV1SecretReference) + res := resTmp.(string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_diskName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CephFSPersistentVolumeSource", + Object: "K8s__io___api___core___v1__AzureDiskVolumeSource", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) - case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSource_user(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CephFSPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_user(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_diskURI(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_diskURI(ctx, field) if err != nil { return graphql.Null } @@ -29776,23 +31852,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSo }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User, nil + return obj.DiskURI, 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_K8s__io___api___core___v1__CephFSPersistentVolumeSource_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_diskURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CephFSPersistentVolumeSource", + Object: "K8s__io___api___core___v1__AzureDiskVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -29803,8 +31882,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersis return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CinderPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_fsType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -29831,9 +31910,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSo return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CinderPersistentVolumeSource", + Object: "K8s__io___api___core___v1__AzureDiskVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -29844,8 +31923,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CinderPersis return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CinderPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_kind(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_kind(ctx, field) if err != nil { return graphql.Null } @@ -29858,7 +31937,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSo }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, nil + return obj.Kind, nil }) if err != nil { ec.Error(ctx, err) @@ -29867,26 +31946,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSo 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_K8s__io___api___core___v1__CinderPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CinderPersistentVolumeSource", + Object: "K8s__io___api___core___v1__AzureDiskVolumeSource", 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) _K8s__io___api___core___v1__CinderPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CinderPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_secretRef(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AzureDiskVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -29899,7 +31978,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSo }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecretRef, nil + return obj.ReadOnly, nil }) if err != nil { ec.Error(ctx, err) @@ -29908,32 +31987,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSo if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1SecretReference) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CinderPersistentVolumeSource", + Object: "K8s__io___api___core___v1__AzureDiskVolumeSource", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) - case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSource_volumeID(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CinderPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_volumeID(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureFilePersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -29946,38 +32019,35 @@ func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSo }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeID, nil + return obj.ReadOnly, 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_K8s__io___api___core___v1__CinderPersistentVolumeSource_volumeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__CinderPersistentVolumeSource", + Object: "K8s__io___api___core___v1__AzureFilePersistentVolumeSource", 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) _K8s__io___api___core___v1__FCVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FCVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_fsType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureFilePersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretName(ctx, field) if err != nil { return graphql.Null } @@ -29990,23 +32060,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_fsType(ct }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FsType, nil + return obj.SecretName, 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_K8s__io___api___core___v1__FCVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__FCVolumeSource", + Object: "K8s__io___api___core___v1__AzureFilePersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -30017,8 +32090,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FCVolumeSour return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_lun(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FCVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_lun(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretNamespace(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureFilePersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretNamespace(ctx, field) if err != nil { return graphql.Null } @@ -30031,7 +32104,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_lun(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Lun, nil + return obj.SecretNamespace, nil }) if err != nil { ec.Error(ctx, err) @@ -30040,26 +32113,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_lun(ctx c 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_K8s__io___api___core___v1__FCVolumeSource_lun(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretNamespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__FCVolumeSource", + Object: "K8s__io___api___core___v1__AzureFilePersistentVolumeSource", 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) _K8s__io___api___core___v1__FCVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FCVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__AzureFilePersistentVolumeSource_shareName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1AzureFilePersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_shareName(ctx, field) if err != nil { return graphql.Null } @@ -30072,35 +32145,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_readOnly( }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, nil + return obj.ShareName, 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.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FCVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_shareName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__FCVolumeSource", + Object: "K8s__io___api___core___v1__AzureFilePersistentVolumeSource", 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) _K8s__io___api___core___v1__FCVolumeSource_targetWWNs(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FCVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_targetWWNs(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerExpandSecretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerExpandSecretRef(ctx, field) if err != nil { return graphql.Null } @@ -30113,7 +32189,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_targetWWN }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TargetWWNs, nil + return obj.ControllerExpandSecretRef, nil }) if err != nil { ec.Error(ctx, err) @@ -30122,26 +32198,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_targetWWN if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*model.K8sIoAPICoreV1SecretReference) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FCVolumeSource_targetWWNs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerExpandSecretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__FCVolumeSource", + Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) + case "namespace": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_wwids(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FCVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_wwids(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerPublishSecretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerPublishSecretRef(ctx, field) if err != nil { return graphql.Null } @@ -30154,7 +32236,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_wwids(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Wwids, nil + return obj.ControllerPublishSecretRef, nil }) if err != nil { ec.Error(ctx, err) @@ -30163,26 +32245,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_wwids(ctx if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*model.K8sIoAPICoreV1SecretReference) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FCVolumeSource_wwids(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerPublishSecretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__FCVolumeSource", + Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) + case "namespace": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSource_driver(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlexPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_driver(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_driver(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_driver(ctx, field) if err != nil { return graphql.Null } @@ -30212,9 +32300,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSour return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_driver(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_driver(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__FlexPersistentVolumeSource", + Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -30225,8 +32313,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersiste return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlexPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_fsType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -30253,9 +32341,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSour return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__FlexPersistentVolumeSource", + Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -30266,8 +32354,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersiste return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSource_options(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlexPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_options(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeExpandSecretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeExpandSecretRef(ctx, field) if err != nil { return graphql.Null } @@ -30280,7 +32368,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSour }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Options, nil + return obj.NodeExpandSecretRef, nil }) if err != nil { ec.Error(ctx, err) @@ -30289,26 +32377,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSour if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(*model.K8sIoAPICoreV1SecretReference) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_options(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeExpandSecretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__FlexPersistentVolumeSource", + Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", 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") + switch field.Name { + case "name": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_name(ctx, field) + case "namespace": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlexPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_nodePublishSecretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodePublishSecretRef(ctx, field) if err != nil { return graphql.Null } @@ -30321,7 +32415,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSour }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, nil + return obj.NodePublishSecretRef, nil }) if err != nil { ec.Error(ctx, err) @@ -30330,26 +32424,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSour if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*model.K8sIoAPICoreV1SecretReference) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodePublishSecretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__FlexPersistentVolumeSource", + Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", 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") + switch field.Name { + case "name": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_name(ctx, field) + case "namespace": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlexPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_secretRef(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeStageSecretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeStageSecretRef(ctx, field) if err != nil { return graphql.Null } @@ -30362,7 +32462,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSour }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecretRef, nil + return obj.NodeStageSecretRef, nil }) if err != nil { ec.Error(ctx, err) @@ -30376,9 +32476,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSour return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeStageSecretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__FlexPersistentVolumeSource", + Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -30395,8 +32495,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersiste return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__FlockerVolumeSource_datasetName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlockerVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__FlockerVolumeSource_datasetName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -30409,7 +32509,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__FlockerVolumeSource_data }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DatasetName, nil + return obj.ReadOnly, nil }) if err != nil { ec.Error(ctx, err) @@ -30418,26 +32518,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__FlockerVolumeSource_data 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_K8s__io___api___core___v1__FlockerVolumeSource_datasetName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__FlockerVolumeSource", + Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", 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) _K8s__io___api___core___v1__FlockerVolumeSource_datasetUUID(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlockerVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__FlockerVolumeSource_datasetUUID(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeAttributes(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeAttributes(ctx, field) if err != nil { return graphql.Null } @@ -30450,7 +32550,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__FlockerVolumeSource_data }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DatasetUUID, nil + return obj.VolumeAttributes, nil }) if err != nil { ec.Error(ctx, err) @@ -30459,26 +32559,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__FlockerVolumeSource_data 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_K8s__io___api___core___v1__FlockerVolumeSource_datasetUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeAttributes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__FlockerVolumeSource", + Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", 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) _K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GCEPersistentDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_fsType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeHandle(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeHandle(ctx, field) if err != nil { return graphql.Null } @@ -30491,23 +32591,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__GCEPersistentDiskVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FsType, nil + return obj.VolumeHandle, 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_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeHandle(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__GCEPersistentDiskVolumeSource", + Object: "K8s__io___api___core___v1__CSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -30518,8 +32621,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GCEPersisten return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_partition(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GCEPersistentDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_partition(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSource_monitors(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CephFSPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_monitors(ctx, field) if err != nil { return graphql.Null } @@ -30532,35 +32635,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__GCEPersistentDiskVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Partition, nil + return obj.Monitors, 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.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_partition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_monitors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__GCEPersistentDiskVolumeSource", + Object: "K8s__io___api___core___v1__CephFSPersistentVolumeSource", 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) _K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_pdName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GCEPersistentDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_pdName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSource_path(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CephFSPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_path(ctx, field) if err != nil { return graphql.Null } @@ -30573,26 +32679,23 @@ func (ec *executionContext) _K8s__io___api___core___v1__GCEPersistentDiskVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PdName, nil + return obj.Path, 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_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_pdName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__GCEPersistentDiskVolumeSource", + Object: "K8s__io___api___core___v1__CephFSPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -30603,8 +32706,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GCEPersisten return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GCEPersistentDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CephFSPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -30631,9 +32734,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__GCEPersistentDiskVolumeS return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__GCEPersistentDiskVolumeSource", + Object: "K8s__io___api___core___v1__CephFSPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -30644,52 +32747,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GCEPersisten return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpoints(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GlusterfsPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpoints(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.Endpoints, 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_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpoints(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__GlusterfsPersistentVolumeSource", - 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) _K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpointsNamespace(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GlusterfsPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpointsNamespace(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretFile(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CephFSPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretFile(ctx, field) if err != nil { return graphql.Null } @@ -30702,7 +32761,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__GlusterfsPersistentVolum }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EndpointsNamespace, nil + return obj.SecretFile, nil }) if err != nil { ec.Error(ctx, err) @@ -30716,9 +32775,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__GlusterfsPersistentVolum return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpointsNamespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__GlusterfsPersistentVolumeSource", + Object: "K8s__io___api___core___v1__CephFSPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -30729,8 +32788,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GlusterfsPer return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_path(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GlusterfsPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_path(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CephFSPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretRef(ctx, field) if err != nil { return graphql.Null } @@ -30743,38 +32802,41 @@ func (ec *executionContext) _K8s__io___api___core___v1__GlusterfsPersistentVolum }() 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.SecretRef, 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.K8sIoAPICoreV1SecretReference) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__GlusterfsPersistentVolumeSource", + Object: "K8s__io___api___core___v1__CephFSPersistentVolumeSource", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) + case "namespace": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GlusterfsPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CephFSPersistentVolumeSource_user(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CephFSPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_user(ctx, field) if err != nil { return graphql.Null } @@ -30787,7 +32849,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__GlusterfsPersistentVolum }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, nil + return obj.User, nil }) if err != nil { ec.Error(ctx, err) @@ -30796,26 +32858,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__GlusterfsPersistentVolum 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_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__GlusterfsPersistentVolumeSource", + Object: "K8s__io___api___core___v1__CephFSPersistentVolumeSource", 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) _K8s__io___api___core___v1__HostPathVolumeSource_path(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1HostPathVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__HostPathVolumeSource_path(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CinderPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -30828,26 +32890,23 @@ func (ec *executionContext) _K8s__io___api___core___v1__HostPathVolumeSource_pat }() 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.FsType, 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_K8s__io___api___core___v1__HostPathVolumeSource_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__HostPathVolumeSource", + Object: "K8s__io___api___core___v1__CinderPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -30858,8 +32917,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__HostPathVolu return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__HostPathVolumeSource_type(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1HostPathVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__HostPathVolumeSource_type(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CinderPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -30872,7 +32931,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__HostPathVolumeSource_typ }() 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.ReadOnly, nil }) if err != nil { ec.Error(ctx, err) @@ -30881,26 +32940,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__HostPathVolumeSource_typ 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_K8s__io___api___core___v1__HostPathVolumeSource_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__HostPathVolumeSource", + Object: "K8s__io___api___core___v1__CinderPersistentVolumeSource", 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) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthDiscovery(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthDiscovery(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CinderPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_secretRef(ctx, field) if err != nil { return graphql.Null } @@ -30913,7 +32972,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ChapAuthDiscovery, nil + return obj.SecretRef, nil }) if err != nil { ec.Error(ctx, err) @@ -30922,26 +32981,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*model.K8sIoAPICoreV1SecretReference) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthDiscovery(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", + Object: "K8s__io___api___core___v1__CinderPersistentVolumeSource", 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") + switch field.Name { + case "name": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_name(ctx, field) + case "namespace": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthSession(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthSession(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__CinderPersistentVolumeSource_volumeID(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1CinderPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_volumeID(ctx, field) if err != nil { return graphql.Null } @@ -30954,35 +33019,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ChapAuthSession, nil + return obj.VolumeID, 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.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthSession(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_volumeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", + Object: "K8s__io___api___core___v1__CinderPersistentVolumeSource", 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) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_fsType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FCVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -31009,9 +33077,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FCVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", + Object: "K8s__io___api___core___v1__FCVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -31022,8 +33090,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersist return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_initiatorName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_initiatorName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_lun(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FCVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_lun(ctx, field) if err != nil { return graphql.Null } @@ -31036,7 +33104,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InitiatorName, nil + return obj.Lun, nil }) if err != nil { ec.Error(ctx, err) @@ -31045,26 +33113,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou 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_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_initiatorName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FCVolumeSource_lun(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", + Object: "K8s__io___api___core___v1__FCVolumeSource", 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) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iqn(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iqn(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FCVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -31077,26 +33145,64 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Iqn, nil + return obj.ReadOnly, 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.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FCVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___api___core___v1__FCVolumeSource", + 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) _K8s__io___api___core___v1__FCVolumeSource_targetWWNs(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FCVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_targetWWNs(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.TargetWWNs, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(string) + if resTmp == nil { + return graphql.Null + } + 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_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iqn(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FCVolumeSource_targetWWNs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", + Object: "K8s__io___api___core___v1__FCVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -31107,8 +33213,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersist return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iscsiInterface(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iscsiInterface(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__FCVolumeSource_wwids(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FCVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_wwids(ctx, field) if err != nil { return graphql.Null } @@ -31121,7 +33227,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IscsiInterface, nil + return obj.Wwids, nil }) if err != nil { ec.Error(ctx, err) @@ -31130,14 +33236,14 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou 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_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iscsiInterface(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FCVolumeSource_wwids(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", + Object: "K8s__io___api___core___v1__FCVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -31148,8 +33254,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersist return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_lun(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_lun(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSource_driver(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlexPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_driver(ctx, field) if err != nil { return graphql.Null } @@ -31162,7 +33268,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Lun, nil + return obj.Driver, nil }) if err != nil { ec.Error(ctx, err) @@ -31174,26 +33280,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou } 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_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_lun(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_driver(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", + Object: "K8s__io___api___core___v1__FlexPersistentVolumeSource", 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) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_portals(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_portals(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlexPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -31206,7 +33312,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Portals, nil + return obj.FsType, nil }) if err != nil { ec.Error(ctx, err) @@ -31215,14 +33321,14 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou 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_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_portals(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", + Object: "K8s__io___api___core___v1__FlexPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -31233,8 +33339,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersist return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSource_options(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlexPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_options(ctx, field) if err != nil { return graphql.Null } @@ -31247,7 +33353,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, nil + return obj.Options, nil }) if err != nil { ec.Error(ctx, err) @@ -31256,26 +33362,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_options(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", + Object: "K8s__io___api___core___v1__FlexPersistentVolumeSource", 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 Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_secretRef(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlexPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -31288,7 +33394,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecretRef, nil + return obj.ReadOnly, nil }) if err != nil { ec.Error(ctx, err) @@ -31297,32 +33403,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1SecretReference) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", + Object: "K8s__io___api___core___v1__FlexPersistentVolumeSource", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) - case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_targetPortal(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_targetPortal(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__FlexPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlexPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_secretRef(ctx, field) if err != nil { return graphql.Null } @@ -31335,38 +33435,41 @@ func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSou }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TargetPortal, nil + return obj.SecretRef, 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.K8sIoAPICoreV1SecretReference) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_targetPortal(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", + Object: "K8s__io___api___core___v1__FlexPersistentVolumeSource", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) + case "namespace": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__LocalVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1LocalVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__LocalVolumeSource_fsType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__FlockerVolumeSource_datasetName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlockerVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__FlockerVolumeSource_datasetName(ctx, field) if err != nil { return graphql.Null } @@ -31379,7 +33482,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__LocalVolumeSource_fsType }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FsType, nil + return obj.DatasetName, nil }) if err != nil { ec.Error(ctx, err) @@ -31393,9 +33496,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__LocalVolumeSource_fsType return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__LocalVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlockerVolumeSource_datasetName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__LocalVolumeSource", + Object: "K8s__io___api___core___v1__FlockerVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -31406,8 +33509,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__LocalVolumeS return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__LocalVolumeSource_path(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1LocalVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__LocalVolumeSource_path(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__FlockerVolumeSource_datasetUUID(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1FlockerVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__FlockerVolumeSource_datasetUUID(ctx, field) if err != nil { return graphql.Null } @@ -31420,26 +33523,23 @@ func (ec *executionContext) _K8s__io___api___core___v1__LocalVolumeSource_path(c }() 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.DatasetUUID, 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_K8s__io___api___core___v1__LocalVolumeSource_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__FlockerVolumeSource_datasetUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__LocalVolumeSource", + Object: "K8s__io___api___core___v1__FlockerVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -31450,8 +33550,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__LocalVolumeS return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ModifyVolumeStatus_status(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ModifyVolumeStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ModifyVolumeStatus_status(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GCEPersistentDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -31464,38 +33564,35 @@ func (ec *executionContext) _K8s__io___api___core___v1__ModifyVolumeStatus_statu }() 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.FsType, 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.K8sIoAPICoreV1PersistentVolumeClaimModifyVolumeStatus) + res := resTmp.(*string) fc.Result = res - return ec.marshalNK8s__io___api___core___v1__PersistentVolumeClaimModifyVolumeStatus2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeClaimModifyVolumeStatus(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ModifyVolumeStatus_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ModifyVolumeStatus", + Object: "K8s__io___api___core___v1__GCEPersistentDiskVolumeSource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type K8s__io___api___core___v1__PersistentVolumeClaimModifyVolumeStatus does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ModifyVolumeStatus_targetVolumeAttributesClassName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ModifyVolumeStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ModifyVolumeStatus_targetVolumeAttributesClassName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_partition(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GCEPersistentDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_partition(ctx, field) if err != nil { return graphql.Null } @@ -31508,7 +33605,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ModifyVolumeStatus_targe }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TargetVolumeAttributesClassName, nil + return obj.Partition, nil }) if err != nil { ec.Error(ctx, err) @@ -31517,26 +33614,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ModifyVolumeStatus_targe 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_K8s__io___api___core___v1__ModifyVolumeStatus_targetVolumeAttributesClassName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_partition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ModifyVolumeStatus", + Object: "K8s__io___api___core___v1__GCEPersistentDiskVolumeSource", 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) _K8s__io___api___core___v1__NFSVolumeSource_path(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NFSVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NFSVolumeSource_path(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_pdName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GCEPersistentDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_pdName(ctx, field) if err != nil { return graphql.Null } @@ -31549,7 +33646,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__NFSVolumeSource_path(ctx }() 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.PdName, nil }) if err != nil { ec.Error(ctx, err) @@ -31566,9 +33663,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__NFSVolumeSource_path(ctx return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NFSVolumeSource_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_pdName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NFSVolumeSource", + Object: "K8s__io___api___core___v1__GCEPersistentDiskVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -31579,8 +33676,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NFSVolumeSou return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NFSVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NFSVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NFSVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GCEPersistentDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -31607,9 +33704,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__NFSVolumeSource_readOnly return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NFSVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NFSVolumeSource", + Object: "K8s__io___api___core___v1__GCEPersistentDiskVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -31620,8 +33717,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NFSVolumeSou return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NFSVolumeSource_server(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NFSVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NFSVolumeSource_server(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpoints(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GlusterfsPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpoints(ctx, field) if err != nil { return graphql.Null } @@ -31634,7 +33731,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__NFSVolumeSource_server(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Server, nil + return obj.Endpoints, nil }) if err != nil { ec.Error(ctx, err) @@ -31651,9 +33748,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__NFSVolumeSource_server(c return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NFSVolumeSource_server(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpoints(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NFSVolumeSource", + Object: "K8s__io___api___core___v1__GlusterfsPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -31664,8 +33761,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NFSVolumeSou return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_lastTransitionTime(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_lastTransitionTime(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpointsNamespace(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GlusterfsPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpointsNamespace(ctx, field) if err != nil { return graphql.Null } @@ -31678,7 +33775,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_lastT }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastTransitionTime, nil + return obj.EndpointsNamespace, nil }) if err != nil { ec.Error(ctx, err) @@ -31689,24 +33786,24 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_lastT } res := resTmp.(*string) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceCondition_lastTransitionTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpointsNamespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NamespaceCondition", + Object: "K8s__io___api___core___v1__GlusterfsPersistentVolumeSource", 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) _K8s__io___api___core___v1__NamespaceCondition_message(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_message(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_path(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GlusterfsPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_path(ctx, field) if err != nil { return graphql.Null } @@ -31719,23 +33816,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_messa }() 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.Path, 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_K8s__io___api___core___v1__NamespaceCondition_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NamespaceCondition", + Object: "K8s__io___api___core___v1__GlusterfsPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -31746,8 +33846,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceCon return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_reason(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_reason(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1GlusterfsPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -31760,7 +33860,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_reaso }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.ReadOnly, nil }) if err != nil { ec.Error(ctx, err) @@ -31769,26 +33869,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_reaso 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_K8s__io___api___core___v1__NamespaceCondition_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NamespaceCondition", + Object: "K8s__io___api___core___v1__GlusterfsPersistentVolumeSource", 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) _K8s__io___api___core___v1__NamespaceCondition_status(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_status(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__HostPathVolumeSource_path(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1HostPathVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__HostPathVolumeSource_path(ctx, field) if err != nil { return graphql.Null } @@ -31801,7 +33901,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_statu }() 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.Path, nil }) if err != nil { ec.Error(ctx, err) @@ -31813,26 +33913,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_statu } return graphql.Null } - res := resTmp.(model.K8sIoAPICoreV1ConditionStatus) + res := resTmp.(string) fc.Result = res - return ec.marshalNK8s__io___api___core___v1__ConditionStatus2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ConditionStatus(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceCondition_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__HostPathVolumeSource_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NamespaceCondition", + Object: "K8s__io___api___core___v1__HostPathVolumeSource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type K8s__io___api___core___v1__ConditionStatus does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_type(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_type(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__HostPathVolumeSource_type(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1HostPathVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__HostPathVolumeSource_type(ctx, field) if err != nil { return graphql.Null } @@ -31852,31 +33952,28 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_type( return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(model.K8sIoAPICoreV1NamespaceConditionType) + res := resTmp.(*string) fc.Result = res - return ec.marshalNK8s__io___api___core___v1__NamespaceConditionType2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NamespaceConditionType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceCondition_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__HostPathVolumeSource_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NamespaceCondition", + Object: "K8s__io___api___core___v1__HostPathVolumeSource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type K8s__io___api___core___v1__NamespaceConditionType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NamespaceSpec_finalizers(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceSpec_finalizers(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthDiscovery(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthDiscovery(ctx, field) if err != nil { return graphql.Null } @@ -31889,7 +33986,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceSpec_finalizers }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Finalizers, nil + return obj.ChapAuthDiscovery, nil }) if err != nil { ec.Error(ctx, err) @@ -31898,26 +33995,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceSpec_finalizers 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_K8s__io___api___core___v1__NamespaceSpec_finalizers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthDiscovery(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NamespaceSpec", + Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", 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) _K8s__io___api___core___v1__NamespaceStatus_conditions(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceStatus_conditions(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthSession(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthSession(ctx, field) if err != nil { return graphql.Null } @@ -31930,7 +34027,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceStatus_conditio }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Conditions, nil + return obj.ChapAuthSession, nil }) if err != nil { ec.Error(ctx, err) @@ -31939,38 +34036,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceStatus_conditio if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.K8sIoAPICoreV1NamespaceCondition) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__NamespaceCondition2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NamespaceConditionᚄ(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceStatus_conditions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthSession(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NamespaceStatus", + Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "lastTransitionTime": - return ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_lastTransitionTime(ctx, field) - case "message": - return ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_message(ctx, field) - case "reason": - return ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_reason(ctx, field) - case "status": - return ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_status(ctx, field) - case "type": - return ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_type(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NamespaceCondition", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NamespaceStatus_phase(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceStatus_phase(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -31983,7 +34068,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceStatus_phase(ct }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Phase, nil + return obj.FsType, nil }) if err != nil { ec.Error(ctx, err) @@ -31992,26 +34077,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__NamespaceStatus_phase(ct if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1NamespacePhase) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__NamespacePhase2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NamespacePhase(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceStatus_phase(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NamespaceStatus", + Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type K8s__io___api___core___v1__NamespacePhase does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NodeSelector_nodeSelectorTerms(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NodeSelector) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NodeSelector_nodeSelectorTerms(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_initiatorName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_initiatorName(ctx, field) if err != nil { return graphql.Null } @@ -32024,44 +34109,35 @@ func (ec *executionContext) _K8s__io___api___core___v1__NodeSelector_nodeSelecto }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NodeSelectorTerms, nil + return obj.InitiatorName, 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.K8sIoAPICoreV1NodeSelectorTerm) + res := resTmp.(*string) fc.Result = res - return ec.marshalNK8s__io___api___core___v1__NodeSelectorTerm2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NodeSelectorTermᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelector_nodeSelectorTerms(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_initiatorName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NodeSelector", + Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "matchExpressions": - return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorTerm_matchExpressions(ctx, field) - case "matchFields": - return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorTerm_matchFields(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NodeSelectorTerm", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorRequirement_key(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NodeSelectorRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_key(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iqn(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iqn(ctx, field) if err != nil { return graphql.Null } @@ -32074,7 +34150,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorRequirement_ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Key, nil + return obj.Iqn, nil }) if err != nil { ec.Error(ctx, err) @@ -32091,9 +34167,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorRequirement_ return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iqn(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NodeSelectorRequirement", + Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -32104,8 +34180,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelector return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorRequirement_operator(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NodeSelectorRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_operator(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iscsiInterface(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iscsiInterface(ctx, field) if err != nil { return graphql.Null } @@ -32118,7 +34194,48 @@ func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorRequirement_ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operator, nil + return obj.IscsiInterface, 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_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iscsiInterface(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", + 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) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_lun(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_lun(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Lun, nil }) if err != nil { ec.Error(ctx, err) @@ -32130,26 +34247,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorRequirement_ } return graphql.Null } - res := resTmp.(model.K8sIoAPICoreV1NodeSelectorOperator) + res := resTmp.(int) fc.Result = res - return ec.marshalNK8s__io___api___core___v1__NodeSelectorOperator2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NodeSelectorOperator(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_operator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_lun(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NodeSelectorRequirement", + Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type K8s__io___api___core___v1__NodeSelectorOperator does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorRequirement_values(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NodeSelectorRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_values(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_portals(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_portals(ctx, field) if err != nil { return graphql.Null } @@ -32162,7 +34279,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorRequirement_ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Values, nil + return obj.Portals, nil }) if err != nil { ec.Error(ctx, err) @@ -32176,9 +34293,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorRequirement_ return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_values(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_portals(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NodeSelectorRequirement", + Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -32189,8 +34306,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelector return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorTerm_matchExpressions(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NodeSelectorTerm) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NodeSelectorTerm_matchExpressions(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -32203,7 +34320,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorTerm_matchEx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MatchExpressions, nil + return obj.ReadOnly, nil }) if err != nil { ec.Error(ctx, err) @@ -32212,34 +34329,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorTerm_matchEx if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.K8sIoAPICoreV1NodeSelectorRequirement) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__NodeSelectorRequirement2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NodeSelectorRequirementᚄ(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelectorTerm_matchExpressions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NodeSelectorTerm", + Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "key": - return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_key(ctx, field) - case "operator": - return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_operator(ctx, field) - case "values": - return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NodeSelectorRequirement", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorTerm_matchFields(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NodeSelectorTerm) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__NodeSelectorTerm_matchFields(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_secretRef(ctx, field) if err != nil { return graphql.Null } @@ -32252,7 +34361,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorTerm_matchFi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MatchFields, nil + return obj.SecretRef, nil }) if err != nil { ec.Error(ctx, err) @@ -32261,34 +34370,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorTerm_matchFi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.K8sIoAPICoreV1NodeSelectorRequirement) + res := resTmp.(*model.K8sIoAPICoreV1SecretReference) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__NodeSelectorRequirement2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NodeSelectorRequirementᚄ(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelectorTerm_matchFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__NodeSelectorTerm", + Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "key": - return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_key(ctx, field) - case "operator": - return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_operator(ctx, field) - case "values": - return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_values(ctx, field) + case "name": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_name(ctx, field) + case "namespace": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NodeSelectorRequirement", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_apiVersion(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ISCSIPersistentVolumeSource_targetPortal(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_targetPortal(ctx, field) if err != nil { return graphql.Null } @@ -32301,23 +34408,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_apiVersi }() 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.TargetPortal, 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_K8s__io___api___core___v1__ObjectReference_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_targetPortal(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ObjectReference", + Object: "K8s__io___api___core___v1__ISCSIPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -32328,8 +34438,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectRefere return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_fieldPath(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_fieldPath(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__LocalVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1LocalVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__LocalVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -32342,7 +34452,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_fieldPat }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FieldPath, nil + return obj.FsType, nil }) if err != nil { ec.Error(ctx, err) @@ -32356,9 +34466,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_fieldPat return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectReference_fieldPath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__LocalVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ObjectReference", + Object: "K8s__io___api___core___v1__LocalVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -32369,8 +34479,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectRefere return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_kind(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_kind(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__LocalVolumeSource_path(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1LocalVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__LocalVolumeSource_path(ctx, field) if err != nil { return graphql.Null } @@ -32383,23 +34493,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_kind(ctx }() 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.Path, 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_K8s__io___api___core___v1__ObjectReference_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__LocalVolumeSource_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ObjectReference", + Object: "K8s__io___api___core___v1__LocalVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -32410,8 +34523,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectRefere return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_name(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_name(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ModifyVolumeStatus_status(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ModifyVolumeStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ModifyVolumeStatus_status(ctx, field) if err != nil { return graphql.Null } @@ -32424,35 +34537,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_name(ctx }() 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.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.(*string) + res := resTmp.(model.K8sIoAPICoreV1PersistentVolumeClaimModifyVolumeStatus) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNK8s__io___api___core___v1__PersistentVolumeClaimModifyVolumeStatus2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeClaimModifyVolumeStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectReference_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ModifyVolumeStatus_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ObjectReference", + Object: "K8s__io___api___core___v1__ModifyVolumeStatus", 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 K8s__io___api___core___v1__PersistentVolumeClaimModifyVolumeStatus does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_namespace(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_namespace(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ModifyVolumeStatus_targetVolumeAttributesClassName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ModifyVolumeStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ModifyVolumeStatus_targetVolumeAttributesClassName(ctx, field) if err != nil { return graphql.Null } @@ -32465,7 +34581,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_namespac }() 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.TargetVolumeAttributesClassName, nil }) if err != nil { ec.Error(ctx, err) @@ -32479,9 +34595,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_namespac return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectReference_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ModifyVolumeStatus_targetVolumeAttributesClassName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ObjectReference", + Object: "K8s__io___api___core___v1__ModifyVolumeStatus", Field: field, IsMethod: false, IsResolver: false, @@ -32492,8 +34608,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectRefere return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_resourceVersion(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NFSVolumeSource_path(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NFSVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NFSVolumeSource_path(ctx, field) if err != nil { return graphql.Null } @@ -32506,23 +34622,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_resource }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceVersion, nil + return obj.Path, 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_K8s__io___api___core___v1__ObjectReference_resourceVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NFSVolumeSource_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ObjectReference", + Object: "K8s__io___api___core___v1__NFSVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -32533,8 +34652,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectRefere return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_uid(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_uid(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NFSVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NFSVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NFSVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -32547,7 +34666,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_uid(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UID, nil + return obj.ReadOnly, nil }) if err != nil { ec.Error(ctx, err) @@ -32556,26 +34675,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_uid(ctx 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_K8s__io___api___core___v1__ObjectReference_uid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NFSVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ObjectReference", + Object: "K8s__io___api___core___v1__NFSVolumeSource", 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) _K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastProbeTime(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastProbeTime(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NFSVolumeSource_server(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NFSVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NFSVolumeSource_server(ctx, field) if err != nil { return graphql.Null } @@ -32588,35 +34707,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCon }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastProbeTime, nil + return obj.Server, 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_K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastProbeTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NFSVolumeSource_server(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimCondition", + Object: "K8s__io___api___core___v1__NFSVolumeSource", 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) _K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastTransitionTime(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastTransitionTime(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_lastTransitionTime(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_lastTransitionTime(ctx, field) if err != nil { return graphql.Null } @@ -32643,9 +34765,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCon return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastTransitionTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceCondition_lastTransitionTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimCondition", + Object: "K8s__io___api___core___v1__NamespaceCondition", Field: field, IsMethod: false, IsResolver: false, @@ -32656,8 +34778,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCondition_message(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_message(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_message(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_message(ctx, field) if err != nil { return graphql.Null } @@ -32684,9 +34806,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCon return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceCondition_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimCondition", + Object: "K8s__io___api___core___v1__NamespaceCondition", Field: field, IsMethod: false, IsResolver: false, @@ -32697,8 +34819,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCondition_reason(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_reason(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_reason(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_reason(ctx, field) if err != nil { return graphql.Null } @@ -32725,9 +34847,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCon return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceCondition_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimCondition", + Object: "K8s__io___api___core___v1__NamespaceCondition", Field: field, IsMethod: false, IsResolver: false, @@ -32738,8 +34860,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCondition_status(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_status(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_status(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_status(ctx, field) if err != nil { return graphql.Null } @@ -32769,9 +34891,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCon return ec.marshalNK8s__io___api___core___v1__ConditionStatus2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ConditionStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceCondition_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimCondition", + Object: "K8s__io___api___core___v1__NamespaceCondition", Field: field, IsMethod: false, IsResolver: false, @@ -32782,8 +34904,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCondition_type(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_type(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NamespaceCondition_type(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_type(ctx, field) if err != nil { return graphql.Null } @@ -32808,26 +34930,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCon } return graphql.Null } - res := resTmp.(model.K8sIoAPICoreV1PersistentVolumeClaimConditionType) + res := resTmp.(model.K8sIoAPICoreV1NamespaceConditionType) fc.Result = res - return ec.marshalNK8s__io___api___core___v1__PersistentVolumeClaimConditionType2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeClaimConditionType(ctx, field.Selections, res) + return ec.marshalNK8s__io___api___core___v1__NamespaceConditionType2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NamespaceConditionType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceCondition_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimCondition", + Object: "K8s__io___api___core___v1__NamespaceCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type K8s__io___api___core___v1__PersistentVolumeClaimConditionType does not have child fields") + return nil, errors.New("field of type K8s__io___api___core___v1__NamespaceConditionType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_accessModes(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_accessModes(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NamespaceSpec_finalizers(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceSpec_finalizers(ctx, field) if err != nil { return graphql.Null } @@ -32840,7 +34962,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AccessModes, nil + return obj.Finalizers, nil }) if err != nil { ec.Error(ctx, err) @@ -32854,9 +34976,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_accessModes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceSpec_finalizers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", + Object: "K8s__io___api___core___v1__NamespaceSpec", Field: field, IsMethod: false, IsResolver: false, @@ -32867,8 +34989,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSource(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSource(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NamespaceStatus_conditions(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceStatus_conditions(ctx, field) if err != nil { return graphql.Null } @@ -32881,7 +35003,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DataSource, nil + return obj.Conditions, nil }) if err != nil { ec.Error(ctx, err) @@ -32890,34 +35012,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1TypedLocalObjectReference) + res := resTmp.([]*model.K8sIoAPICoreV1NamespaceCondition) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__TypedLocalObjectReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TypedLocalObjectReference(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__NamespaceCondition2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NamespaceConditionᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceStatus_conditions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", + Object: "K8s__io___api___core___v1__NamespaceStatus", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "apiGroup": - return ec.fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_apiGroup(ctx, field) - case "kind": - return ec.fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_kind(ctx, field) - case "name": - return ec.fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_name(ctx, field) + case "lastTransitionTime": + return ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_lastTransitionTime(ctx, field) + case "message": + return ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_message(ctx, field) + case "reason": + return ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_reason(ctx, field) + case "status": + return ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_status(ctx, field) + case "type": + return ec.fieldContext_K8s__io___api___core___v1__NamespaceCondition_type(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__TypedLocalObjectReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NamespaceCondition", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSourceRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSourceRef(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NamespaceStatus_phase(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NamespaceStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NamespaceStatus_phase(ctx, field) if err != nil { return graphql.Null } @@ -32930,7 +35056,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DataSourceRef, nil + return obj.Phase, nil }) if err != nil { ec.Error(ctx, err) @@ -32939,36 +35065,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1TypedObjectReference) + res := resTmp.(*model.K8sIoAPICoreV1NamespacePhase) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__TypedObjectReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TypedObjectReference(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__NamespacePhase2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NamespacePhase(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSourceRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NamespaceStatus_phase(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", + Object: "K8s__io___api___core___v1__NamespaceStatus", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "apiGroup": - return ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_apiGroup(ctx, field) - case "kind": - return ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_kind(ctx, field) - case "name": - return ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_name(ctx, field) - case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__TypedObjectReference", field.Name) + return nil, errors.New("field of type K8s__io___api___core___v1__NamespacePhase does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_resources(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_resources(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NodeSelector_nodeSelectorTerms(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NodeSelector) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NodeSelector_nodeSelectorTerms(ctx, field) if err != nil { return graphql.Null } @@ -32981,41 +35097,44 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe }() 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.NodeSelectorTerms, 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.K8sIoAPICoreV1VolumeResourceRequirements) + res := resTmp.([]*model.K8sIoAPICoreV1NodeSelectorTerm) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__VolumeResourceRequirements2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1VolumeResourceRequirements(ctx, field.Selections, res) + return ec.marshalNK8s__io___api___core___v1__NodeSelectorTerm2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NodeSelectorTermᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelector_nodeSelectorTerms(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", + Object: "K8s__io___api___core___v1__NodeSelector", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "limits": - return ec.fieldContext_K8s__io___api___core___v1__VolumeResourceRequirements_limits(ctx, field) - case "requests": - return ec.fieldContext_K8s__io___api___core___v1__VolumeResourceRequirements_requests(ctx, field) + case "matchExpressions": + return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorTerm_matchExpressions(ctx, field) + case "matchFields": + return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorTerm_matchFields(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__VolumeResourceRequirements", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NodeSelectorTerm", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_selector(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_selector(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorRequirement_key(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NodeSelectorRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_key(ctx, field) if err != nil { return graphql.Null } @@ -33028,41 +35147,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Selector, nil + return obj.Key, 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.K8sIoApimachineryPkgApisMetaV1LabelSelector) + res := resTmp.(string) fc.Result = res - return ec.marshalOK8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoApimachineryPkgApisMetaV1LabelSelector(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_selector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", + Object: "K8s__io___api___core___v1__NodeSelectorRequirement", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "matchExpressions": - return ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchExpressions(ctx, field) - case "matchLabels": - return ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchLabels(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_storageClassName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_storageClassName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorRequirement_operator(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NodeSelectorRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_operator(ctx, field) if err != nil { return graphql.Null } @@ -33075,35 +35191,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StorageClassName, nil + return obj.Operator, 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.K8sIoAPICoreV1NodeSelectorOperator) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNK8s__io___api___core___v1__NodeSelectorOperator2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NodeSelectorOperator(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_storageClassName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_operator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", + Object: "K8s__io___api___core___v1__NodeSelectorRequirement", 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 K8s__io___api___core___v1__NodeSelectorOperator does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeAttributesClassName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeAttributesClassName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorRequirement_values(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NodeSelectorRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_values(ctx, field) if err != nil { return graphql.Null } @@ -33116,7 +35235,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeAttributesClassName, nil + return obj.Values, nil }) if err != nil { ec.Error(ctx, err) @@ -33125,14 +35244,14 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe 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_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeAttributesClassName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_values(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", + Object: "K8s__io___api___core___v1__NodeSelectorRequirement", Field: field, IsMethod: false, IsResolver: false, @@ -33143,8 +35262,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeMode(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeMode(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorTerm_matchExpressions(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NodeSelectorTerm) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NodeSelectorTerm_matchExpressions(ctx, field) if err != nil { return graphql.Null } @@ -33157,7 +35276,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeMode, nil + return obj.MatchExpressions, nil }) if err != nil { ec.Error(ctx, err) @@ -33166,26 +35285,34 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.K8sIoAPICoreV1NodeSelectorRequirement) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__NodeSelectorRequirement2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NodeSelectorRequirementᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelectorTerm_matchExpressions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", + Object: "K8s__io___api___core___v1__NodeSelectorTerm", 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 "key": + return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_key(ctx, field) + case "operator": + return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_operator(ctx, field) + case "values": + return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_values(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NodeSelectorRequirement", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__NodeSelectorTerm_matchFields(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1NodeSelectorTerm) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__NodeSelectorTerm_matchFields(ctx, field) if err != nil { return graphql.Null } @@ -33198,7 +35325,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeName, nil + return obj.MatchFields, nil }) if err != nil { ec.Error(ctx, err) @@ -33207,26 +35334,34 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpe if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.K8sIoAPICoreV1NodeSelectorRequirement) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__NodeSelectorRequirement2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NodeSelectorRequirementᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__NodeSelectorTerm_matchFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", + Object: "K8s__io___api___core___v1__NodeSelectorTerm", 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 "key": + return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_key(ctx, field) + case "operator": + return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_operator(ctx, field) + case "values": + return ec.fieldContext_K8s__io___api___core___v1__NodeSelectorRequirement_values(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NodeSelectorRequirement", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_accessModes(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_accessModes(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -33239,7 +35374,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AccessModes, nil + return obj.APIVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -33248,14 +35383,14 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta 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_K8s__io___api___core___v1__PersistentVolumeClaimStatus_accessModes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectReference_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", + Object: "K8s__io___api___core___v1__ObjectReference", Field: field, IsMethod: false, IsResolver: false, @@ -33266,8 +35401,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResources(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResources(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_fieldPath(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_fieldPath(ctx, field) if err != nil { return graphql.Null } @@ -33280,7 +35415,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AllocatedResources, nil + return obj.FieldPath, nil }) if err != nil { ec.Error(ctx, err) @@ -33289,26 +35424,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta 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_K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectReference_fieldPath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", + Object: "K8s__io___api___core___v1__ObjectReference", 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) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResourceStatuses(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResourceStatuses(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_kind(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_kind(ctx, field) if err != nil { return graphql.Null } @@ -33321,7 +35456,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AllocatedResourceStatuses, nil + return obj.Kind, nil }) if err != nil { ec.Error(ctx, err) @@ -33330,26 +35465,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta 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_K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResourceStatuses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectReference_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", + Object: "K8s__io___api___core___v1__ObjectReference", 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) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_capacity(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_capacity(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_name(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_name(ctx, field) if err != nil { return graphql.Null } @@ -33362,7 +35497,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Capacity, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -33371,26 +35506,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta 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_K8s__io___api___core___v1__PersistentVolumeClaimStatus_capacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectReference_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", + Object: "K8s__io___api___core___v1__ObjectReference", 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) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_conditions(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_conditions(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_namespace(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_namespace(ctx, field) if err != nil { return graphql.Null } @@ -33403,7 +35538,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Conditions, nil + return obj.Namespace, nil }) if err != nil { ec.Error(ctx, err) @@ -33412,40 +35547,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.K8sIoAPICoreV1PersistentVolumeClaimCondition) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__PersistentVolumeClaimCondition2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeClaimConditionᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_conditions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectReference_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", + Object: "K8s__io___api___core___v1__ObjectReference", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "lastProbeTime": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastProbeTime(ctx, field) - case "lastTransitionTime": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastTransitionTime(ctx, field) - case "message": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_message(ctx, field) - case "reason": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_reason(ctx, field) - case "status": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_status(ctx, field) - case "type": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_type(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PersistentVolumeClaimCondition", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_currentVolumeAttributesClassName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_currentVolumeAttributesClassName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_resourceVersion(ctx, field) if err != nil { return graphql.Null } @@ -33458,7 +35579,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CurrentVolumeAttributesClassName, nil + return obj.ResourceVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -33472,9 +35593,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_currentVolumeAttributesClassName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectReference_resourceVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", + Object: "K8s__io___api___core___v1__ObjectReference", Field: field, IsMethod: false, IsResolver: false, @@ -33485,8 +35606,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_modifyVolumeStatus(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_modifyVolumeStatus(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ObjectReference_uid(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ObjectReference_uid(ctx, field) if err != nil { return graphql.Null } @@ -33499,7 +35620,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifyVolumeStatus, nil + return obj.UID, nil }) if err != nil { ec.Error(ctx, err) @@ -33508,32 +35629,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1ModifyVolumeStatus) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__ModifyVolumeStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ModifyVolumeStatus(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_modifyVolumeStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ObjectReference_uid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", + Object: "K8s__io___api___core___v1__ObjectReference", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "status": - return ec.fieldContext_K8s__io___api___core___v1__ModifyVolumeStatus_status(ctx, field) - case "targetVolumeAttributesClassName": - return ec.fieldContext_K8s__io___api___core___v1__ModifyVolumeStatus_targetVolumeAttributesClassName(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__ModifyVolumeStatus", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_phase(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_phase(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastProbeTime(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastProbeTime(ctx, field) if err != nil { return graphql.Null } @@ -33546,7 +35661,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Phase, nil + return obj.LastProbeTime, nil }) if err != nil { ec.Error(ctx, err) @@ -33555,26 +35670,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSta if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumeClaimPhase) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__PersistentVolumeClaimPhase2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeClaimPhase(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_phase(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastProbeTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type K8s__io___api___core___v1__PersistentVolumeClaimPhase does not have child fields") + return nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_accessModes(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_accessModes(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastTransitionTime(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastTransitionTime(ctx, field) if err != nil { return graphql.Null } @@ -33587,7 +35702,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_acc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AccessModes, nil + return obj.LastTransitionTime, nil }) if err != nil { ec.Error(ctx, err) @@ -33596,26 +35711,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_acc 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_K8s__io___api___core___v1__PersistentVolumeSpec_accessModes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastTransitionTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimCondition", 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) _K8s__io___api___core___v1__PersistentVolumeSpec_awsElasticBlockStore(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_awsElasticBlockStore(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCondition_message(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_message(ctx, field) if err != nil { return graphql.Null } @@ -33628,7 +35743,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_aws }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AWSElasticBlockStore, nil + return obj.Message, nil }) if err != nil { ec.Error(ctx, err) @@ -33637,36 +35752,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_aws if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1AWSElasticBlockStoreVolumeSource) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1AWSElasticBlockStoreVolumeSource(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_awsElasticBlockStore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_fsType(ctx, field) - case "partition": - return ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_partition(ctx, field) - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_readOnly(ctx, field) - case "volumeID": - return ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_volumeID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_azureDisk(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureDisk(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCondition_reason(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_reason(ctx, field) if err != nil { return graphql.Null } @@ -33679,7 +35784,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_azu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AzureDisk, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -33688,40 +35793,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_azu if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1AzureDiskVolumeSource) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__AzureDiskVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1AzureDiskVolumeSource(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureDisk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cachingMode": - return ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_cachingMode(ctx, field) - case "diskName": - return ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_diskName(ctx, field) - case "diskURI": - return ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_diskURI(ctx, field) - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_fsType(ctx, field) - case "kind": - return ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_kind(ctx, field) - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_readOnly(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__AzureDiskVolumeSource", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_azureFile(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureFile(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCondition_status(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_status(ctx, field) if err != nil { return graphql.Null } @@ -33734,45 +35825,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_azu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AzureFile, 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.K8sIoAPICoreV1AzureFilePersistentVolumeSource) + res := resTmp.(model.K8sIoAPICoreV1ConditionStatus) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__AzureFilePersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1AzureFilePersistentVolumeSource(ctx, field.Selections, res) + return ec.marshalNK8s__io___api___core___v1__ConditionStatus2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ConditionStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_readOnly(ctx, field) - case "secretName": - return ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretName(ctx, field) - case "secretNamespace": - return ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretNamespace(ctx, field) - case "shareName": - return ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_shareName(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__AzureFilePersistentVolumeSource", field.Name) + return nil, errors.New("field of type K8s__io___api___core___v1__ConditionStatus does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_capacity(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_capacity(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimCondition_type(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_type(ctx, field) if err != nil { return graphql.Null } @@ -33785,35 +35869,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_cap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Capacity, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(model.K8sIoAPICoreV1PersistentVolumeClaimConditionType) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalNK8s__io___api___core___v1__PersistentVolumeClaimConditionType2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeClaimConditionType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_capacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimCondition", 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 K8s__io___api___core___v1__PersistentVolumeClaimConditionType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_cephfs(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cephfs(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_accessModes(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_accessModes(ctx, field) if err != nil { return graphql.Null } @@ -33826,7 +35913,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_cep }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cephfs, nil + return obj.AccessModes, nil }) if err != nil { ec.Error(ctx, err) @@ -33835,40 +35922,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_cep if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1CephFSPersistentVolumeSource) + res := resTmp.([]string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__CephFSPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1CephFSPersistentVolumeSource(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cephfs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_accessModes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "monitors": - return ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_monitors(ctx, field) - case "path": - return ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_path(ctx, field) - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_readOnly(ctx, field) - case "secretFile": - return ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretFile(ctx, field) - case "secretRef": - return ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretRef(ctx, field) - case "user": - return ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_user(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__CephFSPersistentVolumeSource", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_cinder(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cinder(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSource(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSource(ctx, field) if err != nil { return graphql.Null } @@ -33881,7 +35954,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_cin }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cinder, nil + return obj.DataSource, nil }) if err != nil { ec.Error(ctx, err) @@ -33890,36 +35963,34 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_cin if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1CinderPersistentVolumeSource) + res := resTmp.(*model.K8sIoAPICoreV1TypedLocalObjectReference) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__CinderPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1CinderPersistentVolumeSource(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__TypedLocalObjectReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TypedLocalObjectReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cinder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_fsType(ctx, field) - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_readOnly(ctx, field) - case "secretRef": - return ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_secretRef(ctx, field) - case "volumeID": - return ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_volumeID(ctx, field) + case "apiGroup": + return ec.fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_apiGroup(ctx, field) + case "kind": + return ec.fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_kind(ctx, field) + case "name": + return ec.fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_name(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__CinderPersistentVolumeSource", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__TypedLocalObjectReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_claimRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_claimRef(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSourceRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSourceRef(ctx, field) if err != nil { return graphql.Null } @@ -33932,7 +36003,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_cla }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClaimRef, nil + return obj.DataSourceRef, nil }) if err != nil { ec.Error(ctx, err) @@ -33941,42 +36012,36 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_cla if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1ObjectReference) + res := resTmp.(*model.K8sIoAPICoreV1TypedObjectReference) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__ObjectReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ObjectReference(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__TypedObjectReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TypedObjectReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_claimRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSourceRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", 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_K8s__io___api___core___v1__ObjectReference_apiVersion(ctx, field) - case "fieldPath": - return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_fieldPath(ctx, field) + case "apiGroup": + return ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_apiGroup(ctx, field) case "kind": - return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_kind(ctx, field) + return ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_kind(ctx, field) case "name": - return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_name(ctx, field) + return ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_name(ctx, field) case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_namespace(ctx, field) - case "resourceVersion": - return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_resourceVersion(ctx, field) - case "uid": - return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_uid(ctx, field) + return ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_namespace(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__ObjectReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__TypedObjectReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_csi(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_csi(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_resources(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_resources(ctx, field) if err != nil { return graphql.Null } @@ -33989,7 +36054,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_csi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Csi, nil + return obj.Resources, nil }) if err != nil { ec.Error(ctx, err) @@ -33998,48 +36063,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_csi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1CSIPersistentVolumeSource) + res := resTmp.(*model.K8sIoAPICoreV1VolumeResourceRequirements) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__CSIPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1CSIPersistentVolumeSource(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__VolumeResourceRequirements2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1VolumeResourceRequirements(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_csi(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "controllerExpandSecretRef": - return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerExpandSecretRef(ctx, field) - case "controllerPublishSecretRef": - return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerPublishSecretRef(ctx, field) - case "driver": - return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_driver(ctx, field) - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_fsType(ctx, field) - case "nodeExpandSecretRef": - return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeExpandSecretRef(ctx, field) - case "nodePublishSecretRef": - return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodePublishSecretRef(ctx, field) - case "nodeStageSecretRef": - return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeStageSecretRef(ctx, field) - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_readOnly(ctx, field) - case "volumeAttributes": - return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeAttributes(ctx, field) - case "volumeHandle": - return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeHandle(ctx, field) + case "limits": + return ec.fieldContext_K8s__io___api___core___v1__VolumeResourceRequirements_limits(ctx, field) + case "requests": + return ec.fieldContext_K8s__io___api___core___v1__VolumeResourceRequirements_requests(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__CSIPersistentVolumeSource", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__VolumeResourceRequirements", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_fc(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_fc(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_selector(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_selector(ctx, field) if err != nil { return graphql.Null } @@ -34052,7 +36101,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_fc( }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Fc, nil + return obj.Selector, nil }) if err != nil { ec.Error(ctx, err) @@ -34061,38 +36110,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_fc( if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1FCVolumeSource) + res := resTmp.(*model.K8sIoApimachineryPkgApisMetaV1LabelSelector) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__FCVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1FCVolumeSource(ctx, field.Selections, res) + return ec.marshalOK8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoApimachineryPkgApisMetaV1LabelSelector(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_fc(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_selector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_fsType(ctx, field) - case "lun": - return ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_lun(ctx, field) - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_readOnly(ctx, field) - case "targetWWNs": - return ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_targetWWNs(ctx, field) - case "wwids": - return ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_wwids(ctx, field) + case "matchExpressions": + return ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchExpressions(ctx, field) + case "matchLabels": + return ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchLabels(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__FCVolumeSource", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_flexVolume(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flexVolume(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_storageClassName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_storageClassName(ctx, field) if err != nil { return graphql.Null } @@ -34105,7 +36148,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_fle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FlexVolume, nil + return obj.StorageClassName, nil }) if err != nil { ec.Error(ctx, err) @@ -34114,38 +36157,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_fle if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1FlexPersistentVolumeSource) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__FlexPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1FlexPersistentVolumeSource(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flexVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_storageClassName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "driver": - return ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_driver(ctx, field) - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_fsType(ctx, field) - case "options": - return ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_options(ctx, field) - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_readOnly(ctx, field) - case "secretRef": - return ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_secretRef(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__FlexPersistentVolumeSource", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_flocker(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flocker(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeAttributesClassName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeAttributesClassName(ctx, field) if err != nil { return graphql.Null } @@ -34158,7 +36189,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_flo }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Flocker, nil + return obj.VolumeAttributesClassName, nil }) if err != nil { ec.Error(ctx, err) @@ -34167,32 +36198,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_flo if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1FlockerVolumeSource) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__FlockerVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1FlockerVolumeSource(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flocker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeAttributesClassName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "datasetName": - return ec.fieldContext_K8s__io___api___core___v1__FlockerVolumeSource_datasetName(ctx, field) - case "datasetUUID": - return ec.fieldContext_K8s__io___api___core___v1__FlockerVolumeSource_datasetUUID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__FlockerVolumeSource", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_gcePersistentDisk(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_gcePersistentDisk(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeMode(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeMode(ctx, field) if err != nil { return graphql.Null } @@ -34205,7 +36230,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_gce }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GcePersistentDisk, nil + return obj.VolumeMode, nil }) if err != nil { ec.Error(ctx, err) @@ -34214,36 +36239,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_gce if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1GCEPersistentDiskVolumeSource) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__GCEPersistentDiskVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1GCEPersistentDiskVolumeSource(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_gcePersistentDisk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_fsType(ctx, field) - case "partition": - return ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_partition(ctx, field) - case "pdName": - return ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_pdName(ctx, field) - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_readOnly(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__GCEPersistentDiskVolumeSource", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_glusterfs(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_glusterfs(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeName(ctx, field) if err != nil { return graphql.Null } @@ -34256,7 +36271,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_glu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Glusterfs, nil + return obj.VolumeName, nil }) if err != nil { ec.Error(ctx, err) @@ -34265,36 +36280,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_glu if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1GlusterfsPersistentVolumeSource) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__GlusterfsPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1GlusterfsPersistentVolumeSource(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_glusterfs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "endpoints": - return ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpoints(ctx, field) - case "endpointsNamespace": - return ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpointsNamespace(ctx, field) - case "path": - return ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_path(ctx, field) - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_readOnly(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__GlusterfsPersistentVolumeSource", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_hostPath(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_hostPath(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_accessModes(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_accessModes(ctx, field) if err != nil { return graphql.Null } @@ -34307,7 +36312,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_hos }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HostPath, nil + return obj.AccessModes, nil }) if err != nil { ec.Error(ctx, err) @@ -34316,32 +36321,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_hos if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1HostPathVolumeSource) + res := resTmp.([]string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__HostPathVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1HostPathVolumeSource(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_hostPath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_accessModes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "path": - return ec.fieldContext_K8s__io___api___core___v1__HostPathVolumeSource_path(ctx, field) - case "type": - return ec.fieldContext_K8s__io___api___core___v1__HostPathVolumeSource_type(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__HostPathVolumeSource", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_iscsi(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_iscsi(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResources(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResources(ctx, field) if err != nil { return graphql.Null } @@ -34354,7 +36353,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_isc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Iscsi, nil + return obj.AllocatedResources, nil }) if err != nil { ec.Error(ctx, err) @@ -34363,50 +36362,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_isc if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__ISCSIPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ISCSIPersistentVolumeSource(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_iscsi(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "chapAuthDiscovery": - return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthDiscovery(ctx, field) - case "chapAuthSession": - return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthSession(ctx, field) - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_fsType(ctx, field) - case "initiatorName": - return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_initiatorName(ctx, field) - case "iqn": - return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iqn(ctx, field) - case "iscsiInterface": - return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iscsiInterface(ctx, field) - case "lun": - return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_lun(ctx, field) - case "portals": - return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_portals(ctx, field) - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_readOnly(ctx, field) - case "secretRef": - return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_secretRef(ctx, field) - case "targetPortal": - return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_targetPortal(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__ISCSIPersistentVolumeSource", field.Name) + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_local(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_local(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResourceStatuses(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResourceStatuses(ctx, field) if err != nil { return graphql.Null } @@ -34419,7 +36394,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_loc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Local, nil + return obj.AllocatedResourceStatuses, nil }) if err != nil { ec.Error(ctx, err) @@ -34428,32 +36403,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_loc if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1LocalVolumeSource) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__LocalVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1LocalVolumeSource(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_local(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResourceStatuses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__LocalVolumeSource_fsType(ctx, field) - case "path": - return ec.fieldContext_K8s__io___api___core___v1__LocalVolumeSource_path(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__LocalVolumeSource", field.Name) + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_mountOptions(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_mountOptions(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_capacity(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_capacity(ctx, field) if err != nil { return graphql.Null } @@ -34466,7 +36435,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_mou }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MountOptions, nil + return obj.Capacity, nil }) if err != nil { ec.Error(ctx, err) @@ -34475,26 +36444,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_mou 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_K8s__io___api___core___v1__PersistentVolumeSpec_mountOptions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_capacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", 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) _K8s__io___api___core___v1__PersistentVolumeSpec_nfs(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nfs(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_conditions(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_conditions(ctx, field) if err != nil { return graphql.Null } @@ -34507,7 +36476,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_nfs }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Nfs, nil + return obj.Conditions, nil }) if err != nil { ec.Error(ctx, err) @@ -34516,34 +36485,40 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_nfs if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1NFSVolumeSource) + res := resTmp.([]*model.K8sIoAPICoreV1PersistentVolumeClaimCondition) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__NFSVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NFSVolumeSource(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__PersistentVolumeClaimCondition2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeClaimConditionᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nfs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_conditions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "path": - return ec.fieldContext_K8s__io___api___core___v1__NFSVolumeSource_path(ctx, field) - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__NFSVolumeSource_readOnly(ctx, field) - case "server": - return ec.fieldContext_K8s__io___api___core___v1__NFSVolumeSource_server(ctx, field) + case "lastProbeTime": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastProbeTime(ctx, field) + case "lastTransitionTime": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_lastTransitionTime(ctx, field) + case "message": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_message(ctx, field) + case "reason": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_reason(ctx, field) + case "status": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_status(ctx, field) + case "type": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimCondition_type(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NFSVolumeSource", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PersistentVolumeClaimCondition", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_nodeAffinity(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nodeAffinity(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_currentVolumeAttributesClassName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_currentVolumeAttributesClassName(ctx, field) if err != nil { return graphql.Null } @@ -34556,7 +36531,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_nod }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NodeAffinity, nil + return obj.CurrentVolumeAttributesClassName, nil }) if err != nil { ec.Error(ctx, err) @@ -34565,30 +36540,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_nod if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1VolumeNodeAffinity) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__VolumeNodeAffinity2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1VolumeNodeAffinity(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nodeAffinity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_currentVolumeAttributesClassName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "required": - return ec.fieldContext_K8s__io___api___core___v1__VolumeNodeAffinity_required(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__VolumeNodeAffinity", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_persistentVolumeReclaimPolicy(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_persistentVolumeReclaimPolicy(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_modifyVolumeStatus(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_modifyVolumeStatus(ctx, field) if err != nil { return graphql.Null } @@ -34601,7 +36572,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_per }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersistentVolumeReclaimPolicy, nil + return obj.ModifyVolumeStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -34610,26 +36581,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_per if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumeReclaimPolicy) + res := resTmp.(*model.K8sIoAPICoreV1ModifyVolumeStatus) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__PersistentVolumeReclaimPolicy2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeReclaimPolicy(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__ModifyVolumeStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ModifyVolumeStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_persistentVolumeReclaimPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_modifyVolumeStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type K8s__io___api___core___v1__PersistentVolumeReclaimPolicy does not have child fields") + switch field.Name { + case "status": + return ec.fieldContext_K8s__io___api___core___v1__ModifyVolumeStatus_status(ctx, field) + case "targetVolumeAttributesClassName": + return ec.fieldContext_K8s__io___api___core___v1__ModifyVolumeStatus_targetVolumeAttributesClassName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__ModifyVolumeStatus", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_photonPersistentDisk(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_photonPersistentDisk(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeClaimStatus_phase(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeClaimStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_phase(ctx, field) if err != nil { return graphql.Null } @@ -34642,7 +36619,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_pho }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PhotonPersistentDisk, nil + return obj.Phase, nil }) if err != nil { ec.Error(ctx, err) @@ -34651,32 +36628,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_pho if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1PhotonPersistentDiskVolumeSource) + res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumeClaimPhase) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__PhotonPersistentDiskVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PhotonPersistentDiskVolumeSource(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__PersistentVolumeClaimPhase2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeClaimPhase(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_photonPersistentDisk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_phase(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeSpec", + Object: "K8s__io___api___core___v1__PersistentVolumeClaimStatus", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_fsType(ctx, field) - case "pdID": - return ec.fieldContext_K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_pdID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource", field.Name) + return nil, errors.New("field of type K8s__io___api___core___v1__PersistentVolumeClaimPhase does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_portworxVolume(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_portworxVolume(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_accessModes(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_accessModes(ctx, field) if err != nil { return graphql.Null } @@ -34689,7 +36660,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_por }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PortworxVolume, nil + return obj.AccessModes, nil }) if err != nil { ec.Error(ctx, err) @@ -34698,34 +36669,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_por if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1PortworxVolumeSource) + res := resTmp.([]string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__PortworxVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PortworxVolumeSource(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_portworxVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_accessModes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "K8s__io___api___core___v1__PersistentVolumeSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_fsType(ctx, field) - case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_readOnly(ctx, field) - case "volumeID": - return ec.fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_volumeID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PortworxVolumeSource", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_quobyte(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_quobyte(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_awsElasticBlockStore(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_awsElasticBlockStore(ctx, field) if err != nil { return graphql.Null } @@ -34738,7 +36701,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_quo }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Quobyte, nil + return obj.AWSElasticBlockStore, nil }) if err != nil { ec.Error(ctx, err) @@ -34747,12 +36710,12 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_quo if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1QuobyteVolumeSource) + res := resTmp.(*model.K8sIoAPICoreV1AWSElasticBlockStoreVolumeSource) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__QuobyteVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1QuobyteVolumeSource(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1AWSElasticBlockStoreVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_quobyte(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_awsElasticBlockStore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "K8s__io___api___core___v1__PersistentVolumeSpec", Field: field, @@ -34760,27 +36723,23 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "group": - return ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_group(ctx, field) + case "fsType": + return ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_fsType(ctx, field) + case "partition": + return ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_partition(ctx, field) case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_readOnly(ctx, field) - case "registry": - return ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_registry(ctx, field) - case "tenant": - return ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_tenant(ctx, field) - case "user": - return ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_user(ctx, field) - case "volume": - return ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_volume(ctx, field) + return ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_readOnly(ctx, field) + case "volumeID": + return ec.fieldContext_K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource_volumeID(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__QuobyteVolumeSource", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_rbd(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_rbd(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_azureDisk(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureDisk(ctx, field) if err != nil { return graphql.Null } @@ -34793,7 +36752,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_rbd }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Rbd, nil + return obj.AzureDisk, nil }) if err != nil { ec.Error(ctx, err) @@ -34802,12 +36761,12 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_rbd if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1RBDPersistentVolumeSource) + res := resTmp.(*model.K8sIoAPICoreV1AzureDiskVolumeSource) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__RBDPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1RBDPersistentVolumeSource(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__AzureDiskVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1AzureDiskVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_rbd(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureDisk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "K8s__io___api___core___v1__PersistentVolumeSpec", Field: field, @@ -34815,31 +36774,27 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "cachingMode": + return ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_cachingMode(ctx, field) + case "diskName": + return ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_diskName(ctx, field) + case "diskURI": + return ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_diskURI(ctx, field) case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_fsType(ctx, field) - case "image": - return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_image(ctx, field) - case "keyring": - return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_keyring(ctx, field) - case "monitors": - return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_monitors(ctx, field) - case "pool": - return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_pool(ctx, field) + return ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_fsType(ctx, field) + case "kind": + return ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_kind(ctx, field) case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_readOnly(ctx, field) - case "secretRef": - return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_secretRef(ctx, field) - case "user": - return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_user(ctx, field) + return ec.fieldContext_K8s__io___api___core___v1__AzureDiskVolumeSource_readOnly(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__RBDPersistentVolumeSource", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__AzureDiskVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_scaleIO(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_scaleIO(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_azureFile(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureFile(ctx, field) if err != nil { return graphql.Null } @@ -34852,7 +36807,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_sca }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ScaleIo, nil + return obj.AzureFile, nil }) if err != nil { ec.Error(ctx, err) @@ -34861,12 +36816,12 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_sca if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) + res := resTmp.(*model.K8sIoAPICoreV1AzureFilePersistentVolumeSource) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__ScaleIOPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ScaleIOPersistentVolumeSource(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__AzureFilePersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1AzureFilePersistentVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_scaleIO(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "K8s__io___api___core___v1__PersistentVolumeSpec", Field: field, @@ -34874,35 +36829,23 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_fsType(ctx, field) - case "gateway": - return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_gateway(ctx, field) - case "protectionDomain": - return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_protectionDomain(ctx, field) case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_readOnly(ctx, field) - case "secretRef": - return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_secretRef(ctx, field) - case "sslEnabled": - return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_sslEnabled(ctx, field) - case "storageMode": - return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storageMode(ctx, field) - case "storagePool": - return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storagePool(ctx, field) - case "system": - return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_system(ctx, field) - case "volumeName": - return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_volumeName(ctx, field) + return ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_readOnly(ctx, field) + case "secretName": + return ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretName(ctx, field) + case "secretNamespace": + return ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_secretNamespace(ctx, field) + case "shareName": + return ec.fieldContext_K8s__io___api___core___v1__AzureFilePersistentVolumeSource_shareName(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__AzureFilePersistentVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_storageClassName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageClassName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_capacity(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_capacity(ctx, field) if err != nil { return graphql.Null } @@ -34915,7 +36858,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_sto }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StorageClassName, nil + return obj.Capacity, nil }) if err != nil { ec.Error(ctx, err) @@ -34924,26 +36867,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_sto 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_K8s__io___api___core___v1__PersistentVolumeSpec_storageClassName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_capacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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) _K8s__io___api___core___v1__PersistentVolumeSpec_storageos(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageos(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_cephfs(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cephfs(ctx, field) if err != nil { return graphql.Null } @@ -34956,7 +36899,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_sto }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Storageos, nil + return obj.Cephfs, nil }) if err != nil { ec.Error(ctx, err) @@ -34965,12 +36908,12 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_sto if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1StorageOSPersistentVolumeSource) + res := resTmp.(*model.K8sIoAPICoreV1CephFSPersistentVolumeSource) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__StorageOSPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1StorageOSPersistentVolumeSource(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__CephFSPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1CephFSPersistentVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageos(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cephfs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "K8s__io___api___core___v1__PersistentVolumeSpec", Field: field, @@ -34978,25 +36921,27 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_fsType(ctx, field) + case "monitors": + return ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_monitors(ctx, field) + case "path": + return ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_path(ctx, field) case "readOnly": - return ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_readOnly(ctx, field) + return ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_readOnly(ctx, field) + case "secretFile": + return ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretFile(ctx, field) case "secretRef": - return ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_secretRef(ctx, field) - case "volumeName": - return ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeName(ctx, field) - case "volumeNamespace": - return ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeNamespace(ctx, field) + return ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_secretRef(ctx, field) + case "user": + return ec.fieldContext_K8s__io___api___core___v1__CephFSPersistentVolumeSource_user(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__StorageOSPersistentVolumeSource", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__CephFSPersistentVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_volumeAttributesClassName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeAttributesClassName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_cinder(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cinder(ctx, field) if err != nil { return graphql.Null } @@ -35009,7 +36954,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_vol }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeAttributesClassName, nil + return obj.Cinder, nil }) if err != nil { ec.Error(ctx, err) @@ -35018,26 +36963,36 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_vol if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1CinderPersistentVolumeSource) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__CinderPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1CinderPersistentVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeAttributesClassName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cinder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "fsType": + return ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_fsType(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_readOnly(ctx, field) + case "secretRef": + return ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_secretRef(ctx, field) + case "volumeID": + return ec.fieldContext_K8s__io___api___core___v1__CinderPersistentVolumeSource_volumeID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__CinderPersistentVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_volumeMode(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeMode(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_claimRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_claimRef(ctx, field) if err != nil { return graphql.Null } @@ -35050,7 +37005,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_vol }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeMode, nil + return obj.ClaimRef, nil }) if err != nil { ec.Error(ctx, err) @@ -35059,26 +37014,42 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_vol if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1ObjectReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__ObjectReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ObjectReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_claimRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "apiVersion": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_apiVersion(ctx, field) + case "fieldPath": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_fieldPath(ctx, field) + case "kind": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_kind(ctx, field) + case "name": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_name(ctx, field) + case "namespace": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_namespace(ctx, field) + case "resourceVersion": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_resourceVersion(ctx, field) + case "uid": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_uid(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__ObjectReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_vsphereVolume(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_vsphereVolume(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_csi(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_csi(ctx, field) if err != nil { return graphql.Null } @@ -35091,7 +37062,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_vsp }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VsphereVolume, nil + return obj.Csi, nil }) if err != nil { ec.Error(ctx, err) @@ -35100,12 +37071,12 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_vsp if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1VsphereVirtualDiskVolumeSource) + res := resTmp.(*model.K8sIoAPICoreV1CSIPersistentVolumeSource) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__VsphereVirtualDiskVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1VsphereVirtualDiskVolumeSource(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__CSIPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1CSIPersistentVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_vsphereVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_csi(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "K8s__io___api___core___v1__PersistentVolumeSpec", Field: field, @@ -35113,23 +37084,35 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVo IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "controllerExpandSecretRef": + return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerExpandSecretRef(ctx, field) + case "controllerPublishSecretRef": + return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_controllerPublishSecretRef(ctx, field) + case "driver": + return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_driver(ctx, field) case "fsType": - return ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_fsType(ctx, field) - case "storagePolicyID": - return ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyID(ctx, field) - case "storagePolicyName": - return ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyName(ctx, field) - case "volumePath": - return ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_volumePath(ctx, field) + return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_fsType(ctx, field) + case "nodeExpandSecretRef": + return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeExpandSecretRef(ctx, field) + case "nodePublishSecretRef": + return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodePublishSecretRef(ctx, field) + case "nodeStageSecretRef": + return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_nodeStageSecretRef(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_readOnly(ctx, field) + case "volumeAttributes": + return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeAttributes(ctx, field) + case "volumeHandle": + return ec.fieldContext_K8s__io___api___core___v1__CSIPersistentVolumeSource_volumeHandle(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__CSIPersistentVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_lastPhaseTransitionTime(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_lastPhaseTransitionTime(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_fc(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_fc(ctx, field) if err != nil { return graphql.Null } @@ -35142,7 +37125,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_l }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastPhaseTransitionTime, nil + return obj.Fc, nil }) if err != nil { ec.Error(ctx, err) @@ -35151,26 +37134,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_l if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1FCVolumeSource) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__FCVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1FCVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_lastPhaseTransitionTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_fc(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeStatus", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "fsType": + return ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_fsType(ctx, field) + case "lun": + return ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_lun(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_readOnly(ctx, field) + case "targetWWNs": + return ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_targetWWNs(ctx, field) + case "wwids": + return ec.fieldContext_K8s__io___api___core___v1__FCVolumeSource_wwids(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__FCVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_message(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_message(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_flexVolume(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flexVolume(ctx, field) if err != nil { return graphql.Null } @@ -35183,7 +37178,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_m }() 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.FlexVolume, nil }) if err != nil { ec.Error(ctx, err) @@ -35192,26 +37187,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_m if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1FlexPersistentVolumeSource) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__FlexPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1FlexPersistentVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flexVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeStatus", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "driver": + return ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_driver(ctx, field) + case "fsType": + return ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_fsType(ctx, field) + case "options": + return ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_options(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_readOnly(ctx, field) + case "secretRef": + return ec.fieldContext_K8s__io___api___core___v1__FlexPersistentVolumeSource_secretRef(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__FlexPersistentVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_phase(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_phase(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_flocker(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flocker(ctx, field) if err != nil { return graphql.Null } @@ -35224,7 +37231,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_p }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Phase, nil + return obj.Flocker, nil }) if err != nil { ec.Error(ctx, err) @@ -35233,26 +37240,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_p if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumePhase) + res := resTmp.(*model.K8sIoAPICoreV1FlockerVolumeSource) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__PersistentVolumePhase2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumePhase(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__FlockerVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1FlockerVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_phase(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flocker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeStatus", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type K8s__io___api___core___v1__PersistentVolumePhase does not have child fields") + switch field.Name { + case "datasetName": + return ec.fieldContext_K8s__io___api___core___v1__FlockerVolumeSource_datasetName(ctx, field) + case "datasetUUID": + return ec.fieldContext_K8s__io___api___core___v1__FlockerVolumeSource_datasetUUID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__FlockerVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_reason(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_reason(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_gcePersistentDisk(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_gcePersistentDisk(ctx, field) if err != nil { return graphql.Null } @@ -35265,7 +37278,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_r }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.GcePersistentDisk, nil }) if err != nil { ec.Error(ctx, err) @@ -35274,26 +37287,36 @@ func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_r if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1GCEPersistentDiskVolumeSource) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__GCEPersistentDiskVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1GCEPersistentDiskVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_gcePersistentDisk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PersistentVolumeStatus", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "fsType": + return ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_fsType(ctx, field) + case "partition": + return ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_partition(ctx, field) + case "pdName": + return ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_pdName(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__GCEPersistentDiskVolumeSource_readOnly(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__GCEPersistentDiskVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PhotonPersistentDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_fsType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_glusterfs(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_glusterfs(ctx, field) if err != nil { return graphql.Null } @@ -35306,7 +37329,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PhotonPersistentDiskVolu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FsType, nil + return obj.Glusterfs, nil }) if err != nil { ec.Error(ctx, err) @@ -35315,26 +37338,36 @@ func (ec *executionContext) _K8s__io___api___core___v1__PhotonPersistentDiskVolu if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1GlusterfsPersistentVolumeSource) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__GlusterfsPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1GlusterfsPersistentVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_glusterfs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "endpoints": + return ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpoints(ctx, field) + case "endpointsNamespace": + return ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_endpointsNamespace(ctx, field) + case "path": + return ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_path(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__GlusterfsPersistentVolumeSource_readOnly(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__GlusterfsPersistentVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_pdID(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PhotonPersistentDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_pdID(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_hostPath(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_hostPath(ctx, field) if err != nil { return graphql.Null } @@ -35347,38 +37380,41 @@ func (ec *executionContext) _K8s__io___api___core___v1__PhotonPersistentDiskVolu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PdID, nil + return obj.HostPath, 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.K8sIoAPICoreV1HostPathVolumeSource) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__HostPathVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1HostPathVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_pdID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_hostPath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "path": + return ec.fieldContext_K8s__io___api___core___v1__HostPathVolumeSource_path(ctx, field) + case "type": + return ec.fieldContext_K8s__io___api___core___v1__HostPathVolumeSource_type(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__HostPathVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PortworxVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PortworxVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_fsType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_iscsi(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_iscsi(ctx, field) if err != nil { return graphql.Null } @@ -35391,7 +37427,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PortworxVolumeSource_fsT }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FsType, nil + return obj.Iscsi, nil }) if err != nil { ec.Error(ctx, err) @@ -35400,26 +37436,50 @@ func (ec *executionContext) _K8s__io___api___core___v1__PortworxVolumeSource_fsT if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1ISCSIPersistentVolumeSource) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__ISCSIPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ISCSIPersistentVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_iscsi(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PortworxVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "chapAuthDiscovery": + return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthDiscovery(ctx, field) + case "chapAuthSession": + return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_chapAuthSession(ctx, field) + case "fsType": + return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_fsType(ctx, field) + case "initiatorName": + return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_initiatorName(ctx, field) + case "iqn": + return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iqn(ctx, field) + case "iscsiInterface": + return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_iscsiInterface(ctx, field) + case "lun": + return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_lun(ctx, field) + case "portals": + return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_portals(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_readOnly(ctx, field) + case "secretRef": + return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_secretRef(ctx, field) + case "targetPortal": + return ec.fieldContext_K8s__io___api___core___v1__ISCSIPersistentVolumeSource_targetPortal(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__ISCSIPersistentVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PortworxVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PortworxVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_local(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_local(ctx, field) if err != nil { return graphql.Null } @@ -35432,7 +37492,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__PortworxVolumeSource_rea }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, nil + return obj.Local, nil }) if err != nil { ec.Error(ctx, err) @@ -35441,26 +37501,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__PortworxVolumeSource_rea if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*model.K8sIoAPICoreV1LocalVolumeSource) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__LocalVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1LocalVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_local(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PortworxVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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") + switch field.Name { + case "fsType": + return ec.fieldContext_K8s__io___api___core___v1__LocalVolumeSource_fsType(ctx, field) + case "path": + return ec.fieldContext_K8s__io___api___core___v1__LocalVolumeSource_path(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__LocalVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__PortworxVolumeSource_volumeID(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PortworxVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_volumeID(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_mountOptions(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_mountOptions(ctx, field) if err != nil { return graphql.Null } @@ -35473,26 +37539,23 @@ func (ec *executionContext) _K8s__io___api___core___v1__PortworxVolumeSource_vol }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeID, nil + return obj.MountOptions, 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_K8s__io___api___core___v1__PortworxVolumeSource_volumeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_mountOptions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__PortworxVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", Field: field, IsMethod: false, IsResolver: false, @@ -35503,8 +37566,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PortworxVolu return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_group(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1QuobyteVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_group(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_nfs(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nfs(ctx, field) if err != nil { return graphql.Null } @@ -35517,7 +37580,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_grou }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group, nil + return obj.Nfs, nil }) if err != nil { ec.Error(ctx, err) @@ -35526,26 +37589,34 @@ func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_grou if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1NFSVolumeSource) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__NFSVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NFSVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nfs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__QuobyteVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "path": + return ec.fieldContext_K8s__io___api___core___v1__NFSVolumeSource_path(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__NFSVolumeSource_readOnly(ctx, field) + case "server": + return ec.fieldContext_K8s__io___api___core___v1__NFSVolumeSource_server(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NFSVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1QuobyteVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_nodeAffinity(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nodeAffinity(ctx, field) if err != nil { return graphql.Null } @@ -35558,7 +37629,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_read }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, nil + return obj.NodeAffinity, nil }) if err != nil { ec.Error(ctx, err) @@ -35567,26 +37638,30 @@ func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_read if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*model.K8sIoAPICoreV1VolumeNodeAffinity) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__VolumeNodeAffinity2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1VolumeNodeAffinity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nodeAffinity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__QuobyteVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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") + switch field.Name { + case "required": + return ec.fieldContext_K8s__io___api___core___v1__VolumeNodeAffinity_required(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__VolumeNodeAffinity", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_registry(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1QuobyteVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_registry(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_persistentVolumeReclaimPolicy(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_persistentVolumeReclaimPolicy(ctx, field) if err != nil { return graphql.Null } @@ -35599,38 +37674,35 @@ func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_regi }() 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.PersistentVolumeReclaimPolicy, 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.K8sIoAPICoreV1PersistentVolumeReclaimPolicy) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__PersistentVolumeReclaimPolicy2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeReclaimPolicy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_registry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_persistentVolumeReclaimPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__QuobyteVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 K8s__io___api___core___v1__PersistentVolumeReclaimPolicy does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_tenant(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1QuobyteVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_tenant(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_photonPersistentDisk(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_photonPersistentDisk(ctx, field) if err != nil { return graphql.Null } @@ -35643,7 +37715,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_tena }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tenant, nil + return obj.PhotonPersistentDisk, nil }) if err != nil { ec.Error(ctx, err) @@ -35652,26 +37724,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_tena if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1PhotonPersistentDiskVolumeSource) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__PhotonPersistentDiskVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PhotonPersistentDiskVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_tenant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_photonPersistentDisk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__QuobyteVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "fsType": + return ec.fieldContext_K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_fsType(ctx, field) + case "pdID": + return ec.fieldContext_K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_pdID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_user(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1QuobyteVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_user(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_portworxVolume(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_portworxVolume(ctx, field) if err != nil { return graphql.Null } @@ -35684,7 +37762,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_user }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User, nil + return obj.PortworxVolume, nil }) if err != nil { ec.Error(ctx, err) @@ -35693,26 +37771,34 @@ func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_user if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1PortworxVolumeSource) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__PortworxVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PortworxVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_portworxVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__QuobyteVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "fsType": + return ec.fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_fsType(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_readOnly(ctx, field) + case "volumeID": + return ec.fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_volumeID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PortworxVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_volume(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1QuobyteVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_volume(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_quobyte(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_quobyte(ctx, field) if err != nil { return graphql.Null } @@ -35725,38 +37811,49 @@ func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_volu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Volume, nil + return obj.Quobyte, 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.K8sIoAPICoreV1QuobyteVolumeSource) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__QuobyteVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1QuobyteVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_volume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_quobyte(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__QuobyteVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "group": + return ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_group(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_readOnly(ctx, field) + case "registry": + return ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_registry(ctx, field) + case "tenant": + return ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_tenant(ctx, field) + case "user": + return ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_user(ctx, field) + case "volume": + return ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_volume(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__QuobyteVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_fsType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_rbd(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_rbd(ctx, field) if err != nil { return graphql.Null } @@ -35769,7 +37866,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FsType, nil + return obj.Rbd, nil }) if err != nil { ec.Error(ctx, err) @@ -35778,26 +37875,44 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1RBDPersistentVolumeSource) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__RBDPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1RBDPersistentVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_rbd(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "fsType": + return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_fsType(ctx, field) + case "image": + return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_image(ctx, field) + case "keyring": + return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_keyring(ctx, field) + case "monitors": + return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_monitors(ctx, field) + case "pool": + return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_pool(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_readOnly(ctx, field) + case "secretRef": + return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_secretRef(ctx, field) + case "user": + return ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__RBDPersistentVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_image(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_image(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_scaleIO(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_scaleIO(ctx, field) if err != nil { return graphql.Null } @@ -35810,38 +37925,57 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Image, nil + return obj.ScaleIo, 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.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__ScaleIOPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ScaleIOPersistentVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_image(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_scaleIO(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "fsType": + return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_fsType(ctx, field) + case "gateway": + return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_gateway(ctx, field) + case "protectionDomain": + return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_protectionDomain(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_readOnly(ctx, field) + case "secretRef": + return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_secretRef(ctx, field) + case "sslEnabled": + return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_sslEnabled(ctx, field) + case "storageMode": + return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storageMode(ctx, field) + case "storagePool": + return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storagePool(ctx, field) + case "system": + return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_system(ctx, field) + case "volumeName": + return ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_volumeName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_keyring(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_keyring(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_storageClassName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageClassName(ctx, field) if err != nil { return graphql.Null } @@ -35854,7 +37988,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Keyring, nil + return obj.StorageClassName, nil }) if err != nil { ec.Error(ctx, err) @@ -35868,9 +38002,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_keyring(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageClassName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", Field: field, IsMethod: false, IsResolver: false, @@ -35881,8 +38015,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersisten return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_monitors(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_monitors(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_storageos(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageos(ctx, field) if err != nil { return graphql.Null } @@ -35895,38 +38029,47 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Monitors, nil + return obj.Storageos, 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.K8sIoAPICoreV1StorageOSPersistentVolumeSource) fc.Result = res - return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__StorageOSPersistentVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1StorageOSPersistentVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_monitors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageos(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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 "fsType": + return ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_fsType(ctx, field) + case "readOnly": + return ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_readOnly(ctx, field) + case "secretRef": + return ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_secretRef(ctx, field) + case "volumeName": + return ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeName(ctx, field) + case "volumeNamespace": + return ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeNamespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__StorageOSPersistentVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_pool(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_pool(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_volumeAttributesClassName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeAttributesClassName(ctx, field) if err != nil { return graphql.Null } @@ -35939,7 +38082,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Pool, nil + return obj.VolumeAttributesClassName, nil }) if err != nil { ec.Error(ctx, err) @@ -35953,9 +38096,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_pool(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeAttributesClassName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", Field: field, IsMethod: false, IsResolver: false, @@ -35966,8 +38109,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersisten return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_volumeMode(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeMode(ctx, field) if err != nil { return graphql.Null } @@ -35980,7 +38123,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, nil + return obj.VolumeMode, nil }) if err != nil { ec.Error(ctx, err) @@ -35989,26 +38132,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc 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_K8s__io___api___core___v1__RBDPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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) _K8s__io___api___core___v1__RBDPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_secretRef(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeSpec_vsphereVolume(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_vsphereVolume(ctx, field) if err != nil { return graphql.Null } @@ -36021,7 +38164,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecretRef, nil + return obj.VsphereVolume, nil }) if err != nil { ec.Error(ctx, err) @@ -36030,32 +38173,36 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1SecretReference) + res := resTmp.(*model.K8sIoAPICoreV1VsphereVirtualDiskVolumeSource) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__VsphereVirtualDiskVolumeSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1VsphereVirtualDiskVolumeSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_vsphereVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeSpec", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) - case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) + case "fsType": + return ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_fsType(ctx, field) + case "storagePolicyID": + return ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyID(ctx, field) + case "storagePolicyName": + return ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyName(ctx, field) + case "volumePath": + return ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_volumePath(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_user(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_user(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_lastPhaseTransitionTime(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_lastPhaseTransitionTime(ctx, field) if err != nil { return graphql.Null } @@ -36068,7 +38215,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User, nil + return obj.LastPhaseTransitionTime, nil }) if err != nil { ec.Error(ctx, err) @@ -36079,24 +38226,24 @@ func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSourc } 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_K8s__io___api___core___v1__RBDPersistentVolumeSource_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_lastPhaseTransitionTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeStatus", 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) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_fsType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_message(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_message(ctx, field) if err != nil { return graphql.Null } @@ -36109,7 +38256,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FsType, nil + return obj.Message, nil }) if err != nil { ec.Error(ctx, err) @@ -36123,9 +38270,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeStatus", Field: field, IsMethod: false, IsResolver: false, @@ -36136,8 +38283,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersi return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_gateway(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_gateway(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_phase(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_phase(ctx, field) if err != nil { return graphql.Null } @@ -36150,38 +38297,35 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Gateway, nil + return obj.Phase, 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.K8sIoAPICoreV1PersistentVolumePhase) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__PersistentVolumePhase2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumePhase(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_gateway(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_phase(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeStatus", 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 K8s__io___api___core___v1__PersistentVolumePhase does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_protectionDomain(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_protectionDomain(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PersistentVolumeStatus_reason(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PersistentVolumeStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_reason(ctx, field) if err != nil { return graphql.Null } @@ -36194,7 +38338,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProtectionDomain, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -36208,9 +38352,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_protectionDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PersistentVolumeStatus", Field: field, IsMethod: false, IsResolver: false, @@ -36221,8 +38365,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersi return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PhotonPersistentDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -36235,7 +38379,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, nil + return obj.FsType, nil }) if err != nil { ec.Error(ctx, err) @@ -36244,26 +38388,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS 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_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource", 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) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_secretRef(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_pdID(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PhotonPersistentDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_pdID(ctx, field) if err != nil { return graphql.Null } @@ -36276,41 +38420,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecretRef, nil + return obj.PdID, 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.K8sIoAPICoreV1SecretReference) + res := resTmp.(string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource_pdID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) - case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_sslEnabled(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_sslEnabled(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PortworxVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PortworxVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -36323,7 +38464,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SslEnabled, nil + return obj.FsType, nil }) if err != nil { ec.Error(ctx, err) @@ -36332,26 +38473,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS 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_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_sslEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PortworxVolumeSource", 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) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storageMode(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storageMode(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PortworxVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PortworxVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -36364,7 +38505,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StorageMode, nil + return obj.ReadOnly, nil }) if err != nil { ec.Error(ctx, err) @@ -36373,26 +38514,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS 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_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storageMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PortworxVolumeSource", 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) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storagePool(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storagePool(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__PortworxVolumeSource_volumeID(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1PortworxVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_volumeID(ctx, field) if err != nil { return graphql.Null } @@ -36405,23 +38546,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StoragePool, nil + return obj.VolumeID, 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_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storagePool(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__PortworxVolumeSource_volumeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", + Object: "K8s__io___api___core___v1__PortworxVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -36432,8 +38576,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersi return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_system(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_system(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_group(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1QuobyteVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_group(ctx, field) if err != nil { return graphql.Null } @@ -36446,26 +38590,23 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.System, nil + return obj.Group, 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_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", + Object: "K8s__io___api___core___v1__QuobyteVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -36476,8 +38617,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersi return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_volumeName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_volumeName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1QuobyteVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -36490,7 +38631,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeName, nil + return obj.ReadOnly, nil }) if err != nil { ec.Error(ctx, err) @@ -36499,26 +38640,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeS 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_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_volumeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", + Object: "K8s__io___api___core___v1__QuobyteVolumeSource", 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) _K8s__io___api___core___v1__SecretReference_name(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1SecretReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__SecretReference_name(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_registry(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1QuobyteVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_registry(ctx, field) if err != nil { return graphql.Null } @@ -36531,23 +38672,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__SecretReference_name(ctx }() 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.Registry, 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_K8s__io___api___core___v1__SecretReference_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_registry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__SecretReference", + Object: "K8s__io___api___core___v1__QuobyteVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -36558,8 +38702,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__SecretRefere return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__SecretReference_namespace(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1SecretReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_tenant(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1QuobyteVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_tenant(ctx, field) if err != nil { return graphql.Null } @@ -36572,7 +38716,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__SecretReference_namespac }() 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.Tenant, nil }) if err != nil { ec.Error(ctx, err) @@ -36586,9 +38730,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__SecretReference_namespac return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__SecretReference_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_tenant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__SecretReference", + Object: "K8s__io___api___core___v1__QuobyteVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -36599,8 +38743,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__SecretRefere return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1StorageOSPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_fsType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_user(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1QuobyteVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_user(ctx, field) if err != nil { return graphql.Null } @@ -36613,7 +38757,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolum }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FsType, nil + return obj.User, nil }) if err != nil { ec.Error(ctx, err) @@ -36627,9 +38771,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolum return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__StorageOSPersistentVolumeSource", + Object: "K8s__io___api___core___v1__QuobyteVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -36640,8 +38784,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__StorageOSPer return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1StorageOSPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_readOnly(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__QuobyteVolumeSource_volume(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1QuobyteVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_volume(ctx, field) if err != nil { return graphql.Null } @@ -36654,35 +38798,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolum }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReadOnly, nil + return obj.Volume, 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.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__QuobyteVolumeSource_volume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__StorageOSPersistentVolumeSource", + Object: "K8s__io___api___core___v1__QuobyteVolumeSource", 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) _K8s__io___api___core___v1__StorageOSPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1StorageOSPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_secretRef(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -36695,7 +38842,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolum }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecretRef, nil + return obj.FsType, nil }) if err != nil { ec.Error(ctx, err) @@ -36704,42 +38851,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolum if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1ObjectReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__ObjectReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ObjectReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__StorageOSPersistentVolumeSource", + Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", 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_K8s__io___api___core___v1__ObjectReference_apiVersion(ctx, field) - case "fieldPath": - return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_fieldPath(ctx, field) - case "kind": - return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_kind(ctx, field) - case "name": - return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_name(ctx, field) - case "namespace": - return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_namespace(ctx, field) - case "resourceVersion": - return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_resourceVersion(ctx, field) - case "uid": - return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_uid(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__ObjectReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1StorageOSPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_image(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_image(ctx, field) if err != nil { return graphql.Null } @@ -36752,23 +38883,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolum }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeName, nil + return obj.Image, 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_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_image(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__StorageOSPersistentVolumeSource", + Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -36779,8 +38913,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__StorageOSPer return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeNamespace(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1StorageOSPersistentVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeNamespace(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_keyring(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_keyring(ctx, field) if err != nil { return graphql.Null } @@ -36793,7 +38927,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolum }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumeNamespace, nil + return obj.Keyring, nil }) if err != nil { ec.Error(ctx, err) @@ -36807,9 +38941,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolum return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeNamespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_keyring(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__StorageOSPersistentVolumeSource", + Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -36820,8 +38954,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__StorageOSPer return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__Taint_effect(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Taint) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__Taint_effect(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_monitors(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_monitors(ctx, field) if err != nil { return graphql.Null } @@ -36834,7 +38968,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__Taint_effect(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Effect, nil + return obj.Monitors, nil }) if err != nil { ec.Error(ctx, err) @@ -36846,26 +38980,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__Taint_effect(ctx context } return graphql.Null } - res := resTmp.(model.K8sIoAPICoreV1TaintEffect) + res := resTmp.([]string) fc.Result = res - return ec.marshalNK8s__io___api___core___v1__TaintEffect2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TaintEffect(ctx, field.Selections, res) + return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Taint_effect(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_monitors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__Taint", + Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type K8s__io___api___core___v1__TaintEffect does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__Taint_key(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Taint) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__Taint_key(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_pool(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_pool(ctx, field) if err != nil { return graphql.Null } @@ -36878,26 +39012,23 @@ func (ec *executionContext) _K8s__io___api___core___v1__Taint_key(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.Key, nil + return obj.Pool, 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_K8s__io___api___core___v1__Taint_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_pool(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__Taint", + Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -36908,8 +39039,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Taint_key(_ return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__Taint_timeAdded(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Taint) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__Taint_timeAdded(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -36922,7 +39053,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__Taint_timeAdded(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TimeAdded, nil + return obj.ReadOnly, nil }) if err != nil { ec.Error(ctx, err) @@ -36931,26 +39062,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__Taint_timeAdded(ctx cont if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*bool) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Taint_timeAdded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__Taint", + Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", 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 Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__Taint_value(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Taint) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__Taint_value(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_secretRef(ctx, field) if err != nil { return graphql.Null } @@ -36963,7 +39094,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__Taint_value(ctx context. }() 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.SecretRef, nil }) if err != nil { ec.Error(ctx, err) @@ -36972,26 +39103,32 @@ func (ec *executionContext) _K8s__io___api___core___v1__Taint_value(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1SecretReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Taint_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__Taint", + Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) + case "namespace": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__TypedLocalObjectReference_apiGroup(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedLocalObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_apiGroup(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__RBDPersistentVolumeSource_user(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1RBDPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_user(ctx, field) if err != nil { return graphql.Null } @@ -37004,7 +39141,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__TypedLocalObjectReferenc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.APIGroup, nil + return obj.User, nil }) if err != nil { ec.Error(ctx, err) @@ -37018,9 +39155,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__TypedLocalObjectReferenc return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_apiGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__RBDPersistentVolumeSource_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__TypedLocalObjectReference", + Object: "K8s__io___api___core___v1__RBDPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -37031,8 +39168,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedLocalOb return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__TypedLocalObjectReference_kind(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedLocalObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_kind(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -37045,26 +39182,23 @@ func (ec *executionContext) _K8s__io___api___core___v1__TypedLocalObjectReferenc }() 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.FsType, 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_K8s__io___api___core___v1__TypedLocalObjectReference_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__TypedLocalObjectReference", + Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -37075,8 +39209,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedLocalOb return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__TypedLocalObjectReference_name(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedLocalObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_name(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_gateway(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_gateway(ctx, field) if err != nil { return graphql.Null } @@ -37089,7 +39223,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__TypedLocalObjectReferenc }() 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.Gateway, nil }) if err != nil { ec.Error(ctx, err) @@ -37106,9 +39240,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__TypedLocalObjectReferenc return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_gateway(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__TypedLocalObjectReference", + Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -37119,8 +39253,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedLocalOb return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_apiGroup(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_apiGroup(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_protectionDomain(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_protectionDomain(ctx, field) if err != nil { return graphql.Null } @@ -37133,7 +39267,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_api }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.APIGroup, nil + return obj.ProtectionDomain, nil }) if err != nil { ec.Error(ctx, err) @@ -37147,9 +39281,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_api return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedObjectReference_apiGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_protectionDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__TypedObjectReference", + Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -37160,8 +39294,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedObjectR return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_kind(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_kind(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -37174,38 +39308,35 @@ func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_kin }() 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.ReadOnly, 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_K8s__io___api___core___v1__TypedObjectReference_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__TypedObjectReference", + Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", 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) _K8s__io___api___core___v1__TypedObjectReference_name(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_name(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_secretRef(ctx, field) if err != nil { return graphql.Null } @@ -37218,38 +39349,41 @@ func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_nam }() 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.SecretRef, 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.K8sIoAPICoreV1SecretReference) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__SecretReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedObjectReference_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__TypedObjectReference", + Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", 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_K8s__io___api___core___v1__SecretReference_name(ctx, field) + case "namespace": + return ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__SecretReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_namespace(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedObjectReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_namespace(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_sslEnabled(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_sslEnabled(ctx, field) if err != nil { return graphql.Null } @@ -37262,7 +39396,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_nam }() 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.SslEnabled, nil }) if err != nil { ec.Error(ctx, err) @@ -37271,26 +39405,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_nam 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_K8s__io___api___core___v1__TypedObjectReference_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_sslEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__TypedObjectReference", + Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", 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) _K8s__io___api___core___v1__VolumeNodeAffinity_required(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VolumeNodeAffinity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__VolumeNodeAffinity_required(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storageMode(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storageMode(ctx, field) if err != nil { return graphql.Null } @@ -37303,7 +39437,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__VolumeNodeAffinity_requi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Required, nil + return obj.StorageMode, nil }) if err != nil { ec.Error(ctx, err) @@ -37312,30 +39446,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__VolumeNodeAffinity_requi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1NodeSelector) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__NodeSelector2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NodeSelector(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VolumeNodeAffinity_required(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storageMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__VolumeNodeAffinity", + Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "nodeSelectorTerms": - return ec.fieldContext_K8s__io___api___core___v1__NodeSelector_nodeSelectorTerms(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NodeSelector", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__VolumeResourceRequirements_limits(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VolumeResourceRequirements) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__VolumeResourceRequirements_limits(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storagePool(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storagePool(ctx, field) if err != nil { return graphql.Null } @@ -37348,7 +39478,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__VolumeResourceRequiremen }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Limits, nil + return obj.StoragePool, nil }) if err != nil { ec.Error(ctx, err) @@ -37357,26 +39487,26 @@ func (ec *executionContext) _K8s__io___api___core___v1__VolumeResourceRequiremen 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_K8s__io___api___core___v1__VolumeResourceRequirements_limits(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_storagePool(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__VolumeResourceRequirements", + Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", 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) _K8s__io___api___core___v1__VolumeResourceRequirements_requests(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VolumeResourceRequirements) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__VolumeResourceRequirements_requests(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_system(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_system(ctx, field) if err != nil { return graphql.Null } @@ -37389,35 +39519,38 @@ func (ec *executionContext) _K8s__io___api___core___v1__VolumeResourceRequiremen }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Requests, nil + return obj.System, 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_K8s__io___api___core___v1__VolumeResourceRequirements_requests(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__VolumeResourceRequirements", + Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", 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) _K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VsphereVirtualDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_fsType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_volumeName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1ScaleIOPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_volumeName(ctx, field) if err != nil { return graphql.Null } @@ -37430,7 +39563,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolume }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FsType, nil + return obj.VolumeName, nil }) if err != nil { ec.Error(ctx, err) @@ -37444,9 +39577,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolume return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__ScaleIOPersistentVolumeSource_volumeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource", + Object: "K8s__io___api___core___v1__ScaleIOPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -37457,8 +39590,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VsphereVirtu return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyID(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VsphereVirtualDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyID(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__SecretReference_name(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1SecretReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__SecretReference_name(ctx, field) if err != nil { return graphql.Null } @@ -37471,7 +39604,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolume }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StoragePolicyID, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -37485,9 +39618,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolume return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__SecretReference_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource", + Object: "K8s__io___api___core___v1__SecretReference", Field: field, IsMethod: false, IsResolver: false, @@ -37498,8 +39631,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VsphereVirtu return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VsphereVirtualDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__SecretReference_namespace(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1SecretReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__SecretReference_namespace(ctx, field) if err != nil { return graphql.Null } @@ -37512,7 +39645,7 @@ func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolume }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StoragePolicyName, nil + return obj.Namespace, nil }) if err != nil { ec.Error(ctx, err) @@ -37526,9 +39659,9 @@ func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolume return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__SecretReference_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource", + Object: "K8s__io___api___core___v1__SecretReference", Field: field, IsMethod: false, IsResolver: false, @@ -37539,8 +39672,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VsphereVirtu return fc, nil } -func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_volumePath(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VsphereVirtualDiskVolumeSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_volumePath(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1StorageOSPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -37553,26 +39686,23 @@ func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolume }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VolumePath, nil + return obj.FsType, 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_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_volumePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource", + Object: "K8s__io___api___core___v1__StorageOSPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -37583,8 +39713,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VsphereVirtu return fc, nil } -func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSource_inlineVolumeSpec(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSource_inlineVolumeSpec(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolumeSource_readOnly(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1StorageOSPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_readOnly(ctx, field) if err != nil { return graphql.Null } @@ -37597,7 +39727,7 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InlineVolumeSpec, nil + return obj.ReadOnly, nil }) if err != nil { ec.Error(ctx, err) @@ -37606,90 +39736,26 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSourc if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumeSpec) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__PersistentVolumeSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeSpec(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSource_inlineVolumeSpec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_readOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___storage___v1__VolumeAttachmentSource", + Object: "K8s__io___api___core___v1__StorageOSPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "accessModes": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_accessModes(ctx, field) - case "awsElasticBlockStore": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_awsElasticBlockStore(ctx, field) - case "azureDisk": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureDisk(ctx, field) - case "azureFile": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureFile(ctx, field) - case "capacity": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_capacity(ctx, field) - case "cephfs": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cephfs(ctx, field) - case "cinder": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cinder(ctx, field) - case "claimRef": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_claimRef(ctx, field) - case "csi": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_csi(ctx, field) - case "fc": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_fc(ctx, field) - case "flexVolume": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flexVolume(ctx, field) - case "flocker": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flocker(ctx, field) - case "gcePersistentDisk": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_gcePersistentDisk(ctx, field) - case "glusterfs": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_glusterfs(ctx, field) - case "hostPath": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_hostPath(ctx, field) - case "iscsi": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_iscsi(ctx, field) - case "local": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_local(ctx, field) - case "mountOptions": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_mountOptions(ctx, field) - case "nfs": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nfs(ctx, field) - case "nodeAffinity": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nodeAffinity(ctx, field) - case "persistentVolumeReclaimPolicy": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_persistentVolumeReclaimPolicy(ctx, field) - case "photonPersistentDisk": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_photonPersistentDisk(ctx, field) - case "portworxVolume": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_portworxVolume(ctx, field) - case "quobyte": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_quobyte(ctx, field) - case "rbd": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_rbd(ctx, field) - case "scaleIO": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_scaleIO(ctx, field) - case "storageClassName": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageClassName(ctx, field) - case "storageos": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageos(ctx, field) - case "volumeAttributesClassName": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeAttributesClassName(ctx, field) - case "volumeMode": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeMode(ctx, field) - case "vsphereVolume": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_vsphereVolume(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PersistentVolumeSpec", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSource_persistentVolumeName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSource_persistentVolumeName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolumeSource_secretRef(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1StorageOSPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_secretRef(ctx, field) if err != nil { return graphql.Null } @@ -37702,7 +39768,7 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSourc }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersistentVolumeName, nil + return obj.SecretRef, nil }) if err != nil { ec.Error(ctx, err) @@ -37711,26 +39777,42 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSourc if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1ObjectReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__ObjectReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1ObjectReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSource_persistentVolumeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_secretRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___storage___v1__VolumeAttachmentSource", + Object: "K8s__io___api___core___v1__StorageOSPersistentVolumeSource", 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 "apiVersion": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_apiVersion(ctx, field) + case "fieldPath": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_fieldPath(ctx, field) + case "kind": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_kind(ctx, field) + case "name": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_name(ctx, field) + case "namespace": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_namespace(ctx, field) + case "resourceVersion": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_resourceVersion(ctx, field) + case "uid": + return ec.fieldContext_K8s__io___api___core___v1__ObjectReference_uid(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__ObjectReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSpec_attacher(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_attacher(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1StorageOSPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeName(ctx, field) if err != nil { return graphql.Null } @@ -37743,26 +39825,23 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSpec_ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Attacher, nil + return obj.VolumeName, 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_K8s__io___api___storage___v1__VolumeAttachmentSpec_attacher(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___storage___v1__VolumeAttachmentSpec", + Object: "K8s__io___api___core___v1__StorageOSPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -37773,8 +39852,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAtt return fc, nil } -func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSpec_nodeName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_nodeName(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeNamespace(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1StorageOSPersistentVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeNamespace(ctx, field) if err != nil { return graphql.Null } @@ -37787,26 +39866,23 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSpec_ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NodeName, nil + return obj.VolumeNamespace, 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_K8s__io___api___storage___v1__VolumeAttachmentSpec_nodeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__StorageOSPersistentVolumeSource_volumeNamespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___storage___v1__VolumeAttachmentSpec", + Object: "K8s__io___api___core___v1__StorageOSPersistentVolumeSource", Field: field, IsMethod: false, IsResolver: false, @@ -37817,8 +39893,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAtt return fc, nil } -func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSpec_source(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_source(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__Taint_effect(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Taint) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__Taint_effect(ctx, field) if err != nil { return graphql.Null } @@ -37831,7 +39907,7 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSpec_ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Source, nil + return obj.Effect, nil }) if err != nil { ec.Error(ctx, err) @@ -37843,32 +39919,26 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSpec_ } return graphql.Null } - res := resTmp.(*model.K8sIoAPIStorageV1VolumeAttachmentSource) + res := resTmp.(model.K8sIoAPICoreV1TaintEffect) fc.Result = res - return ec.marshalNK8s__io___api___storage___v1__VolumeAttachmentSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeAttachmentSource(ctx, field.Selections, res) + return ec.marshalNK8s__io___api___core___v1__TaintEffect2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TaintEffect(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Taint_effect(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___storage___v1__VolumeAttachmentSpec", + Object: "K8s__io___api___core___v1__Taint", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "inlineVolumeSpec": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSource_inlineVolumeSpec(ctx, field) - case "persistentVolumeName": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSource_persistentVolumeName(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___storage___v1__VolumeAttachmentSource", field.Name) + return nil, errors.New("field of type K8s__io___api___core___v1__TaintEffect does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatus_attached(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attached(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__Taint_key(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Taint) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__Taint_key(ctx, field) if err != nil { return graphql.Null } @@ -37881,7 +39951,7 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Attached, nil + return obj.Key, nil }) if err != nil { ec.Error(ctx, err) @@ -37893,26 +39963,26 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatu } 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_K8s__io___api___storage___v1__VolumeAttachmentStatus_attached(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Taint_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___storage___v1__VolumeAttachmentStatus", + Object: "K8s__io___api___core___v1__Taint", 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) _K8s__io___api___storage___v1__VolumeAttachmentStatus_attachError(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attachError(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__Taint_timeAdded(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Taint) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__Taint_timeAdded(ctx, field) if err != nil { return graphql.Null } @@ -37925,7 +39995,7 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AttachError, nil + return obj.TimeAdded, nil }) if err != nil { ec.Error(ctx, err) @@ -37934,32 +40004,26 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatu if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPIStorageV1VolumeError) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___api___storage___v1__VolumeError2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeError(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attachError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Taint_timeAdded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___storage___v1__VolumeAttachmentStatus", + Object: "K8s__io___api___core___v1__Taint", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "message": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeError_message(ctx, field) - case "time": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeError_time(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___storage___v1__VolumeError", field.Name) + return nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatus_attachmentMetadata(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attachmentMetadata(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__Taint_value(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Taint) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__Taint_value(ctx, field) if err != nil { return graphql.Null } @@ -37972,7 +40036,7 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AttachmentMetadata, nil + return obj.Value, nil }) if err != nil { ec.Error(ctx, err) @@ -37981,26 +40045,26 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatu 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_K8s__io___api___storage___v1__VolumeAttachmentStatus_attachmentMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Taint_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___storage___v1__VolumeAttachmentStatus", + Object: "K8s__io___api___core___v1__Taint", 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) _K8s__io___api___storage___v1__VolumeAttachmentStatus_detachError(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_detachError(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__Toleration_effect(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Toleration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__Toleration_effect(ctx, field) if err != nil { return graphql.Null } @@ -38013,7 +40077,7 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatu }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DetachError, nil + return obj.Effect, nil }) if err != nil { ec.Error(ctx, err) @@ -38022,32 +40086,26 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatu if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPIStorageV1VolumeError) + res := resTmp.(*model.K8sIoAPICoreV1TaintEffect) fc.Result = res - return ec.marshalOK8s__io___api___storage___v1__VolumeError2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeError(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__TaintEffect2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TaintEffect(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_detachError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Toleration_effect(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___storage___v1__VolumeAttachmentStatus", + Object: "K8s__io___api___core___v1__Toleration", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "message": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeError_message(ctx, field) - case "time": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeError_time(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___storage___v1__VolumeError", field.Name) + return nil, errors.New("field of type K8s__io___api___core___v1__TaintEffect does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___api___storage___v1__VolumeError_message(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeError) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeError_message(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__Toleration_key(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Toleration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__Toleration_key(ctx, field) if err != nil { return graphql.Null } @@ -38060,7 +40118,7 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeError_message(c }() 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.Key, nil }) if err != nil { ec.Error(ctx, err) @@ -38074,9 +40132,9 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeError_message(c return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeError_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Toleration_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___storage___v1__VolumeError", + Object: "K8s__io___api___core___v1__Toleration", Field: field, IsMethod: false, IsResolver: false, @@ -38087,8 +40145,8 @@ func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeErr return fc, nil } -func (ec *executionContext) _K8s__io___api___storage___v1__VolumeError_time(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeError) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeError_time(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__Toleration_operator(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Toleration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__Toleration_operator(ctx, field) if err != nil { return graphql.Null } @@ -38101,7 +40159,7 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeError_time(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Time, nil + return obj.Operator, nil }) if err != nil { ec.Error(ctx, err) @@ -38110,26 +40168,26 @@ func (ec *executionContext) _K8s__io___api___storage___v1__VolumeError_time(ctx if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.K8sIoAPICoreV1TolerationOperator) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__TolerationOperator2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TolerationOperator(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeError_time(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Toleration_operator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___api___storage___v1__VolumeError", + Object: "K8s__io___api___core___v1__Toleration", 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 K8s__io___api___core___v1__TolerationOperator does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___apimachinery___pkg___api___resource__Quantity_Format(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoApimachineryPkgAPIResourceQuantity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___apimachinery___pkg___api___resource__Quantity_Format(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__Toleration_tolerationSeconds(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Toleration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__Toleration_tolerationSeconds(ctx, field) if err != nil { return graphql.Null } @@ -38142,38 +40200,35 @@ func (ec *executionContext) _K8s__io___apimachinery___pkg___api___resource__Quan }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Format, nil + return obj.TolerationSeconds, 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.K8sIoApimachineryPkgAPIResourceFormat) + res := resTmp.(*int) fc.Result = res - return ec.marshalNK8s__io___apimachinery___pkg___api___resource__Format2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoApimachineryPkgAPIResourceFormat(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___apimachinery___pkg___api___resource__Quantity_Format(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Toleration_tolerationSeconds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___apimachinery___pkg___api___resource__Quantity", + Object: "K8s__io___api___core___v1__Toleration", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type K8s__io___apimachinery___pkg___api___resource__Format does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchExpressions(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoApimachineryPkgApisMetaV1LabelSelector) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchExpressions(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__Toleration_value(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1Toleration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__Toleration_value(ctx, field) if err != nil { return graphql.Null } @@ -38186,7 +40241,7 @@ func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__La }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MatchExpressions, nil + return obj.Value, nil }) if err != nil { ec.Error(ctx, err) @@ -38195,34 +40250,26 @@ func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__La if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement) + res := resTmp.(*string) fc.Result = res - return ec.marshalOK8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoApimachineryPkgApisMetaV1LabelSelectorRequirementᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchExpressions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__Toleration_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector", + Object: "K8s__io___api___core___v1__Toleration", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "key": - return ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_key(ctx, field) - case "operator": - return ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_operator(ctx, field) - case "values": - return ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchLabels(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoApimachineryPkgApisMetaV1LabelSelector) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchLabels(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__TypedLocalObjectReference_apiGroup(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedLocalObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_apiGroup(ctx, field) if err != nil { return graphql.Null } @@ -38235,7 +40282,7 @@ func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__La }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MatchLabels, nil + return obj.APIGroup, nil }) if err != nil { ec.Error(ctx, err) @@ -38244,26 +40291,26 @@ func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__La 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_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchLabels(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_apiGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector", + Object: "K8s__io___api___core___v1__TypedLocalObjectReference", 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) _K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_key(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_key(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__TypedLocalObjectReference_kind(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedLocalObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_kind(ctx, field) if err != nil { return graphql.Null } @@ -38276,7 +40323,7 @@ func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__La }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Key, nil + return obj.Kind, nil }) if err != nil { ec.Error(ctx, err) @@ -38293,9 +40340,9 @@ func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__La return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement", + Object: "K8s__io___api___core___v1__TypedLocalObjectReference", Field: field, IsMethod: false, IsResolver: false, @@ -38306,8 +40353,8 @@ func (ec *executionContext) fieldContext_K8s__io___apimachinery___pkg___apis___m return fc, nil } -func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_operator(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_operator(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__TypedLocalObjectReference_name(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedLocalObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_name(ctx, field) if err != nil { return graphql.Null } @@ -38320,7 +40367,7 @@ func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__La }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operator, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -38332,26 +40379,26 @@ func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__La } return graphql.Null } - res := resTmp.(model.K8sIoApimachineryPkgApisMetaV1LabelSelectorOperator) + res := resTmp.(string) fc.Result = res - return ec.marshalNK8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorOperator2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoApimachineryPkgApisMetaV1LabelSelectorOperator(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_operator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedLocalObjectReference_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement", + Object: "K8s__io___api___core___v1__TypedLocalObjectReference", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorOperator does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_values(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_values(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_apiGroup(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_apiGroup(ctx, field) if err != nil { return graphql.Null } @@ -38364,7 +40411,7 @@ func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__La }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Values, nil + return obj.APIGroup, nil }) if err != nil { ec.Error(ctx, err) @@ -38373,14 +40420,14 @@ func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__La 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_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_values(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedObjectReference_apiGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement", + Object: "K8s__io___api___core___v1__TypedObjectReference", Field: field, IsMethod: false, IsResolver: false, @@ -38391,8 +40438,8 @@ func (ec *executionContext) fieldContext_K8s__io___apimachinery___pkg___apis___m 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) +func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_kind(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_kind(ctx, field) if err != nil { return graphql.Null } @@ -38405,35 +40452,38 @@ func (ec *executionContext) _MatchFilter_array(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.Array, 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.([]any) + res := resTmp.(string) fc.Result = res - return ec.marshalOAny2ᚕinterfaceᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MatchFilter_array(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedObjectReference_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MatchFilter", + Object: "K8s__io___api___core___v1__TypedObjectReference", 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) _MatchFilter_exact(ctx context.Context, field graphql.CollectedField, obj *repos.MatchFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MatchFilter_exact(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_name(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_name(ctx, field) if err != nil { return graphql.Null } @@ -38446,35 +40496,38 @@ func (ec *executionContext) _MatchFilter_exact(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.Exact, 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.(any) + res := resTmp.(string) fc.Result = res - return ec.marshalOAny2interface(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MatchFilter_exact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedObjectReference_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MatchFilter", + Object: "K8s__io___api___core___v1__TypedObjectReference", 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) _MatchFilter_matchType(ctx context.Context, field graphql.CollectedField, obj *repos.MatchFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MatchFilter_matchType(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__TypedObjectReference_namespace(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1TypedObjectReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__TypedObjectReference_namespace(ctx, field) if err != nil { return graphql.Null } @@ -38487,38 +40540,35 @@ func (ec *executionContext) _MatchFilter_matchType(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.MatchType, nil + 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.(repos.MatchType) + res := resTmp.(*string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___pkg___repos__MatchType2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MatchFilter_matchType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__TypedObjectReference_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MatchFilter", + Object: "K8s__io___api___core___v1__TypedObjectReference", 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___repos__MatchType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MatchFilter_notInArray(ctx context.Context, field graphql.CollectedField, obj *repos.MatchFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MatchFilter_notInArray(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__VolumeNodeAffinity_required(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VolumeNodeAffinity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__VolumeNodeAffinity_required(ctx, field) if err != nil { return graphql.Null } @@ -38531,7 +40581,7 @@ func (ec *executionContext) _MatchFilter_notInArray(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.NotInArray, nil + return obj.Required, nil }) if err != nil { ec.Error(ctx, err) @@ -38540,26 +40590,30 @@ func (ec *executionContext) _MatchFilter_notInArray(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]any) + res := resTmp.(*model.K8sIoAPICoreV1NodeSelector) fc.Result = res - return ec.marshalOAny2ᚕinterfaceᚄ(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__NodeSelector2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NodeSelector(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MatchFilter_notInArray(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VolumeNodeAffinity_required(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MatchFilter", + Object: "K8s__io___api___core___v1__VolumeNodeAffinity", 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") + switch field.Name { + case "nodeSelectorTerms": + return ec.fieldContext_K8s__io___api___core___v1__NodeSelector_nodeSelectorTerms(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NodeSelector", field.Name) }, } 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) +func (ec *executionContext) _K8s__io___api___core___v1__VolumeResourceRequirements_limits(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VolumeResourceRequirements) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__VolumeResourceRequirements_limits(ctx, field) if err != nil { return graphql.Null } @@ -38572,7 +40626,7 @@ func (ec *executionContext) _MatchFilter_regex(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.Regex, nil + return obj.Limits, nil }) if err != nil { ec.Error(ctx, err) @@ -38581,26 +40635,26 @@ func (ec *executionContext) _MatchFilter_regex(ctx context.Context, field graphq 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_MatchFilter_regex(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VolumeResourceRequirements_limits(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MatchFilter", + Object: "K8s__io___api___core___v1__VolumeResourceRequirements", 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) _Metadata_annotations(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Metadata_annotations(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__VolumeResourceRequirements_requests(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VolumeResourceRequirements) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__VolumeResourceRequirements_requests(ctx, field) if err != nil { return graphql.Null } @@ -38613,7 +40667,7 @@ func (ec *executionContext) _Metadata_annotations(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.Metadata().Annotations(rctx, obj) + return obj.Requests, nil }) if err != nil { ec.Error(ctx, err) @@ -38627,12 +40681,12 @@ func (ec *executionContext) _Metadata_annotations(ctx context.Context, field gra return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Metadata_annotations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VolumeResourceRequirements_requests(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Metadata", + Object: "K8s__io___api___core___v1__VolumeResourceRequirements", 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 Map does not have child fields") }, @@ -38640,8 +40694,8 @@ func (ec *executionContext) fieldContext_Metadata_annotations(_ context.Context, 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) +func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_fsType(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VsphereVirtualDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_fsType(ctx, field) if err != nil { return graphql.Null } @@ -38654,38 +40708,35 @@ func (ec *executionContext) _Metadata_creationTimestamp(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.Metadata().CreationTimestamp(rctx, obj) + return obj.FsType, 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.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Metadata_creationTimestamp(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_fsType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Metadata", + Object: "K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource", 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) _Metadata_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Metadata_deletionTimestamp(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyID(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VsphereVirtualDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyID(ctx, field) if err != nil { return graphql.Null } @@ -38698,7 +40749,7 @@ func (ec *executionContext) _Metadata_deletionTimestamp(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.Metadata().DeletionTimestamp(rctx, obj) + return obj.StoragePolicyID, nil }) if err != nil { ec.Error(ctx, err) @@ -38709,24 +40760,24 @@ func (ec *executionContext) _Metadata_deletionTimestamp(ctx context.Context, fie } res := resTmp.(*string) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Metadata_deletionTimestamp(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Metadata", + Object: "K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource", 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) _Metadata_generation(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Metadata_generation(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VsphereVirtualDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyName(ctx, field) if err != nil { return graphql.Null } @@ -38739,38 +40790,35 @@ func (ec *executionContext) _Metadata_generation(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.Generation, nil + return obj.StoragePolicyName, 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.marshalNInt2int64(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Metadata_generation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_storagePolicyName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Metadata", + Object: "K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource", 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) _Metadata_labels(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Metadata_labels(ctx, field) +func (ec *executionContext) _K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_volumePath(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPICoreV1VsphereVirtualDiskVolumeSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_volumePath(ctx, field) if err != nil { return graphql.Null } @@ -38783,35 +40831,38 @@ func (ec *executionContext) _Metadata_labels(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.Metadata().Labels(rctx, obj) + return obj.VolumePath, 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_Metadata_labels(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource_volumePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Metadata", + Object: "K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource", 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 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) _Metadata_name(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Metadata_name(ctx, field) +func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSource_inlineVolumeSpec(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSource_inlineVolumeSpec(ctx, field) if err != nil { return graphql.Null } @@ -38824,38 +40875,99 @@ func (ec *executionContext) _Metadata_name(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.Name, nil + return obj.InlineVolumeSpec, 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.K8sIoAPICoreV1PersistentVolumeSpec) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__PersistentVolumeSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeSpec(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Metadata_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSource_inlineVolumeSpec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Metadata", + Object: "K8s__io___api___storage___v1__VolumeAttachmentSource", 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 "accessModes": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_accessModes(ctx, field) + case "awsElasticBlockStore": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_awsElasticBlockStore(ctx, field) + case "azureDisk": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureDisk(ctx, field) + case "azureFile": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureFile(ctx, field) + case "capacity": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_capacity(ctx, field) + case "cephfs": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cephfs(ctx, field) + case "cinder": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cinder(ctx, field) + case "claimRef": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_claimRef(ctx, field) + case "csi": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_csi(ctx, field) + case "fc": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_fc(ctx, field) + case "flexVolume": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flexVolume(ctx, field) + case "flocker": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flocker(ctx, field) + case "gcePersistentDisk": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_gcePersistentDisk(ctx, field) + case "glusterfs": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_glusterfs(ctx, field) + case "hostPath": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_hostPath(ctx, field) + case "iscsi": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_iscsi(ctx, field) + case "local": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_local(ctx, field) + case "mountOptions": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_mountOptions(ctx, field) + case "nfs": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nfs(ctx, field) + case "nodeAffinity": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nodeAffinity(ctx, field) + case "persistentVolumeReclaimPolicy": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_persistentVolumeReclaimPolicy(ctx, field) + case "photonPersistentDisk": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_photonPersistentDisk(ctx, field) + case "portworxVolume": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_portworxVolume(ctx, field) + case "quobyte": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_quobyte(ctx, field) + case "rbd": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_rbd(ctx, field) + case "scaleIO": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_scaleIO(ctx, field) + case "storageClassName": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageClassName(ctx, field) + case "storageos": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageos(ctx, field) + case "volumeAttributesClassName": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeAttributesClassName(ctx, field) + case "volumeMode": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeMode(ctx, field) + case "vsphereVolume": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_vsphereVolume(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PersistentVolumeSpec", field.Name) }, } 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) +func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSource_persistentVolumeName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSource_persistentVolumeName(ctx, field) if err != nil { return graphql.Null } @@ -38868,7 +40980,7 @@ func (ec *executionContext) _Metadata_namespace(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.Namespace, nil + return obj.PersistentVolumeName, nil }) if err != nil { ec.Error(ctx, err) @@ -38877,14 +40989,14 @@ func (ec *executionContext) _Metadata_namespace(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Metadata_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSource_persistentVolumeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Metadata", + Object: "K8s__io___api___storage___v1__VolumeAttachmentSource", Field: field, IsMethod: false, IsResolver: false, @@ -38895,8 +41007,8 @@ func (ec *executionContext) fieldContext_Metadata_namespace(_ context.Context, f return fc, nil } -func (ec *executionContext) _MsvcTemplate_category(ctx context.Context, field graphql.CollectedField, obj *entities.MsvcTemplate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MsvcTemplate_category(ctx, field) +func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSpec_attacher(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_attacher(ctx, field) if err != nil { return graphql.Null } @@ -38909,7 +41021,7 @@ func (ec *executionContext) _MsvcTemplate_category(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.Category, nil + return obj.Attacher, nil }) if err != nil { ec.Error(ctx, err) @@ -38926,9 +41038,9 @@ func (ec *executionContext) _MsvcTemplate_category(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MsvcTemplate_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_attacher(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MsvcTemplate", + Object: "K8s__io___api___storage___v1__VolumeAttachmentSpec", Field: field, IsMethod: false, IsResolver: false, @@ -38939,8 +41051,8 @@ func (ec *executionContext) fieldContext_MsvcTemplate_category(_ context.Context return fc, nil } -func (ec *executionContext) _MsvcTemplate_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.MsvcTemplate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MsvcTemplate_displayName(ctx, field) +func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSpec_nodeName(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_nodeName(ctx, field) if err != nil { return graphql.Null } @@ -38953,7 +41065,7 @@ func (ec *executionContext) _MsvcTemplate_displayName(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.DisplayName, nil + return obj.NodeName, nil }) if err != nil { ec.Error(ctx, err) @@ -38970,9 +41082,9 @@ func (ec *executionContext) _MsvcTemplate_displayName(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MsvcTemplate_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_nodeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MsvcTemplate", + Object: "K8s__io___api___storage___v1__VolumeAttachmentSpec", Field: field, IsMethod: false, IsResolver: false, @@ -38983,8 +41095,8 @@ func (ec *executionContext) fieldContext_MsvcTemplate_displayName(_ context.Cont return fc, nil } -func (ec *executionContext) _MsvcTemplate_items(ctx context.Context, field graphql.CollectedField, obj *entities.MsvcTemplate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MsvcTemplate_items(ctx, field) +func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentSpec_source(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_source(ctx, field) if err != nil { return graphql.Null } @@ -38997,7 +41109,7 @@ func (ec *executionContext) _MsvcTemplate_items(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.Items, nil + return obj.Source, nil }) if err != nil { ec.Error(ctx, err) @@ -39009,48 +41121,32 @@ func (ec *executionContext) _MsvcTemplate_items(ctx context.Context, field graph } return graphql.Null } - res := resTmp.([]entities.MsvcTemplateEntry) + res := resTmp.(*model.K8sIoAPIStorageV1VolumeAttachmentSource) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry2ᚕgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐMsvcTemplateEntryᚄ(ctx, field.Selections, res) + return ec.marshalNK8s__io___api___storage___v1__VolumeAttachmentSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeAttachmentSource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MsvcTemplate_items(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MsvcTemplate", + Object: "K8s__io___api___storage___v1__VolumeAttachmentSpec", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "active": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_active(ctx, field) - case "apiVersion": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_apiVersion(ctx, field) - case "description": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_description(ctx, field) - case "displayName": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_displayName(ctx, field) - case "fields": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_fields(ctx, field) - case "kind": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_kind(ctx, field) - case "logoUrl": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_logoUrl(ctx, field) - case "name": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_name(ctx, field) - case "outputs": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_outputs(ctx, field) - case "resources": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_resources(ctx, field) + case "inlineVolumeSpec": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSource_inlineVolumeSpec(ctx, field) + case "persistentVolumeName": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSource_persistentVolumeName(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___storage___v1__VolumeAttachmentSource", field.Name) }, } return fc, nil } -func (ec *executionContext) _Mutation_infra_createCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_createCluster(ctx, field) +func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatus_attached(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attached(ctx, field) if err != nil { return graphql.Null } @@ -39062,118 +41158,4941 @@ func (ec *executionContext) _Mutation_infra_createCluster(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().InfraCreateCluster(rctx, fc.Args["cluster"].(entities.Cluster)) + ctx = rctx // use context from middleware stack in children + return obj.Attached, 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) +} - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.Cluster - return zeroVal, errors.New("directive isLoggedInAndVerified is not implemented") - } +func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attached(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___api___storage___v1__VolumeAttachmentStatus", + 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) _K8s__io___api___storage___v1__VolumeAttachmentStatus_attachError(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attachError(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.AttachError, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.K8sIoAPIStorageV1VolumeError) + fc.Result = res + return ec.marshalOK8s__io___api___storage___v1__VolumeError2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeError(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attachError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___api___storage___v1__VolumeAttachmentStatus", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "message": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeError_message(ctx, field) + case "time": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeError_time(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___storage___v1__VolumeError", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatus_attachmentMetadata(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attachmentMetadata(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.AttachmentMetadata, nil + }) + 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_K8s__io___api___storage___v1__VolumeAttachmentStatus_attachmentMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___api___storage___v1__VolumeAttachmentStatus", + 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 fc, nil +} + +func (ec *executionContext) _K8s__io___api___storage___v1__VolumeAttachmentStatus_detachError(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeAttachmentStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_detachError(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.DetachError, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.K8sIoAPIStorageV1VolumeError) + fc.Result = res + return ec.marshalOK8s__io___api___storage___v1__VolumeError2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeError(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_detachError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___api___storage___v1__VolumeAttachmentStatus", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "message": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeError_message(ctx, field) + case "time": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeError_time(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___storage___v1__VolumeError", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _K8s__io___api___storage___v1__VolumeError_message(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeError) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeError_message(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Message, 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_K8s__io___api___storage___v1__VolumeError_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___api___storage___v1__VolumeError", + 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) _K8s__io___api___storage___v1__VolumeError_time(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoAPIStorageV1VolumeError) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___api___storage___v1__VolumeError_time(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Time, 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.marshalODate2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_K8s__io___api___storage___v1__VolumeError_time(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___api___storage___v1__VolumeError", + 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 fc, nil +} + +func (ec *executionContext) _K8s__io___apimachinery___pkg___api___resource__Quantity_Format(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoApimachineryPkgAPIResourceQuantity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___apimachinery___pkg___api___resource__Quantity_Format(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Format, 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.K8sIoApimachineryPkgAPIResourceFormat) + fc.Result = res + return ec.marshalNK8s__io___apimachinery___pkg___api___resource__Format2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoApimachineryPkgAPIResourceFormat(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_K8s__io___apimachinery___pkg___api___resource__Quantity_Format(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___apimachinery___pkg___api___resource__Quantity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type K8s__io___apimachinery___pkg___api___resource__Format does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchExpressions(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoApimachineryPkgApisMetaV1LabelSelector) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchExpressions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.MatchExpressions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement) + fc.Result = res + return ec.marshalOK8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoApimachineryPkgApisMetaV1LabelSelectorRequirementᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchExpressions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "key": + return ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_key(ctx, field) + case "operator": + return ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_operator(ctx, field) + case "values": + return ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_values(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchLabels(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoApimachineryPkgApisMetaV1LabelSelector) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchLabels(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.MatchLabels, nil + }) + 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_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector_matchLabels(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector", + 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 fc, nil +} + +func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_key(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_key(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Key, 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_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement", + 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) _K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_operator(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_operator(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Operator, 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.K8sIoApimachineryPkgApisMetaV1LabelSelectorOperator) + fc.Result = res + return ec.marshalNK8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorOperator2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoApimachineryPkgApisMetaV1LabelSelectorOperator(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_operator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorOperator does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_values(ctx context.Context, field graphql.CollectedField, obj *model.K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_values(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Values, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement_values(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement", + 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(_ 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(_ 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.marshalNGithub__com___kloudlite___api___pkg___repos__MatchType2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MatchFilter_matchType(_ 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 Github__com___kloudlite___api___pkg___repos__MatchType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MatchFilter_notInArray(ctx context.Context, field graphql.CollectedField, obj *repos.MatchFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MatchFilter_notInArray(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.NotInArray, 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_notInArray(_ 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_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(_ 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(_ 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(_ 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(_ 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(_ 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(_ 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(_ 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(_ 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) _MsvcTemplate_category(ctx context.Context, field graphql.CollectedField, obj *entities.MsvcTemplate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MsvcTemplate_category(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Category, 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_MsvcTemplate_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MsvcTemplate", + 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) _MsvcTemplate_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.MsvcTemplate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MsvcTemplate_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_MsvcTemplate_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MsvcTemplate", + 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) _MsvcTemplate_items(ctx context.Context, field graphql.CollectedField, obj *entities.MsvcTemplate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MsvcTemplate_items(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Items, 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.MsvcTemplateEntry) + fc.Result = res + return ec.marshalNGithub__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry2ᚕgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐMsvcTemplateEntryᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MsvcTemplate_items(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MsvcTemplate", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "active": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_active(ctx, field) + case "apiVersion": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_apiVersion(ctx, field) + case "description": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_description(ctx, field) + case "displayName": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_displayName(ctx, field) + case "fields": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_fields(ctx, field) + case "kind": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_kind(ctx, field) + case "logoUrl": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_logoUrl(ctx, field) + case "name": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_name(ctx, field) + case "outputs": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_outputs(ctx, field) + case "resources": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_resources(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_createCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_createCluster(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraCreateCluster(rctx, fc.Args["cluster"].(entities.Cluster)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.Cluster + return zeroVal, 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 { + var zeroVal *entities.Cluster + return zeroVal, 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.Cluster); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Cluster`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.Cluster) + fc.Result = res + return ec.marshalOCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCluster(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_createCluster(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_Cluster_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_Cluster_apiVersion(ctx, field) + case "createdBy": + return ec.fieldContext_Cluster_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Cluster_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_Cluster_displayName(ctx, field) + case "globalVPN": + return ec.fieldContext_Cluster_globalVPN(ctx, field) + case "id": + return ec.fieldContext_Cluster_id(ctx, field) + case "kind": + return ec.fieldContext_Cluster_kind(ctx, field) + case "lastOnlineAt": + return ec.fieldContext_Cluster_lastOnlineAt(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Cluster_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Cluster_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_Cluster_metadata(ctx, field) + case "ownedBy": + return ec.fieldContext_Cluster_ownedBy(ctx, field) + case "recordVersion": + return ec.fieldContext_Cluster_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_Cluster_spec(ctx, field) + case "status": + return ec.fieldContext_Cluster_status(ctx, field) + case "syncStatus": + return ec.fieldContext_Cluster_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_Cluster_updateTime(ctx, field) + case "adminKubeconfig": + return ec.fieldContext_Cluster_adminKubeconfig(ctx, field) + case "clusterDNSSuffix": + return ec.fieldContext_Cluster_clusterDNSSuffix(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Cluster", 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_infra_createCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_updateCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_updateCluster(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraUpdateCluster(rctx, fc.Args["cluster"].(entities.Cluster)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.Cluster + return zeroVal, 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 { + var zeroVal *entities.Cluster + return zeroVal, 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.Cluster); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Cluster`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.Cluster) + fc.Result = res + return ec.marshalOCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCluster(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_updateCluster(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_Cluster_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_Cluster_apiVersion(ctx, field) + case "createdBy": + return ec.fieldContext_Cluster_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Cluster_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_Cluster_displayName(ctx, field) + case "globalVPN": + return ec.fieldContext_Cluster_globalVPN(ctx, field) + case "id": + return ec.fieldContext_Cluster_id(ctx, field) + case "kind": + return ec.fieldContext_Cluster_kind(ctx, field) + case "lastOnlineAt": + return ec.fieldContext_Cluster_lastOnlineAt(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Cluster_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Cluster_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_Cluster_metadata(ctx, field) + case "ownedBy": + return ec.fieldContext_Cluster_ownedBy(ctx, field) + case "recordVersion": + return ec.fieldContext_Cluster_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_Cluster_spec(ctx, field) + case "status": + return ec.fieldContext_Cluster_status(ctx, field) + case "syncStatus": + return ec.fieldContext_Cluster_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_Cluster_updateTime(ctx, field) + case "adminKubeconfig": + return ec.fieldContext_Cluster_adminKubeconfig(ctx, field) + case "clusterDNSSuffix": + return ec.fieldContext_Cluster_clusterDNSSuffix(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Cluster", 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_infra_updateCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_deleteCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_deleteCluster(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraDeleteCluster(rctx, fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal bool + return zeroVal, 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 { + var zeroVal bool + return zeroVal, 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) + }) + 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_createGlobalVPN(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_createGlobalVPN(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraCreateGlobalVpn(rctx, fc.Args["gvpn"].(entities.GlobalVPN)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.GlobalVPN + return zeroVal, 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 { + var zeroVal *entities.GlobalVPN + return zeroVal, 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.GlobalVPN); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPN`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.GlobalVPN) + fc.Result = res + return ec.marshalOGlobalVPN2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPN(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_createGlobalVPN(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_GlobalVPN_accountName(ctx, field) + case "allocatableCIDRSuffix": + return ec.fieldContext_GlobalVPN_allocatableCIDRSuffix(ctx, field) + case "CIDR": + return ec.fieldContext_GlobalVPN_CIDR(ctx, field) + case "createdBy": + return ec.fieldContext_GlobalVPN_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_GlobalVPN_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_GlobalVPN_displayName(ctx, field) + case "id": + return ec.fieldContext_GlobalVPN_id(ctx, field) + case "kloudliteClusterLocalDevice": + return ec.fieldContext_GlobalVPN_kloudliteClusterLocalDevice(ctx, field) + case "kloudliteGatewayDevice": + return ec.fieldContext_GlobalVPN_kloudliteGatewayDevice(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_GlobalVPN_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_GlobalVPN_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_GlobalVPN_metadata(ctx, field) + case "nonClusterUseAllowedIPs": + return ec.fieldContext_GlobalVPN_nonClusterUseAllowedIPs(ctx, field) + case "numAllocatedClusterCIDRs": + return ec.fieldContext_GlobalVPN_numAllocatedClusterCIDRs(ctx, field) + case "numAllocatedDevices": + return ec.fieldContext_GlobalVPN_numAllocatedDevices(ctx, field) + case "numReservedIPsForNonClusterUse": + return ec.fieldContext_GlobalVPN_numReservedIPsForNonClusterUse(ctx, field) + case "recordVersion": + return ec.fieldContext_GlobalVPN_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_GlobalVPN_updateTime(ctx, field) + case "wgInterface": + return ec.fieldContext_GlobalVPN_wgInterface(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPN", 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_infra_createGlobalVPN_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_updateGlobalVPN(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_updateGlobalVPN(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraUpdateGlobalVpn(rctx, fc.Args["gvpn"].(entities.GlobalVPN)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.GlobalVPN + return zeroVal, 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 { + var zeroVal *entities.GlobalVPN + return zeroVal, 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.GlobalVPN); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPN`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.GlobalVPN) + fc.Result = res + return ec.marshalOGlobalVPN2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPN(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_updateGlobalVPN(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_GlobalVPN_accountName(ctx, field) + case "allocatableCIDRSuffix": + return ec.fieldContext_GlobalVPN_allocatableCIDRSuffix(ctx, field) + case "CIDR": + return ec.fieldContext_GlobalVPN_CIDR(ctx, field) + case "createdBy": + return ec.fieldContext_GlobalVPN_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_GlobalVPN_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_GlobalVPN_displayName(ctx, field) + case "id": + return ec.fieldContext_GlobalVPN_id(ctx, field) + case "kloudliteClusterLocalDevice": + return ec.fieldContext_GlobalVPN_kloudliteClusterLocalDevice(ctx, field) + case "kloudliteGatewayDevice": + return ec.fieldContext_GlobalVPN_kloudliteGatewayDevice(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_GlobalVPN_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_GlobalVPN_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_GlobalVPN_metadata(ctx, field) + case "nonClusterUseAllowedIPs": + return ec.fieldContext_GlobalVPN_nonClusterUseAllowedIPs(ctx, field) + case "numAllocatedClusterCIDRs": + return ec.fieldContext_GlobalVPN_numAllocatedClusterCIDRs(ctx, field) + case "numAllocatedDevices": + return ec.fieldContext_GlobalVPN_numAllocatedDevices(ctx, field) + case "numReservedIPsForNonClusterUse": + return ec.fieldContext_GlobalVPN_numReservedIPsForNonClusterUse(ctx, field) + case "recordVersion": + return ec.fieldContext_GlobalVPN_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_GlobalVPN_updateTime(ctx, field) + case "wgInterface": + return ec.fieldContext_GlobalVPN_wgInterface(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPN", 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_infra_updateGlobalVPN_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_deleteGlobalVPN(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_deleteGlobalVPN(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraDeleteGlobalVpn(rctx, fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal bool + return zeroVal, 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 { + var zeroVal bool + return zeroVal, 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) + }) + 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_deleteGlobalVPN(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_deleteGlobalVPN_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_createGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_createGlobalVPNDevice(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraCreateGlobalVPNDevice(rctx, fc.Args["gvpnDevice"].(entities.GlobalVPNDevice)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.GlobalVPNDevice + return zeroVal, 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 { + var zeroVal *entities.GlobalVPNDevice + return zeroVal, 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.GlobalVPNDevice); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPNDevice`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.GlobalVPNDevice) + fc.Result = res + return ec.marshalOGlobalVPNDevice2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPNDevice(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_createGlobalVPNDevice(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_GlobalVPNDevice_accountName(ctx, field) + case "createdBy": + return ec.fieldContext_GlobalVPNDevice_createdBy(ctx, field) + case "creationMethod": + return ec.fieldContext_GlobalVPNDevice_creationMethod(ctx, field) + case "creationTime": + return ec.fieldContext_GlobalVPNDevice_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_GlobalVPNDevice_displayName(ctx, field) + case "globalVPNName": + return ec.fieldContext_GlobalVPNDevice_globalVPNName(ctx, field) + case "id": + return ec.fieldContext_GlobalVPNDevice_id(ctx, field) + case "ipAddr": + return ec.fieldContext_GlobalVPNDevice_ipAddr(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_GlobalVPNDevice_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_GlobalVPNDevice_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_GlobalVPNDevice_metadata(ctx, field) + case "privateKey": + return ec.fieldContext_GlobalVPNDevice_privateKey(ctx, field) + case "publicEndpoint": + return ec.fieldContext_GlobalVPNDevice_publicEndpoint(ctx, field) + case "publicKey": + return ec.fieldContext_GlobalVPNDevice_publicKey(ctx, field) + case "recordVersion": + return ec.fieldContext_GlobalVPNDevice_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_GlobalVPNDevice_updateTime(ctx, field) + case "wireguardConfig": + return ec.fieldContext_GlobalVPNDevice_wireguardConfig(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPNDevice", 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_infra_createGlobalVPNDevice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_updateGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_updateGlobalVPNDevice(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraUpdateGlobalVPNDevice(rctx, fc.Args["gvpnDevice"].(entities.GlobalVPNDevice)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.GlobalVPNDevice + return zeroVal, 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 { + var zeroVal *entities.GlobalVPNDevice + return zeroVal, 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.GlobalVPNDevice); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPNDevice`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.GlobalVPNDevice) + fc.Result = res + return ec.marshalOGlobalVPNDevice2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPNDevice(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_updateGlobalVPNDevice(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_GlobalVPNDevice_accountName(ctx, field) + case "createdBy": + return ec.fieldContext_GlobalVPNDevice_createdBy(ctx, field) + case "creationMethod": + return ec.fieldContext_GlobalVPNDevice_creationMethod(ctx, field) + case "creationTime": + return ec.fieldContext_GlobalVPNDevice_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_GlobalVPNDevice_displayName(ctx, field) + case "globalVPNName": + return ec.fieldContext_GlobalVPNDevice_globalVPNName(ctx, field) + case "id": + return ec.fieldContext_GlobalVPNDevice_id(ctx, field) + case "ipAddr": + return ec.fieldContext_GlobalVPNDevice_ipAddr(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_GlobalVPNDevice_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_GlobalVPNDevice_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_GlobalVPNDevice_metadata(ctx, field) + case "privateKey": + return ec.fieldContext_GlobalVPNDevice_privateKey(ctx, field) + case "publicEndpoint": + return ec.fieldContext_GlobalVPNDevice_publicEndpoint(ctx, field) + case "publicKey": + return ec.fieldContext_GlobalVPNDevice_publicKey(ctx, field) + case "recordVersion": + return ec.fieldContext_GlobalVPNDevice_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_GlobalVPNDevice_updateTime(ctx, field) + case "wireguardConfig": + return ec.fieldContext_GlobalVPNDevice_wireguardConfig(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPNDevice", 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_infra_updateGlobalVPNDevice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_deleteGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_deleteGlobalVPNDevice(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraDeleteGlobalVPNDevice(rctx, fc.Args["gvpn"].(string), fc.Args["deviceName"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal bool + return zeroVal, 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 { + var zeroVal bool + return zeroVal, 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) + }) + 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_deleteGlobalVPNDevice(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_deleteGlobalVPNDevice_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 { + var zeroVal *entities.BYOKCluster + return zeroVal, 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 { + var zeroVal *entities.BYOKCluster + return zeroVal, 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 *github.com/kloudlite/api/apps/infra/internal/entities.BYOKCluster`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.BYOKCluster) + fc.Result = res + return ec.marshalOBYOKCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐBYOKCluster(ctx, field.Selections, res) +} + +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) { + switch field.Name { + case "accountName": + return ec.fieldContext_BYOKCluster_accountName(ctx, field) + case "clusterSvcCIDR": + return ec.fieldContext_BYOKCluster_clusterSvcCIDR(ctx, field) + case "clusterToken": + return ec.fieldContext_BYOKCluster_clusterToken(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 "globalVPN": + return ec.fieldContext_BYOKCluster_globalVPN(ctx, field) + case "id": + return ec.fieldContext_BYOKCluster_id(ctx, field) + case "lastOnlineAt": + return ec.fieldContext_BYOKCluster_lastOnlineAt(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_BYOKCluster_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_BYOKCluster_markedForDeletion(ctx, field) + case "messageQueueTopicName": + return ec.fieldContext_BYOKCluster_messageQueueTopicName(ctx, field) + case "metadata": + return ec.fieldContext_BYOKCluster_metadata(ctx, field) + case "ownedBy": + return ec.fieldContext_BYOKCluster_ownedBy(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) + case "visibility": + return ec.fieldContext_BYOKCluster_visibility(ctx, field) + case "clusterDNSSuffix": + return ec.fieldContext_BYOKCluster_clusterDNSSuffix(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type BYOKCluster", 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_infra_createBYOKCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_updateBYOKCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_updateBYOKCluster(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraUpdateBYOKCluster(rctx, fc.Args["clusterName"].(string), fc.Args["displayName"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.BYOKCluster + return zeroVal, 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 { + var zeroVal *entities.BYOKCluster + return zeroVal, 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 *github.com/kloudlite/api/apps/infra/internal/entities.BYOKCluster`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.BYOKCluster) + fc.Result = res + return ec.marshalOBYOKCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐBYOKCluster(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_updateBYOKCluster(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_BYOKCluster_accountName(ctx, field) + case "clusterSvcCIDR": + return ec.fieldContext_BYOKCluster_clusterSvcCIDR(ctx, field) + case "clusterToken": + return ec.fieldContext_BYOKCluster_clusterToken(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 "globalVPN": + return ec.fieldContext_BYOKCluster_globalVPN(ctx, field) + case "id": + return ec.fieldContext_BYOKCluster_id(ctx, field) + case "lastOnlineAt": + return ec.fieldContext_BYOKCluster_lastOnlineAt(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_BYOKCluster_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_BYOKCluster_markedForDeletion(ctx, field) + case "messageQueueTopicName": + return ec.fieldContext_BYOKCluster_messageQueueTopicName(ctx, field) + case "metadata": + return ec.fieldContext_BYOKCluster_metadata(ctx, field) + case "ownedBy": + return ec.fieldContext_BYOKCluster_ownedBy(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) + case "visibility": + return ec.fieldContext_BYOKCluster_visibility(ctx, field) + case "clusterDNSSuffix": + return ec.fieldContext_BYOKCluster_clusterDNSSuffix(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type BYOKCluster", 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_infra_updateBYOKCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_deleteBYOKCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_deleteBYOKCluster(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraDeleteBYOKCluster(rctx, fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal bool + return zeroVal, 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 { + var zeroVal bool + return zeroVal, 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) + }) + 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_deleteBYOKCluster(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_deleteBYOKCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_createProviderSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_createProviderSecret(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraCreateProviderSecret(rctx, fc.Args["secret"].(entities.CloudProviderSecret)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.CloudProviderSecret + return zeroVal, 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 { + var zeroVal *entities.CloudProviderSecret + return zeroVal, 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.CloudProviderSecret); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.CloudProviderSecret`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.CloudProviderSecret) + fc.Result = res + return ec.marshalOCloudProviderSecret2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCloudProviderSecret(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_createProviderSecret(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_CloudProviderSecret_accountName(ctx, field) + case "aws": + return ec.fieldContext_CloudProviderSecret_aws(ctx, field) + case "cloudProviderName": + return ec.fieldContext_CloudProviderSecret_cloudProviderName(ctx, field) + case "createdBy": + return ec.fieldContext_CloudProviderSecret_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_CloudProviderSecret_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_CloudProviderSecret_displayName(ctx, field) + case "gcp": + return ec.fieldContext_CloudProviderSecret_gcp(ctx, field) + case "id": + return ec.fieldContext_CloudProviderSecret_id(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_CloudProviderSecret_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_CloudProviderSecret_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_CloudProviderSecret_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_CloudProviderSecret_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_CloudProviderSecret_updateTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CloudProviderSecret", 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_infra_createProviderSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_updateProviderSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_updateProviderSecret(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraUpdateProviderSecret(rctx, fc.Args["secret"].(entities.CloudProviderSecret)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.CloudProviderSecret + return zeroVal, 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 { + var zeroVal *entities.CloudProviderSecret + return zeroVal, 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.CloudProviderSecret); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.CloudProviderSecret`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.CloudProviderSecret) + fc.Result = res + return ec.marshalOCloudProviderSecret2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCloudProviderSecret(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_updateProviderSecret(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_CloudProviderSecret_accountName(ctx, field) + case "aws": + return ec.fieldContext_CloudProviderSecret_aws(ctx, field) + case "cloudProviderName": + return ec.fieldContext_CloudProviderSecret_cloudProviderName(ctx, field) + case "createdBy": + return ec.fieldContext_CloudProviderSecret_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_CloudProviderSecret_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_CloudProviderSecret_displayName(ctx, field) + case "gcp": + return ec.fieldContext_CloudProviderSecret_gcp(ctx, field) + case "id": + return ec.fieldContext_CloudProviderSecret_id(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_CloudProviderSecret_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_CloudProviderSecret_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_CloudProviderSecret_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_CloudProviderSecret_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_CloudProviderSecret_updateTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CloudProviderSecret", 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_infra_updateProviderSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_deleteProviderSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_deleteProviderSecret(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraDeleteProviderSecret(rctx, fc.Args["secretName"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal bool + return zeroVal, 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 { + var zeroVal bool + return zeroVal, 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) + }) + 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_deleteProviderSecret(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_deleteProviderSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_createDomainEntry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_createDomainEntry(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraCreateDomainEntry(rctx, fc.Args["domainEntry"].(entities.DomainEntry)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.DomainEntry + return zeroVal, 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 { + var zeroVal *entities.DomainEntry + return zeroVal, 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.DomainEntry); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.DomainEntry`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.DomainEntry) + fc.Result = res + return ec.marshalODomainEntry2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐDomainEntry(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_createDomainEntry(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_DomainEntry_accountName(ctx, field) + case "clusterName": + return ec.fieldContext_DomainEntry_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_DomainEntry_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_DomainEntry_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_DomainEntry_displayName(ctx, field) + case "domainName": + return ec.fieldContext_DomainEntry_domainName(ctx, field) + case "id": + return ec.fieldContext_DomainEntry_id(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_DomainEntry_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_DomainEntry_markedForDeletion(ctx, field) + case "recordVersion": + return ec.fieldContext_DomainEntry_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_DomainEntry_updateTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DomainEntry", 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_infra_createDomainEntry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_updateDomainEntry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_updateDomainEntry(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraUpdateDomainEntry(rctx, fc.Args["domainEntry"].(entities.DomainEntry)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.DomainEntry + return zeroVal, 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 { + var zeroVal *entities.DomainEntry + return zeroVal, 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.DomainEntry); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.DomainEntry`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.DomainEntry) + fc.Result = res + return ec.marshalODomainEntry2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐDomainEntry(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_updateDomainEntry(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_DomainEntry_accountName(ctx, field) + case "clusterName": + return ec.fieldContext_DomainEntry_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_DomainEntry_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_DomainEntry_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_DomainEntry_displayName(ctx, field) + case "domainName": + return ec.fieldContext_DomainEntry_domainName(ctx, field) + case "id": + return ec.fieldContext_DomainEntry_id(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_DomainEntry_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_DomainEntry_markedForDeletion(ctx, field) + case "recordVersion": + return ec.fieldContext_DomainEntry_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_DomainEntry_updateTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DomainEntry", 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_infra_updateDomainEntry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_deleteDomainEntry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_deleteDomainEntry(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraDeleteDomainEntry(rctx, fc.Args["domainName"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal bool + return zeroVal, 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 { + var zeroVal bool + return zeroVal, 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) + }) + 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_deleteDomainEntry(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_deleteDomainEntry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_createNodePool(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_createNodePool(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraCreateNodePool(rctx, fc.Args["clusterName"].(string), fc.Args["pool"].(entities.NodePool)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.NodePool + return zeroVal, 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 { + var zeroVal *entities.NodePool + return zeroVal, 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.NodePool); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.NodePool`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.NodePool) + fc.Result = res + return ec.marshalONodePool2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNodePool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_createNodePool(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_NodePool_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_NodePool_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_NodePool_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_NodePool_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_NodePool_creationTime(ctx, field) + case "dispatchAddr": + return ec.fieldContext_NodePool_dispatchAddr(ctx, field) + case "displayName": + return ec.fieldContext_NodePool_displayName(ctx, field) + case "id": + return ec.fieldContext_NodePool_id(ctx, field) + case "kind": + return ec.fieldContext_NodePool_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_NodePool_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_NodePool_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_NodePool_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_NodePool_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_NodePool_spec(ctx, field) + case "status": + return ec.fieldContext_NodePool_status(ctx, field) + case "syncStatus": + return ec.fieldContext_NodePool_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_NodePool_updateTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NodePool", 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_infra_createNodePool_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_updateNodePool(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_updateNodePool(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraUpdateNodePool(rctx, fc.Args["clusterName"].(string), fc.Args["pool"].(entities.NodePool)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.NodePool + return zeroVal, 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 { + var zeroVal *entities.NodePool + return zeroVal, 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.NodePool); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.NodePool`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.NodePool) + fc.Result = res + return ec.marshalONodePool2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNodePool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_updateNodePool(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_NodePool_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_NodePool_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_NodePool_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_NodePool_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_NodePool_creationTime(ctx, field) + case "dispatchAddr": + return ec.fieldContext_NodePool_dispatchAddr(ctx, field) + case "displayName": + return ec.fieldContext_NodePool_displayName(ctx, field) + case "id": + return ec.fieldContext_NodePool_id(ctx, field) + case "kind": + return ec.fieldContext_NodePool_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_NodePool_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_NodePool_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_NodePool_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_NodePool_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_NodePool_spec(ctx, field) + case "status": + return ec.fieldContext_NodePool_status(ctx, field) + case "syncStatus": + return ec.fieldContext_NodePool_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_NodePool_updateTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NodePool", 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_infra_updateNodePool_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_deleteNodePool(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_deleteNodePool(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraDeleteNodePool(rctx, fc.Args["clusterName"].(string), fc.Args["poolName"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal bool + return zeroVal, 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 { + var zeroVal bool + return zeroVal, 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) + }) + 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_deleteNodePool(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_deleteNodePool_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_deletePV(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_deletePV(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraDeletePv(rctx, fc.Args["clusterName"].(string), fc.Args["pvName"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal bool + return zeroVal, 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 { + var zeroVal bool + return zeroVal, 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) + }) + 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_deletePV(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_deletePV_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_createWorkspace(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_createWorkspace(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraCreateWorkspace(rctx, fc.Args["workmachineName"].(string), fc.Args["clusterName"].(string), fc.Args["workspace"].(entities.Workspace)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.Workspace + return zeroVal, 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 { + var zeroVal *entities.Workspace + return zeroVal, 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.Workspace); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Workspace`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.Workspace) + fc.Result = res + return ec.marshalOWorkspace2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkspace(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_createWorkspace(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_Workspace_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_Workspace_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_Workspace_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_Workspace_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Workspace_creationTime(ctx, field) + case "dispatchAddr": + return ec.fieldContext_Workspace_dispatchAddr(ctx, field) + case "displayName": + return ec.fieldContext_Workspace_displayName(ctx, field) + case "id": + return ec.fieldContext_Workspace_id(ctx, field) + case "kind": + return ec.fieldContext_Workspace_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Workspace_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Workspace_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_Workspace_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_Workspace_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_Workspace_spec(ctx, field) + case "status": + return ec.fieldContext_Workspace_status(ctx, field) + case "syncStatus": + return ec.fieldContext_Workspace_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_Workspace_updateTime(ctx, field) + case "workmachineName": + return ec.fieldContext_Workspace_workmachineName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Workspace", 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_infra_createWorkspace_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_updateWorkspace(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_updateWorkspace(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraUpdateWorkspace(rctx, fc.Args["workmachineName"].(string), fc.Args["clusterName"].(string), fc.Args["workspace"].(entities.Workspace)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.Workspace + return zeroVal, 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 { + var zeroVal *entities.Workspace + return zeroVal, 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.Workspace); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Workspace`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.Workspace) + fc.Result = res + return ec.marshalOWorkspace2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkspace(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_updateWorkspace(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_Workspace_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_Workspace_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_Workspace_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_Workspace_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Workspace_creationTime(ctx, field) + case "dispatchAddr": + return ec.fieldContext_Workspace_dispatchAddr(ctx, field) + case "displayName": + return ec.fieldContext_Workspace_displayName(ctx, field) + case "id": + return ec.fieldContext_Workspace_id(ctx, field) + case "kind": + return ec.fieldContext_Workspace_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Workspace_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Workspace_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_Workspace_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_Workspace_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_Workspace_spec(ctx, field) + case "status": + return ec.fieldContext_Workspace_status(ctx, field) + case "syncStatus": + return ec.fieldContext_Workspace_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_Workspace_updateTime(ctx, field) + case "workmachineName": + return ec.fieldContext_Workspace_workmachineName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Workspace", 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_infra_updateWorkspace_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_deleteWorkspace(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_deleteWorkspace(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraDeleteWorkspace(rctx, fc.Args["workmachineName"].(string), fc.Args["clusterName"].(string), fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal bool + return zeroVal, 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 { + var zeroVal bool + return zeroVal, 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) + }) + 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_deleteWorkspace(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_deleteWorkspace_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_updateWorkspaceStatus(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_updateWorkspaceStatus(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraUpdateWorkspaceStatus(rctx, fc.Args["workmachineName"].(string), fc.Args["clusterName"].(string), fc.Args["status"].(bool), fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal bool + return zeroVal, 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 { + var zeroVal bool + return zeroVal, 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) + }) + 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_updateWorkspaceStatus(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_updateWorkspaceStatus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_createWorkMachine(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_createWorkMachine(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraCreateWorkMachine(rctx, fc.Args["clusterName"].(string), fc.Args["workmachine"].(entities.Workmachine)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.Workmachine + return zeroVal, 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 { + var zeroVal *entities.Workmachine + return zeroVal, 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.Workmachine); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Workmachine`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.Workmachine) + fc.Result = res + return ec.marshalOWorkmachine2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkmachine(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_createWorkMachine(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_Workmachine_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_Workmachine_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_Workmachine_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_Workmachine_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Workmachine_creationTime(ctx, field) + case "dispatchAddr": + return ec.fieldContext_Workmachine_dispatchAddr(ctx, field) + case "displayName": + return ec.fieldContext_Workmachine_displayName(ctx, field) + case "id": + return ec.fieldContext_Workmachine_id(ctx, field) + case "kind": + return ec.fieldContext_Workmachine_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Workmachine_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Workmachine_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_Workmachine_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_Workmachine_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_Workmachine_spec(ctx, field) + case "status": + return ec.fieldContext_Workmachine_status(ctx, field) + case "syncStatus": + return ec.fieldContext_Workmachine_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_Workmachine_updateTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Workmachine", 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_infra_createWorkMachine_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_updateWorkMachine(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_updateWorkMachine(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraUpdateWorkMachine(rctx, fc.Args["clusterName"].(string), fc.Args["workmachine"].(entities.Workmachine)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.Workmachine + return zeroVal, 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 { + var zeroVal *entities.Workmachine + return zeroVal, 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.Workmachine); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Workmachine`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*entities.Workmachine) + fc.Result = res + return ec.marshalOWorkmachine2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkmachine(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_infra_updateWorkMachine(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_Workmachine_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_Workmachine_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_Workmachine_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_Workmachine_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Workmachine_creationTime(ctx, field) + case "dispatchAddr": + return ec.fieldContext_Workmachine_dispatchAddr(ctx, field) + case "displayName": + return ec.fieldContext_Workmachine_displayName(ctx, field) + case "id": + return ec.fieldContext_Workmachine_id(ctx, field) + case "kind": + return ec.fieldContext_Workmachine_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Workmachine_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Workmachine_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_Workmachine_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_Workmachine_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_Workmachine_spec(ctx, field) + case "status": + return ec.fieldContext_Workmachine_status(ctx, field) + case "syncStatus": + return ec.fieldContext_Workmachine_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_Workmachine_updateTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Workmachine", 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_infra_updateWorkMachine_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_updateWorkMachineStatus(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_updateWorkMachineStatus(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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().InfraUpdateWorkMachineStatus(rctx, fc.Args["clusterName"].(string), fc.Args["status"].(bool), fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal bool + return zeroVal, 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 { - var zeroVal *entities.Cluster - return zeroVal, errors.New("directive hasAccount is not implemented") + directive2 := func(ctx context.Context) (interface{}, error) { + if ec.directives.HasAccount == nil { + var zeroVal bool + return zeroVal, 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) + }) + 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_updateWorkMachineStatus(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_updateWorkMachineStatus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Namespace_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_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_Namespace_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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) _Namespace_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_apiVersion(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.APIVersion, 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_Namespace_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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) _Namespace_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_clusterName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.ClusterName, 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_Namespace_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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) _Namespace_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_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_Namespace_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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 ec.directives.HasAccount(ctx, nil, directive1) + 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) _Namespace_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_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.Namespace().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_Namespace_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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) _Namespace_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_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_Namespace_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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) _Namespace_id(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_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.Namespace().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_Namespace_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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) _Namespace_kind(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_kind(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Kind, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Namespace_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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) _Namespace_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_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_Namespace_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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) _Namespace_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_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_Namespace_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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) _Namespace_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_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 { + return graphql.Null + } + res := resTmp.(v1.ObjectMeta) + fc.Result = res + return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Namespace_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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) _Namespace_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_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_Namespace_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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) _Namespace_spec(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_spec(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Namespace().Spec(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.K8sIoAPICoreV1NamespaceSpec) + fc.Result = res + return ec.marshalOK8s__io___api___core___v1__NamespaceSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NamespaceSpec(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Namespace_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "finalizers": + return ec.fieldContext_K8s__io___api___core___v1__NamespaceSpec_finalizers(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NamespaceSpec", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Namespace_status(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Namespace().Status(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.K8sIoAPICoreV1NamespaceStatus) + fc.Result = res + return ec.marshalOK8s__io___api___core___v1__NamespaceStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NamespaceStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Namespace_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "conditions": + return ec.fieldContext_K8s__io___api___core___v1__NamespaceStatus_conditions(ctx, field) + case "phase": + return ec.fieldContext_K8s__io___api___core___v1__NamespaceStatus_phase(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NamespaceStatus", field.Name) + }, + } + return fc, nil +} - tmp, err := directive2(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*entities.Cluster); ok { - return data, nil +func (ec *executionContext) _Namespace_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_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 } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Cluster`, tmp) + }() + 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.(*entities.Cluster) + res := resTmp.(types.SyncStatus) fc.Result = res - return ec.marshalOCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCluster(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_createCluster(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Namespace_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Namespace", 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_Cluster_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_Cluster_apiVersion(ctx, field) - case "createdBy": - return ec.fieldContext_Cluster_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_Cluster_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_Cluster_displayName(ctx, field) - case "globalVPN": - return ec.fieldContext_Cluster_globalVPN(ctx, field) - case "id": - return ec.fieldContext_Cluster_id(ctx, field) - case "kind": - return ec.fieldContext_Cluster_kind(ctx, field) - case "lastOnlineAt": - return ec.fieldContext_Cluster_lastOnlineAt(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_Cluster_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_Cluster_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_Cluster_metadata(ctx, field) - case "ownedBy": - return ec.fieldContext_Cluster_ownedBy(ctx, field) + 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_Cluster_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_Cluster_spec(ctx, field) - case "status": - return ec.fieldContext_Cluster_status(ctx, field) - case "syncStatus": - return ec.fieldContext_Cluster_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_Cluster_updateTime(ctx, field) - case "adminKubeconfig": - return ec.fieldContext_Cluster_adminKubeconfig(ctx, field) - case "clusterDNSSuffix": - return ec.fieldContext_Cluster_clusterDNSSuffix(ctx, field) + 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 Cluster", field.Name) + 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) _Namespace_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Namespace_updateTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_infra_createCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Namespace().UpdateTime(rctx, obj) + }) + if err != nil { ec.Error(ctx, err) - return fc, 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_Namespace_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Namespace", + 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) _Mutation_infra_updateCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_updateCluster(ctx, field) +func (ec *executionContext) _NamespaceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.NamespaceEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NamespaceEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -39185,118 +46104,167 @@ func (ec *executionContext) _Mutation_infra_updateCluster(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().InfraUpdateCluster(rctx, fc.Args["cluster"].(entities.Cluster)) + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + 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) +} - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.Cluster - return zeroVal, 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 { - var zeroVal *entities.Cluster - return zeroVal, errors.New("directive hasAccount is not implemented") - } - return ec.directives.HasAccount(ctx, nil, directive1) - } +func (ec *executionContext) fieldContext_NamespaceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NamespaceEdge", + 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 +} - tmp, err := directive2(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*entities.Cluster); ok { - return data, nil +func (ec *executionContext) _NamespaceEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.NamespaceEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NamespaceEdge_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 } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Cluster`, tmp) + }() + 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.Cluster) + res := resTmp.(*entities.Namespace) fc.Result = res - return ec.marshalOCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCluster(ctx, field.Selections, res) + return ec.marshalNNamespace2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNamespace(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_updateCluster(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NamespaceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "NamespaceEdge", 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_Cluster_accountName(ctx, field) + return ec.fieldContext_Namespace_accountName(ctx, field) case "apiVersion": - return ec.fieldContext_Cluster_apiVersion(ctx, field) + return ec.fieldContext_Namespace_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_Namespace_clusterName(ctx, field) case "createdBy": - return ec.fieldContext_Cluster_createdBy(ctx, field) + return ec.fieldContext_Namespace_createdBy(ctx, field) case "creationTime": - return ec.fieldContext_Cluster_creationTime(ctx, field) + return ec.fieldContext_Namespace_creationTime(ctx, field) case "displayName": - return ec.fieldContext_Cluster_displayName(ctx, field) - case "globalVPN": - return ec.fieldContext_Cluster_globalVPN(ctx, field) + return ec.fieldContext_Namespace_displayName(ctx, field) case "id": - return ec.fieldContext_Cluster_id(ctx, field) + return ec.fieldContext_Namespace_id(ctx, field) case "kind": - return ec.fieldContext_Cluster_kind(ctx, field) - case "lastOnlineAt": - return ec.fieldContext_Cluster_lastOnlineAt(ctx, field) + return ec.fieldContext_Namespace_kind(ctx, field) case "lastUpdatedBy": - return ec.fieldContext_Cluster_lastUpdatedBy(ctx, field) + return ec.fieldContext_Namespace_lastUpdatedBy(ctx, field) case "markedForDeletion": - return ec.fieldContext_Cluster_markedForDeletion(ctx, field) + return ec.fieldContext_Namespace_markedForDeletion(ctx, field) case "metadata": - return ec.fieldContext_Cluster_metadata(ctx, field) - case "ownedBy": - return ec.fieldContext_Cluster_ownedBy(ctx, field) + return ec.fieldContext_Namespace_metadata(ctx, field) case "recordVersion": - return ec.fieldContext_Cluster_recordVersion(ctx, field) + return ec.fieldContext_Namespace_recordVersion(ctx, field) case "spec": - return ec.fieldContext_Cluster_spec(ctx, field) + return ec.fieldContext_Namespace_spec(ctx, field) case "status": - return ec.fieldContext_Cluster_status(ctx, field) + return ec.fieldContext_Namespace_status(ctx, field) case "syncStatus": - return ec.fieldContext_Cluster_syncStatus(ctx, field) + return ec.fieldContext_Namespace_syncStatus(ctx, field) case "updateTime": - return ec.fieldContext_Cluster_updateTime(ctx, field) - case "adminKubeconfig": - return ec.fieldContext_Cluster_adminKubeconfig(ctx, field) - case "clusterDNSSuffix": - return ec.fieldContext_Cluster_clusterDNSSuffix(ctx, field) + return ec.fieldContext_Namespace_updateTime(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Cluster", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Namespace", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _NamespacePaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.NamespacePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NamespacePaginatedRecords_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_infra_updateCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, 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.NamespaceEdge) + fc.Result = res + return ec.marshalNNamespaceEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐNamespaceEdgeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NamespacePaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NamespacePaginatedRecords", + 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_NamespaceEdge_cursor(ctx, field) + case "node": + return ec.fieldContext_NamespaceEdge_node(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NamespaceEdge", field.Name) + }, } return fc, nil } -func (ec *executionContext) _Mutation_infra_deleteCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_deleteCluster(ctx, field) +func (ec *executionContext) _NamespacePaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.NamespacePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NamespacePaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -39308,37 +46276,191 @@ func (ec *executionContext) _Mutation_infra_deleteCluster(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().InfraDeleteCluster(rctx, fc.Args["name"].(string)) + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } + return graphql.Null + } + res := resTmp.(*model.PageInfo) + fc.Result = res + return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) +} - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal bool - return zeroVal, errors.New("directive isLoggedInAndVerified is not implemented") +func (ec *executionContext) fieldContext_NamespacePaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NamespacePaginatedRecords", + 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 "hasPrevPage": + return ec.fieldContext_PageInfo_hasPrevPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) } - return ec.directives.IsLoggedInAndVerified(ctx, nil, directive0) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _NamespacePaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.NamespacePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NamespacePaginatedRecords_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } - directive2 := func(ctx context.Context) (interface{}, error) { - if ec.directives.HasAccount == nil { - var zeroVal bool - return zeroVal, errors.New("directive hasAccount is not implemented") - } - return ec.directives.HasAccount(ctx, nil, directive1) + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} - tmp, err := directive2(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) fieldContext_NamespacePaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NamespacePaginatedRecords", + 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) _Node_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_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 } - if tmp == nil { - return nil, nil + }() + 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") } - if data, ok := tmp.(bool); ok { - return data, nil + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Node_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Node", + 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) _Node_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_apiVersion(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.APIVersion, 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_Node_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Node", + 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) _Node_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_clusterName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + 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.ClusterName, nil }) if err != nil { ec.Error(ctx, err) @@ -39350,37 +46472,26 @@ func (ec *executionContext) _Mutation_infra_deleteCluster(ctx context.Context, f } 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_infra_deleteCluster(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Node_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Node", 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_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_createGlobalVPN(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_createGlobalVPN(ctx, field) +func (ec *executionContext) _Node_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_creationTime(ctx, field) if err != nil { return graphql.Null } @@ -39392,116 +46503,39 @@ func (ec *executionContext) _Mutation_infra_createGlobalVPN(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().InfraCreateGlobalVpn(rctx, fc.Args["gvpn"].(entities.GlobalVPN)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.GlobalVPN - return zeroVal, 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 { - var zeroVal *entities.GlobalVPN - return zeroVal, 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.GlobalVPN); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPN`, tmp) + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Node().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.(*entities.GlobalVPN) + res := resTmp.(string) fc.Result = res - return ec.marshalOGlobalVPN2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPN(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_createGlobalVPN(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Node_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Node", 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_GlobalVPN_accountName(ctx, field) - case "allocatableCIDRSuffix": - return ec.fieldContext_GlobalVPN_allocatableCIDRSuffix(ctx, field) - case "CIDR": - return ec.fieldContext_GlobalVPN_CIDR(ctx, field) - case "createdBy": - return ec.fieldContext_GlobalVPN_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_GlobalVPN_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_GlobalVPN_displayName(ctx, field) - case "id": - return ec.fieldContext_GlobalVPN_id(ctx, field) - case "kloudliteClusterLocalDevice": - return ec.fieldContext_GlobalVPN_kloudliteClusterLocalDevice(ctx, field) - case "kloudliteGatewayDevice": - return ec.fieldContext_GlobalVPN_kloudliteGatewayDevice(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_GlobalVPN_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_GlobalVPN_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_GlobalVPN_metadata(ctx, field) - case "nonClusterUseAllowedIPs": - return ec.fieldContext_GlobalVPN_nonClusterUseAllowedIPs(ctx, field) - case "numAllocatedClusterCIDRs": - return ec.fieldContext_GlobalVPN_numAllocatedClusterCIDRs(ctx, field) - case "numAllocatedDevices": - return ec.fieldContext_GlobalVPN_numAllocatedDevices(ctx, field) - case "numReservedIPsForNonClusterUse": - return ec.fieldContext_GlobalVPN_numReservedIPsForNonClusterUse(ctx, field) - case "recordVersion": - return ec.fieldContext_GlobalVPN_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_GlobalVPN_updateTime(ctx, field) - case "wgInterface": - return ec.fieldContext_GlobalVPN_wgInterface(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPN", field.Name) + return nil, errors.New("field of type Date 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_createGlobalVPN_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_updateGlobalVPN(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_updateGlobalVPN(ctx, field) +func (ec *executionContext) _Node_id(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_id(ctx, field) if err != nil { return graphql.Null } @@ -39513,116 +46547,39 @@ func (ec *executionContext) _Mutation_infra_updateGlobalVPN(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().InfraUpdateGlobalVpn(rctx, fc.Args["gvpn"].(entities.GlobalVPN)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.GlobalVPN - return zeroVal, 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 { - var zeroVal *entities.GlobalVPN - return zeroVal, 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.GlobalVPN); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPN`, tmp) + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Node().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.(*entities.GlobalVPN) + res := resTmp.(repos.ID) fc.Result = res - return ec.marshalOGlobalVPN2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPN(ctx, field.Selections, res) + return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_updateGlobalVPN(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Node_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Node", 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_GlobalVPN_accountName(ctx, field) - case "allocatableCIDRSuffix": - return ec.fieldContext_GlobalVPN_allocatableCIDRSuffix(ctx, field) - case "CIDR": - return ec.fieldContext_GlobalVPN_CIDR(ctx, field) - case "createdBy": - return ec.fieldContext_GlobalVPN_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_GlobalVPN_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_GlobalVPN_displayName(ctx, field) - case "id": - return ec.fieldContext_GlobalVPN_id(ctx, field) - case "kloudliteClusterLocalDevice": - return ec.fieldContext_GlobalVPN_kloudliteClusterLocalDevice(ctx, field) - case "kloudliteGatewayDevice": - return ec.fieldContext_GlobalVPN_kloudliteGatewayDevice(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_GlobalVPN_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_GlobalVPN_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_GlobalVPN_metadata(ctx, field) - case "nonClusterUseAllowedIPs": - return ec.fieldContext_GlobalVPN_nonClusterUseAllowedIPs(ctx, field) - case "numAllocatedClusterCIDRs": - return ec.fieldContext_GlobalVPN_numAllocatedClusterCIDRs(ctx, field) - case "numAllocatedDevices": - return ec.fieldContext_GlobalVPN_numAllocatedDevices(ctx, field) - case "numReservedIPsForNonClusterUse": - return ec.fieldContext_GlobalVPN_numReservedIPsForNonClusterUse(ctx, field) - case "recordVersion": - return ec.fieldContext_GlobalVPN_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_GlobalVPN_updateTime(ctx, field) - case "wgInterface": - return ec.fieldContext_GlobalVPN_wgInterface(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPN", field.Name) + return nil, errors.New("field of type ID 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_updateGlobalVPN_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_deleteGlobalVPN(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_deleteGlobalVPN(ctx, field) +func (ec *executionContext) _Node_kind(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_kind(ctx, field) if err != nil { return graphql.Null } @@ -39634,79 +46591,36 @@ func (ec *executionContext) _Mutation_infra_deleteGlobalVPN(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().InfraDeleteGlobalVpn(rctx, fc.Args["name"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal bool - return zeroVal, 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 { - var zeroVal bool - return zeroVal, 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.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.(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_infra_deleteGlobalVPN(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Node_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Node", 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_infra_deleteGlobalVPN_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_createGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_createGlobalVPNDevice(ctx, field) +func (ec *executionContext) _Node_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_markedForDeletion(ctx, field) if err != nil { return graphql.Null } @@ -39718,37 +46632,8 @@ func (ec *executionContext) _Mutation_infra_createGlobalVPNDevice(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().InfraCreateGlobalVPNDevice(rctx, fc.Args["gvpnDevice"].(entities.GlobalVPNDevice)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.GlobalVPNDevice - return zeroVal, 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 { - var zeroVal *entities.GlobalVPNDevice - return zeroVal, 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.GlobalVPNDevice); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPNDevice`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.MarkedForDeletion, nil }) if err != nil { ec.Error(ctx, err) @@ -39757,73 +46642,26 @@ func (ec *executionContext) _Mutation_infra_createGlobalVPNDevice(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*entities.GlobalVPNDevice) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOGlobalVPNDevice2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPNDevice(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_createGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Node_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Node", 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_GlobalVPNDevice_accountName(ctx, field) - case "createdBy": - return ec.fieldContext_GlobalVPNDevice_createdBy(ctx, field) - case "creationMethod": - return ec.fieldContext_GlobalVPNDevice_creationMethod(ctx, field) - case "creationTime": - return ec.fieldContext_GlobalVPNDevice_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_GlobalVPNDevice_displayName(ctx, field) - case "globalVPNName": - return ec.fieldContext_GlobalVPNDevice_globalVPNName(ctx, field) - case "id": - return ec.fieldContext_GlobalVPNDevice_id(ctx, field) - case "ipAddr": - return ec.fieldContext_GlobalVPNDevice_ipAddr(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_GlobalVPNDevice_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_GlobalVPNDevice_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_GlobalVPNDevice_metadata(ctx, field) - case "privateKey": - return ec.fieldContext_GlobalVPNDevice_privateKey(ctx, field) - case "publicEndpoint": - return ec.fieldContext_GlobalVPNDevice_publicEndpoint(ctx, field) - case "publicKey": - return ec.fieldContext_GlobalVPNDevice_publicKey(ctx, field) - case "recordVersion": - return ec.fieldContext_GlobalVPNDevice_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_GlobalVPNDevice_updateTime(ctx, field) - case "wireguardConfig": - return ec.fieldContext_GlobalVPNDevice_wireguardConfig(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPNDevice", field.Name) + 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_createGlobalVPNDevice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_updateGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_updateGlobalVPNDevice(ctx, field) +func (ec *executionContext) _Node_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_metadata(ctx, field) if err != nil { return graphql.Null } @@ -39835,37 +46673,8 @@ func (ec *executionContext) _Mutation_infra_updateGlobalVPNDevice(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().InfraUpdateGlobalVPNDevice(rctx, fc.Args["gvpnDevice"].(entities.GlobalVPNDevice)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.GlobalVPNDevice - return zeroVal, 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 { - var zeroVal *entities.GlobalVPNDevice - return zeroVal, 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.GlobalVPNDevice); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPNDevice`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.ObjectMeta, nil }) if err != nil { ec.Error(ctx, err) @@ -39874,73 +46683,42 @@ func (ec *executionContext) _Mutation_infra_updateGlobalVPNDevice(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*entities.GlobalVPNDevice) + res := resTmp.(v1.ObjectMeta) fc.Result = res - return ec.marshalOGlobalVPNDevice2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPNDevice(ctx, field.Selections, res) + return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_updateGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Node_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Node", 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_GlobalVPNDevice_accountName(ctx, field) - case "createdBy": - return ec.fieldContext_GlobalVPNDevice_createdBy(ctx, field) - case "creationMethod": - return ec.fieldContext_GlobalVPNDevice_creationMethod(ctx, field) - case "creationTime": - return ec.fieldContext_GlobalVPNDevice_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_GlobalVPNDevice_displayName(ctx, field) - case "globalVPNName": - return ec.fieldContext_GlobalVPNDevice_globalVPNName(ctx, field) - case "id": - return ec.fieldContext_GlobalVPNDevice_id(ctx, field) - case "ipAddr": - return ec.fieldContext_GlobalVPNDevice_ipAddr(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_GlobalVPNDevice_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_GlobalVPNDevice_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_GlobalVPNDevice_metadata(ctx, field) - case "privateKey": - return ec.fieldContext_GlobalVPNDevice_privateKey(ctx, field) - case "publicEndpoint": - return ec.fieldContext_GlobalVPNDevice_publicEndpoint(ctx, field) - case "publicKey": - return ec.fieldContext_GlobalVPNDevice_publicKey(ctx, field) - case "recordVersion": - return ec.fieldContext_GlobalVPNDevice_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_GlobalVPNDevice_updateTime(ctx, field) - case "wireguardConfig": - return ec.fieldContext_GlobalVPNDevice_wireguardConfig(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPNDevice", 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_infra_updateGlobalVPNDevice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err + 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) _Mutation_infra_deleteGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_deleteGlobalVPNDevice(ctx, field) +func (ec *executionContext) _Node_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -39952,37 +46730,8 @@ func (ec *executionContext) _Mutation_infra_deleteGlobalVPNDevice(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().InfraDeleteGlobalVPNDevice(rctx, fc.Args["gvpn"].(string), fc.Args["deviceName"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal bool - return zeroVal, 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 { - var zeroVal bool - return zeroVal, 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.RecordVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -39994,37 +46743,26 @@ func (ec *executionContext) _Mutation_infra_deleteGlobalVPNDevice(ctx context.Co } 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_Mutation_infra_deleteGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Node_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Node", 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 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_Mutation_infra_deleteGlobalVPNDevice_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) +func (ec *executionContext) _Node_spec(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_spec(ctx, field) if err != nil { return graphql.Null } @@ -40036,116 +46774,98 @@ func (ec *executionContext) _Mutation_infra_createBYOKCluster(ctx context.Contex } }() 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 { - var zeroVal *entities.BYOKCluster - return zeroVal, 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 { - var zeroVal *entities.BYOKCluster - return zeroVal, 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 *github.com/kloudlite/api/apps/infra/internal/entities.BYOKCluster`, tmp) + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Node().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.(*entities.BYOKCluster) + res := resTmp.(*model.GithubComKloudliteOperatorApisClustersV1NodeSpec) fc.Result = res - return ec.marshalOBYOKCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐBYOKCluster(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___operator___apis___clusters___v1__NodeSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisClustersV1NodeSpec(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_createBYOKCluster(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Node_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Node", 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_BYOKCluster_accountName(ctx, field) - case "clusterSvcCIDR": - return ec.fieldContext_BYOKCluster_clusterSvcCIDR(ctx, field) - case "clusterToken": - return ec.fieldContext_BYOKCluster_clusterToken(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 "globalVPN": - return ec.fieldContext_BYOKCluster_globalVPN(ctx, field) - case "id": - return ec.fieldContext_BYOKCluster_id(ctx, field) - case "lastOnlineAt": - return ec.fieldContext_BYOKCluster_lastOnlineAt(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_BYOKCluster_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_BYOKCluster_markedForDeletion(ctx, field) - case "messageQueueTopicName": - return ec.fieldContext_BYOKCluster_messageQueueTopicName(ctx, field) - case "metadata": - return ec.fieldContext_BYOKCluster_metadata(ctx, field) - case "ownedBy": - return ec.fieldContext_BYOKCluster_ownedBy(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) - case "visibility": - return ec.fieldContext_BYOKCluster_visibility(ctx, field) - case "clusterDNSSuffix": - return ec.fieldContext_BYOKCluster_clusterDNSSuffix(ctx, field) + case "nodepoolName": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec_nodepoolName(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type BYOKCluster", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _Node_status(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_infra_createBYOKCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(reconciler.Status) + fc.Result = res + return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__Status2githubᚗcomᚋkloudliteᚋoperatorᚋtoolkitᚋreconcilerᚐStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Node_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Node", + Field: field, + 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___toolkit___reconciler__Status_checkList(ctx, field) + case "checks": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(ctx, field) + case "isReady": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx, field) + case "lastReadyGeneration": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx, field) + case "lastReconcileTime": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx, field) + case "resources": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___reconciler__Status", field.Name) + }, } return fc, nil } -func (ec *executionContext) _Mutation_infra_updateBYOKCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_updateBYOKCluster(ctx, field) +func (ec *executionContext) _Node_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_syncStatus(ctx, field) if err != nil { return graphql.Null } @@ -40157,116 +46877,53 @@ func (ec *executionContext) _Mutation_infra_updateBYOKCluster(ctx context.Contex } }() 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().InfraUpdateBYOKCluster(rctx, fc.Args["clusterName"].(string), fc.Args["displayName"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.BYOKCluster - return zeroVal, 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 { - var zeroVal *entities.BYOKCluster - return zeroVal, 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 *github.com/kloudlite/api/apps/infra/internal/entities.BYOKCluster`, tmp) + 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.(*entities.BYOKCluster) + res := resTmp.(types.SyncStatus) fc.Result = res - return ec.marshalOBYOKCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐBYOKCluster(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_updateBYOKCluster(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Node_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Node", 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_BYOKCluster_accountName(ctx, field) - case "clusterSvcCIDR": - return ec.fieldContext_BYOKCluster_clusterSvcCIDR(ctx, field) - case "clusterToken": - return ec.fieldContext_BYOKCluster_clusterToken(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 "globalVPN": - return ec.fieldContext_BYOKCluster_globalVPN(ctx, field) - case "id": - return ec.fieldContext_BYOKCluster_id(ctx, field) - case "lastOnlineAt": - return ec.fieldContext_BYOKCluster_lastOnlineAt(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_BYOKCluster_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_BYOKCluster_markedForDeletion(ctx, field) - case "messageQueueTopicName": - return ec.fieldContext_BYOKCluster_messageQueueTopicName(ctx, field) - case "metadata": - return ec.fieldContext_BYOKCluster_metadata(ctx, field) - case "ownedBy": - return ec.fieldContext_BYOKCluster_ownedBy(ctx, field) + 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_BYOKCluster_recordVersion(ctx, field) - case "syncStatus": - return ec.fieldContext_BYOKCluster_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_BYOKCluster_updateTime(ctx, field) - case "visibility": - return ec.fieldContext_BYOKCluster_visibility(ctx, field) - case "clusterDNSSuffix": - return ec.fieldContext_BYOKCluster_clusterDNSSuffix(ctx, field) + 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 BYOKCluster", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___pkg___types__SyncStatus", 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_infra_updateBYOKCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_deleteBYOKCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_deleteBYOKCluster(ctx, field) +func (ec *executionContext) _Node_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Node_updateTime(ctx, field) if err != nil { return graphql.Null } @@ -40278,37 +46935,8 @@ func (ec *executionContext) _Mutation_infra_deleteBYOKCluster(ctx context.Contex } }() 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().InfraDeleteBYOKCluster(rctx, fc.Args["name"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal bool - return zeroVal, 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 { - var zeroVal bool - return zeroVal, 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 ec.resolvers.Node().UpdateTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -40320,37 +46948,26 @@ func (ec *executionContext) _Mutation_infra_deleteBYOKCluster(ctx context.Contex } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_deleteBYOKCluster(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Node_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Node", 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") + return nil, errors.New("field of type Date 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_deleteBYOKCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_createProviderSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_createProviderSecret(ctx, field) +func (ec *executionContext) _NodeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.NodeEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodeEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -40362,104 +46979,39 @@ func (ec *executionContext) _Mutation_infra_createProviderSecret(ctx context.Con } }() 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().InfraCreateProviderSecret(rctx, fc.Args["secret"].(entities.CloudProviderSecret)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.CloudProviderSecret - return zeroVal, 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 { - var zeroVal *entities.CloudProviderSecret - return zeroVal, 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.CloudProviderSecret); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.CloudProviderSecret`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*entities.CloudProviderSecret) + res := resTmp.(string) fc.Result = res - return ec.marshalOCloudProviderSecret2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCloudProviderSecret(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_createProviderSecret(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodeEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "NodeEdge", 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_CloudProviderSecret_accountName(ctx, field) - case "aws": - return ec.fieldContext_CloudProviderSecret_aws(ctx, field) - case "cloudProviderName": - return ec.fieldContext_CloudProviderSecret_cloudProviderName(ctx, field) - case "createdBy": - return ec.fieldContext_CloudProviderSecret_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_CloudProviderSecret_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_CloudProviderSecret_displayName(ctx, field) - case "gcp": - return ec.fieldContext_CloudProviderSecret_gcp(ctx, field) - case "id": - return ec.fieldContext_CloudProviderSecret_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_CloudProviderSecret_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_CloudProviderSecret_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_CloudProviderSecret_metadata(ctx, field) - case "recordVersion": - return ec.fieldContext_CloudProviderSecret_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_CloudProviderSecret_updateTime(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CloudProviderSecret", field.Name) + 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_infra_createProviderSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_updateProviderSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_updateProviderSecret(ctx, field) +func (ec *executionContext) _NodeEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.NodeEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodeEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -40471,104 +47023,67 @@ func (ec *executionContext) _Mutation_infra_updateProviderSecret(ctx context.Con } }() 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().InfraUpdateProviderSecret(rctx, fc.Args["secret"].(entities.CloudProviderSecret)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.CloudProviderSecret - return zeroVal, 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 { - var zeroVal *entities.CloudProviderSecret - return zeroVal, 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.CloudProviderSecret); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.CloudProviderSecret`, tmp) + 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.CloudProviderSecret) + res := resTmp.(*entities.Node) fc.Result = res - return ec.marshalOCloudProviderSecret2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCloudProviderSecret(ctx, field.Selections, res) + return ec.marshalNNode2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNode(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_updateProviderSecret(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodeEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "NodeEdge", 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_CloudProviderSecret_accountName(ctx, field) - case "aws": - return ec.fieldContext_CloudProviderSecret_aws(ctx, field) - case "cloudProviderName": - return ec.fieldContext_CloudProviderSecret_cloudProviderName(ctx, field) - case "createdBy": - return ec.fieldContext_CloudProviderSecret_createdBy(ctx, field) + return ec.fieldContext_Node_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_Node_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_Node_clusterName(ctx, field) case "creationTime": - return ec.fieldContext_CloudProviderSecret_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_CloudProviderSecret_displayName(ctx, field) - case "gcp": - return ec.fieldContext_CloudProviderSecret_gcp(ctx, field) + return ec.fieldContext_Node_creationTime(ctx, field) case "id": - return ec.fieldContext_CloudProviderSecret_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_CloudProviderSecret_lastUpdatedBy(ctx, field) + return ec.fieldContext_Node_id(ctx, field) + case "kind": + return ec.fieldContext_Node_kind(ctx, field) case "markedForDeletion": - return ec.fieldContext_CloudProviderSecret_markedForDeletion(ctx, field) + return ec.fieldContext_Node_markedForDeletion(ctx, field) case "metadata": - return ec.fieldContext_CloudProviderSecret_metadata(ctx, field) + return ec.fieldContext_Node_metadata(ctx, field) case "recordVersion": - return ec.fieldContext_CloudProviderSecret_recordVersion(ctx, field) + return ec.fieldContext_Node_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_Node_spec(ctx, field) + case "status": + return ec.fieldContext_Node_status(ctx, field) + case "syncStatus": + return ec.fieldContext_Node_syncStatus(ctx, field) case "updateTime": - return ec.fieldContext_CloudProviderSecret_updateTime(ctx, field) + return ec.fieldContext_Node_updateTime(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CloudProviderSecret", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Node", 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_infra_updateProviderSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_deleteProviderSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_deleteProviderSecret(ctx, field) +func (ec *executionContext) _NodePaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.NodePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -40580,37 +47095,8 @@ func (ec *executionContext) _Mutation_infra_deleteProviderSecret(ctx context.Con } }() 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().InfraDeleteProviderSecret(rctx, fc.Args["secretName"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal bool - return zeroVal, 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 { - var zeroVal bool - return zeroVal, 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.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -40622,37 +47108,32 @@ func (ec *executionContext) _Mutation_infra_deleteProviderSecret(ctx context.Con } return graphql.Null } - res := resTmp.(bool) + res := resTmp.([]*model.NodeEdge) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNNodeEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐNodeEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_deleteProviderSecret(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "NodePaginatedRecords", 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") + switch field.Name { + case "cursor": + return ec.fieldContext_NodeEdge_cursor(ctx, field) + case "node": + return ec.fieldContext_NodeEdge_node(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NodeEdge", 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_infra_deleteProviderSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_createDomainEntry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_createDomainEntry(ctx, field) +func (ec *executionContext) _NodePaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.NodePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -40664,100 +47145,49 @@ func (ec *executionContext) _Mutation_infra_createDomainEntry(ctx context.Contex } }() 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().InfraCreateDomainEntry(rctx, fc.Args["domainEntry"].(entities.DomainEntry)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.DomainEntry - return zeroVal, 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 { - var zeroVal *entities.DomainEntry - return zeroVal, 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.DomainEntry); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.DomainEntry`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*entities.DomainEntry) + res := resTmp.(*model.PageInfo) fc.Result = res - return ec.marshalODomainEntry2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐDomainEntry(ctx, field.Selections, res) + return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_createDomainEntry(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "NodePaginatedRecords", 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_DomainEntry_accountName(ctx, field) - case "clusterName": - return ec.fieldContext_DomainEntry_clusterName(ctx, field) - case "createdBy": - return ec.fieldContext_DomainEntry_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_DomainEntry_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_DomainEntry_displayName(ctx, field) - case "domainName": - return ec.fieldContext_DomainEntry_domainName(ctx, field) - case "id": - return ec.fieldContext_DomainEntry_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_DomainEntry_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_DomainEntry_markedForDeletion(ctx, field) - case "recordVersion": - return ec.fieldContext_DomainEntry_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_DomainEntry_updateTime(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPrevPage": + return ec.fieldContext_PageInfo_hasPrevPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DomainEntry", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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_infra_createDomainEntry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_updateDomainEntry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_updateDomainEntry(ctx, field) +func (ec *executionContext) _NodePaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.NodePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -40769,100 +47199,39 @@ func (ec *executionContext) _Mutation_infra_updateDomainEntry(ctx context.Contex } }() 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().InfraUpdateDomainEntry(rctx, fc.Args["domainEntry"].(entities.DomainEntry)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.DomainEntry - return zeroVal, 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 { - var zeroVal *entities.DomainEntry - return zeroVal, 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.DomainEntry); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.DomainEntry`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*entities.DomainEntry) + res := resTmp.(int) fc.Result = res - return ec.marshalODomainEntry2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐDomainEntry(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_updateDomainEntry(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "NodePaginatedRecords", 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_DomainEntry_accountName(ctx, field) - case "clusterName": - return ec.fieldContext_DomainEntry_clusterName(ctx, field) - case "createdBy": - return ec.fieldContext_DomainEntry_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_DomainEntry_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_DomainEntry_displayName(ctx, field) - case "domainName": - return ec.fieldContext_DomainEntry_domainName(ctx, field) - case "id": - return ec.fieldContext_DomainEntry_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_DomainEntry_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_DomainEntry_markedForDeletion(ctx, field) - case "recordVersion": - return ec.fieldContext_DomainEntry_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_DomainEntry_updateTime(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DomainEntry", 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_Mutation_infra_updateDomainEntry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_deleteDomainEntry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_deleteDomainEntry(ctx, field) +func (ec *executionContext) _NodePool_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_accountName(ctx, field) if err != nil { return graphql.Null } @@ -40874,37 +47243,8 @@ func (ec *executionContext) _Mutation_infra_deleteDomainEntry(ctx context.Contex } }() 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().InfraDeleteDomainEntry(rctx, fc.Args["domainName"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal bool - return zeroVal, 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 { - var zeroVal bool - return zeroVal, 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.AccountName, nil }) if err != nil { ec.Error(ctx, err) @@ -40916,37 +47256,26 @@ func (ec *executionContext) _Mutation_infra_deleteDomainEntry(ctx context.Contex } 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_infra_deleteDomainEntry(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "NodePool", 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_infra_deleteDomainEntry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_createNodePool(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_createNodePool(ctx, field) +func (ec *executionContext) _NodePool_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -40958,37 +47287,8 @@ func (ec *executionContext) _Mutation_infra_createNodePool(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().InfraCreateNodePool(rctx, fc.Args["clusterName"].(string), fc.Args["pool"].(entities.NodePool)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.NodePool - return zeroVal, 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 { - var zeroVal *entities.NodePool - return zeroVal, 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.NodePool); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.NodePool`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.APIVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -40997,73 +47297,70 @@ func (ec *executionContext) _Mutation_infra_createNodePool(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*entities.NodePool) + res := resTmp.(string) fc.Result = res - return ec.marshalONodePool2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNodePool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_createNodePool(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "NodePool", 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_NodePool_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_NodePool_apiVersion(ctx, field) - case "clusterName": - return ec.fieldContext_NodePool_clusterName(ctx, field) - case "createdBy": - return ec.fieldContext_NodePool_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_NodePool_creationTime(ctx, field) - case "dispatchAddr": - return ec.fieldContext_NodePool_dispatchAddr(ctx, field) - case "displayName": - return ec.fieldContext_NodePool_displayName(ctx, field) - case "id": - return ec.fieldContext_NodePool_id(ctx, field) - case "kind": - return ec.fieldContext_NodePool_kind(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_NodePool_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_NodePool_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_NodePool_metadata(ctx, field) - case "recordVersion": - return ec.fieldContext_NodePool_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_NodePool_spec(ctx, field) - case "status": - return ec.fieldContext_NodePool_status(ctx, field) - case "syncStatus": - return ec.fieldContext_NodePool_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_NodePool_updateTime(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NodePool", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } + return fc, nil +} + +func (ec *executionContext) _NodePool_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_clusterName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_infra_createNodePool_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ClusterName, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, 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_NodePool_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NodePool", + 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_infra_updateNodePool(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_updateNodePool(ctx, field) +func (ec *executionContext) _NodePool_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -41075,112 +47372,47 @@ func (ec *executionContext) _Mutation_infra_updateNodePool(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().InfraUpdateNodePool(rctx, fc.Args["clusterName"].(string), fc.Args["pool"].(entities.NodePool)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.NodePool - return zeroVal, 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 { - var zeroVal *entities.NodePool - return zeroVal, 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.NodePool); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.NodePool`, tmp) + 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.(*entities.NodePool) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalONodePool2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNodePool(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_Mutation_infra_updateNodePool(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "NodePool", 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_NodePool_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_NodePool_apiVersion(ctx, field) - case "clusterName": - return ec.fieldContext_NodePool_clusterName(ctx, field) - case "createdBy": - return ec.fieldContext_NodePool_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_NodePool_creationTime(ctx, field) - case "dispatchAddr": - return ec.fieldContext_NodePool_dispatchAddr(ctx, field) - case "displayName": - return ec.fieldContext_NodePool_displayName(ctx, field) - case "id": - return ec.fieldContext_NodePool_id(ctx, field) - case "kind": - return ec.fieldContext_NodePool_kind(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_NodePool_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_NodePool_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_NodePool_metadata(ctx, field) - case "recordVersion": - return ec.fieldContext_NodePool_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_NodePool_spec(ctx, field) - case "status": - return ec.fieldContext_NodePool_status(ctx, field) - case "syncStatus": - return ec.fieldContext_NodePool_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_NodePool_updateTime(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 NodePool", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", 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_infra_updateNodePool_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_deleteNodePool(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_deleteNodePool(ctx, field) +func (ec *executionContext) _NodePool_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_creationTime(ctx, field) if err != nil { return graphql.Null } @@ -41192,37 +47424,8 @@ func (ec *executionContext) _Mutation_infra_deleteNodePool(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().InfraDeleteNodePool(rctx, fc.Args["clusterName"].(string), fc.Args["poolName"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal bool - return zeroVal, 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 { - var zeroVal bool - return zeroVal, 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 ec.resolvers.NodePool().CreationTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -41234,37 +47437,26 @@ func (ec *executionContext) _Mutation_infra_deleteNodePool(ctx context.Context, } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_deleteNodePool(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "NodePool", 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") + return nil, errors.New("field of type Date 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_deleteNodePool_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_infra_deletePV(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_infra_deletePV(ctx, field) +func (ec *executionContext) _NodePool_dispatchAddr(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_dispatchAddr(ctx, field) if err != nil { return graphql.Null } @@ -41276,79 +47468,42 @@ func (ec *executionContext) _Mutation_infra_deletePV(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().InfraDeletePv(rctx, fc.Args["clusterName"].(string), fc.Args["pvName"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal bool - return zeroVal, 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 { - var zeroVal bool - return zeroVal, 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 ec.resolvers.NodePool().DispatchAddr(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.(*model.GithubComKloudliteAPIAppsInfraInternalEntitiesDispatchAddr) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsInfraInternalEntitiesDispatchAddr(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_deletePV(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_dispatchAddr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "NodePool", 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_Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr_accountName(ctx, field) + case "clusterName": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr_clusterName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr", 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_infra_deletePV_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Namespace_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_accountName(ctx, field) +func (ec *executionContext) _NodePool_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_displayName(ctx, field) if err != nil { return graphql.Null } @@ -41361,7 +47516,7 @@ func (ec *executionContext) _Namespace_accountName(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.AccountName, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -41378,9 +47533,9 @@ func (ec *executionContext) _Namespace_accountName(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePool", Field: field, IsMethod: false, IsResolver: false, @@ -41391,8 +47546,8 @@ func (ec *executionContext) fieldContext_Namespace_accountName(_ context.Context return fc, nil } -func (ec *executionContext) _Namespace_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_apiVersion(ctx, field) +func (ec *executionContext) _NodePool_id(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_id(ctx, field) if err != nil { return graphql.Null } @@ -41405,35 +47560,38 @@ func (ec *executionContext) _Namespace_apiVersion(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.APIVersion, nil + return ec.resolvers.NodePool().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.(string) + res := resTmp.(repos.ID) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePool", 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 ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Namespace_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_clusterName(ctx, field) +func (ec *executionContext) _NodePool_kind(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_kind(ctx, field) if err != nil { return graphql.Null } @@ -41446,26 +47604,23 @@ func (ec *executionContext) _Namespace_clusterName(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.ClusterName, 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.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePool", Field: field, IsMethod: false, IsResolver: false, @@ -41476,8 +47631,8 @@ func (ec *executionContext) fieldContext_Namespace_clusterName(_ context.Context return fc, nil } -func (ec *executionContext) _Namespace_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_createdBy(ctx, field) +func (ec *executionContext) _NodePool_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_lastUpdatedBy(ctx, field) if err != nil { return graphql.Null } @@ -41490,7 +47645,7 @@ func (ec *executionContext) _Namespace_createdBy(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.CreatedBy, nil + return obj.LastUpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -41507,9 +47662,9 @@ func (ec *executionContext) _Namespace_createdBy(ctx context.Context, field grap return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePool", Field: field, IsMethod: false, IsResolver: false, @@ -41528,8 +47683,8 @@ func (ec *executionContext) fieldContext_Namespace_createdBy(_ context.Context, return fc, nil } -func (ec *executionContext) _Namespace_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_creationTime(ctx, field) +func (ec *executionContext) _NodePool_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_markedForDeletion(ctx, field) if err != nil { return graphql.Null } @@ -41542,38 +47697,92 @@ func (ec *executionContext) _Namespace_creationTime(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 ec.resolvers.Namespace().CreationTime(rctx, obj) + 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.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NodePool_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NodePool", + 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) _NodePool_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_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 } - res := resTmp.(string) + if resTmp == nil { + return graphql.Null + } + res := resTmp.(v1.ObjectMeta) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePool", 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 "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) _Namespace_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_displayName(ctx, field) +func (ec *executionContext) _NodePool_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -41586,7 +47795,7 @@ func (ec *executionContext) _Namespace_displayName(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.DisplayName, nil + return obj.RecordVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -41598,26 +47807,26 @@ func (ec *executionContext) _Namespace_displayName(ctx context.Context, field gr } 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_Namespace_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePool", 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) _Namespace_id(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_id(ctx, field) +func (ec *executionContext) _NodePool_spec(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_spec(ctx, field) if err != nil { return graphql.Null } @@ -41630,7 +47839,7 @@ func (ec *executionContext) _Namespace_id(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 ec.resolvers.Namespace().ID(rctx, obj) + return ec.resolvers.NodePool().Spec(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -41642,26 +47851,42 @@ func (ec *executionContext) _Namespace_id(ctx context.Context, field graphql.Col } return graphql.Null } - res := resTmp.(repos.ID) + res := resTmp.(*model.GithubComKloudliteOperatorApisClustersV1NodePoolSpec) fc.Result = res - return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisClustersV1NodePoolSpec(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePool", 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") + switch field.Name { + case "aws": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_aws(ctx, field) + case "cloudProvider": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_cloudProvider(ctx, field) + case "gcp": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_gcp(ctx, field) + case "maxCount": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_maxCount(ctx, field) + case "minCount": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_minCount(ctx, field) + case "nodeLabels": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_nodeLabels(ctx, field) + case "nodeTaints": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_nodeTaints(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec", field.Name) }, } return fc, nil } -func (ec *executionContext) _Namespace_kind(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_kind(ctx, field) +func (ec *executionContext) _NodePool_status(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_status(ctx, field) if err != nil { return graphql.Null } @@ -41674,7 +47899,7 @@ func (ec *executionContext) _Namespace_kind(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.Kind, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -41683,26 +47908,40 @@ func (ec *executionContext) _Namespace_kind(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(reconciler.Status) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__Status2githubᚗcomᚋkloudliteᚋoperatorᚋtoolkitᚋreconcilerᚐStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePool", 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 "checkList": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(ctx, field) + case "checks": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(ctx, field) + case "isReady": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx, field) + case "lastReadyGeneration": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx, field) + case "lastReconcileTime": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx, field) + case "resources": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___reconciler__Status", field.Name) }, } return fc, nil } -func (ec *executionContext) _Namespace_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_lastUpdatedBy(ctx, field) +func (ec *executionContext) _NodePool_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_syncStatus(ctx, field) if err != nil { return graphql.Null } @@ -41715,7 +47954,7 @@ func (ec *executionContext) _Namespace_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 obj.SyncStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -41727,34 +47966,84 @@ func (ec *executionContext) _Namespace_lastUpdatedBy(ctx context.Context, field } return graphql.Null } - res := resTmp.(common.CreatedOrUpdatedBy) + res := resTmp.(types.SyncStatus) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePool_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePool", 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) + 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) _NodePool_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePool_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.NodePool().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_NodePool_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NodePool", + 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) _Namespace_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_markedForDeletion(ctx, field) +func (ec *executionContext) _NodePoolEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.NodePoolEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePoolEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -41767,35 +48056,38 @@ func (ec *executionContext) _Namespace_markedForDeletion(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.MarkedForDeletion, 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.(*bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePoolEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePoolEdge", 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) _Namespace_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_metadata(ctx, field) +func (ec *executionContext) _NodePoolEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.NodePoolEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePoolEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -41808,51 +48100,74 @@ func (ec *executionContext) _Namespace_metadata(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.ObjectMeta, 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.(v1.ObjectMeta) + res := resTmp.(*entities.NodePool) fc.Result = res - return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) + return ec.marshalNNodePool2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNodePool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePoolEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePoolEdge", 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) + case "accountName": + return ec.fieldContext_NodePool_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_NodePool_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_NodePool_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_NodePool_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_NodePool_creationTime(ctx, field) + case "dispatchAddr": + return ec.fieldContext_NodePool_dispatchAddr(ctx, field) + case "displayName": + return ec.fieldContext_NodePool_displayName(ctx, field) + case "id": + return ec.fieldContext_NodePool_id(ctx, field) + case "kind": + return ec.fieldContext_NodePool_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_NodePool_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_NodePool_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_NodePool_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_NodePool_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_NodePool_spec(ctx, field) + case "status": + return ec.fieldContext_NodePool_status(ctx, field) + case "syncStatus": + return ec.fieldContext_NodePool_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_NodePool_updateTime(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 NodePool", field.Name) }, } return fc, nil } -func (ec *executionContext) _Namespace_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_recordVersion(ctx, field) +func (ec *executionContext) _NodePoolPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.NodePoolPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePoolPaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -41865,7 +48180,7 @@ func (ec *executionContext) _Namespace_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.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -41877,26 +48192,32 @@ func (ec *executionContext) _Namespace_recordVersion(ctx context.Context, field } return graphql.Null } - res := resTmp.(int) + res := resTmp.([]*model.NodePoolEdge) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNNodePoolEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐNodePoolEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePoolPaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePoolPaginatedRecords", 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 "cursor": + return ec.fieldContext_NodePoolEdge_cursor(ctx, field) + case "node": + return ec.fieldContext_NodePoolEdge_node(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NodePoolEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Namespace_spec(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_spec(ctx, field) +func (ec *executionContext) _NodePoolPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.NodePoolPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePoolPaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -41909,39 +48230,48 @@ func (ec *executionContext) _Namespace_spec(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 ec.resolvers.Namespace().Spec(rctx, obj) + 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.(*model.K8sIoAPICoreV1NamespaceSpec) + res := resTmp.(*model.PageInfo) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__NamespaceSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NamespaceSpec(ctx, field.Selections, res) + return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePoolPaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePoolPaginatedRecords", 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 "finalizers": - return ec.fieldContext_K8s__io___api___core___v1__NamespaceSpec_finalizers(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPrevPage": + return ec.fieldContext_PageInfo_hasPrevPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NamespaceSpec", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Namespace_status(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_status(ctx, field) +func (ec *executionContext) _NodePoolPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.NodePoolPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NodePoolPaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -41954,41 +48284,38 @@ func (ec *executionContext) _Namespace_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.Namespace().Status(rctx, obj) + 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.(*model.K8sIoAPICoreV1NamespaceStatus) + res := resTmp.(int) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__NamespaceStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1NamespaceStatus(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NodePoolPaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "NodePoolPaginatedRecords", 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 "conditions": - return ec.fieldContext_K8s__io___api___core___v1__NamespaceStatus_conditions(ctx, field) - case "phase": - return ec.fieldContext_K8s__io___api___core___v1__NamespaceStatus_phase(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__NamespaceStatus", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Namespace_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_syncStatus(ctx, field) +func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PageInfo_endCursor(ctx, field) if err != nil { return graphql.Null } @@ -42001,52 +48328,35 @@ func (ec *executionContext) _Namespace_syncStatus(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.SyncStatus, nil + return obj.EndCursor, 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) + res := resTmp.(*string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "PageInfo", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Namespace_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.Namespace) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Namespace_updateTime(ctx, field) +func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PageInfo_hasNextPage(ctx, field) if err != nil { return graphql.Null } @@ -42059,38 +48369,35 @@ func (ec *executionContext) _Namespace_updateTime(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.Namespace().UpdateTime(rctx, obj) + return obj.HasNextPage, 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.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Namespace_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Namespace", + Object: "PageInfo", 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 Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NamespaceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.NamespaceEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NamespaceEdge_cursor(ctx, field) +func (ec *executionContext) _PageInfo_hasPrevPage(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PageInfo_hasPrevPage(ctx, field) if err != nil { return graphql.Null } @@ -42103,38 +48410,35 @@ func (ec *executionContext) _NamespaceEdge_cursor(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.Cursor, nil + return obj.HasPrevPage, 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_NamespaceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PageInfo_hasPrevPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NamespaceEdge", + Object: "PageInfo", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NamespaceEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.NamespaceEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NamespaceEdge_node(ctx, field) +func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PageInfo_startCursor(ctx, field) if err != nil { return graphql.Null } @@ -42147,72 +48451,35 @@ func (ec *executionContext) _NamespaceEdge_node(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.Node, nil + return obj.StartCursor, 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.Namespace) + res := resTmp.(*string) fc.Result = res - return ec.marshalNNamespace2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNamespace(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NamespaceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NamespaceEdge", + Object: "PageInfo", 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_Namespace_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_Namespace_apiVersion(ctx, field) - case "clusterName": - return ec.fieldContext_Namespace_clusterName(ctx, field) - case "createdBy": - return ec.fieldContext_Namespace_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_Namespace_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_Namespace_displayName(ctx, field) - case "id": - return ec.fieldContext_Namespace_id(ctx, field) - case "kind": - return ec.fieldContext_Namespace_kind(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_Namespace_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_Namespace_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_Namespace_metadata(ctx, field) - case "recordVersion": - return ec.fieldContext_Namespace_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_Namespace_spec(ctx, field) - case "status": - return ec.fieldContext_Namespace_status(ctx, field) - case "syncStatus": - return ec.fieldContext_Namespace_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_Namespace_updateTime(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Namespace", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NamespacePaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.NamespacePaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NamespacePaginatedRecords_edges(ctx, field) +func (ec *executionContext) _PersistentVolume_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_accountName(ctx, field) if err != nil { return graphql.Null } @@ -42225,7 +48492,7 @@ func (ec *executionContext) _NamespacePaginatedRecords_edges(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.Edges, nil + return obj.AccountName, nil }) if err != nil { ec.Error(ctx, err) @@ -42237,32 +48504,26 @@ func (ec *executionContext) _NamespacePaginatedRecords_edges(ctx context.Context } return graphql.Null } - res := resTmp.([]*model.NamespaceEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalNNamespaceEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐNamespaceEdgeᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NamespacePaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NamespacePaginatedRecords", + Object: "PersistentVolume", 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_NamespaceEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_NamespaceEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NamespaceEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NamespacePaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.NamespacePaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NamespacePaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _PersistentVolume_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -42275,48 +48536,35 @@ func (ec *executionContext) _NamespacePaginatedRecords_pageInfo(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.PageInfo, nil + return obj.APIVersion, 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.(string) fc.Result = res - return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NamespacePaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NamespacePaginatedRecords", + Object: "PersistentVolume", 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 "hasPrevPage": - return ec.fieldContext_PageInfo_hasPrevPage(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 String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NamespacePaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.NamespacePaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NamespacePaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _PersistentVolume_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_clusterName(ctx, field) if err != nil { return graphql.Null } @@ -42329,7 +48577,7 @@ func (ec *executionContext) _NamespacePaginatedRecords_totalCount(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.TotalCount, nil + return obj.ClusterName, nil }) if err != nil { ec.Error(ctx, err) @@ -42341,26 +48589,26 @@ func (ec *executionContext) _NamespacePaginatedRecords_totalCount(ctx context.Co } 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_NamespacePaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NamespacePaginatedRecords", + Object: "PersistentVolume", 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) _Node_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_accountName(ctx, field) +func (ec *executionContext) _PersistentVolume_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -42373,7 +48621,7 @@ func (ec *executionContext) _Node_accountName(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.AccountName, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -42385,26 +48633,34 @@ func (ec *executionContext) _Node_accountName(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(string) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalNString2string(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_Node_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", 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 "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) _Node_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_apiVersion(ctx, field) +func (ec *executionContext) _PersistentVolume_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_creationTime(ctx, field) if err != nil { return graphql.Null } @@ -42417,35 +48673,38 @@ func (ec *executionContext) _Node_apiVersion(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.APIVersion, nil + return ec.resolvers.PersistentVolume().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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Node_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", 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) _Node_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_clusterName(ctx, field) +func (ec *executionContext) _PersistentVolume_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_displayName(ctx, field) if err != nil { return graphql.Null } @@ -42458,7 +48717,7 @@ func (ec *executionContext) _Node_clusterName(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.ClusterName, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -42475,9 +48734,9 @@ func (ec *executionContext) _Node_clusterName(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Node_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", Field: field, IsMethod: false, IsResolver: false, @@ -42488,8 +48747,8 @@ func (ec *executionContext) fieldContext_Node_clusterName(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Node_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_creationTime(ctx, field) +func (ec *executionContext) _PersistentVolume_id(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_id(ctx, field) if err != nil { return graphql.Null } @@ -42502,7 +48761,7 @@ func (ec *executionContext) _Node_creationTime(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.Node().CreationTime(rctx, obj) + return ec.resolvers.PersistentVolume().ID(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -42514,26 +48773,26 @@ func (ec *executionContext) _Node_creationTime(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(string) + res := resTmp.(repos.ID) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Node_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Node_id(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_id(ctx, field) +func (ec *executionContext) _PersistentVolume_kind(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_kind(ctx, field) if err != nil { return graphql.Null } @@ -42546,38 +48805,35 @@ func (ec *executionContext) _Node_id(ctx context.Context, field graphql.Collecte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Node().ID(rctx, obj) + 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.(repos.ID) + res := resTmp.(string) fc.Result = res - return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Node_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", 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 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) _Node_kind(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_kind(ctx, field) +func (ec *executionContext) _PersistentVolume_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_lastUpdatedBy(ctx, field) if err != nil { return graphql.Null } @@ -42590,35 +48846,46 @@ func (ec *executionContext) _Node_kind(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.Kind, nil + 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.(string) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalOString2string(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_Node_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", 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 "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) _Node_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_markedForDeletion(ctx, field) +func (ec *executionContext) _PersistentVolume_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_markedForDeletion(ctx, field) if err != nil { return graphql.Null } @@ -42645,9 +48912,9 @@ func (ec *executionContext) _Node_markedForDeletion(ctx context.Context, field g return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Node_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", Field: field, IsMethod: false, IsResolver: false, @@ -42658,8 +48925,8 @@ func (ec *executionContext) fieldContext_Node_markedForDeletion(_ context.Contex return fc, nil } -func (ec *executionContext) _Node_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_metadata(ctx, field) +func (ec *executionContext) _PersistentVolume_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_metadata(ctx, field) if err != nil { return graphql.Null } @@ -42686,9 +48953,9 @@ func (ec *executionContext) _Node_metadata(ctx context.Context, field graphql.Co return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Node_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", Field: field, IsMethod: false, IsResolver: false, @@ -42715,8 +48982,8 @@ func (ec *executionContext) fieldContext_Node_metadata(_ context.Context, field return fc, nil } -func (ec *executionContext) _Node_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_recordVersion(ctx, field) +func (ec *executionContext) _PersistentVolume_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -42746,9 +49013,9 @@ func (ec *executionContext) _Node_recordVersion(ctx context.Context, field graph return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Node_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", Field: field, IsMethod: false, IsResolver: false, @@ -42759,8 +49026,8 @@ func (ec *executionContext) fieldContext_Node_recordVersion(_ context.Context, f return fc, nil } -func (ec *executionContext) _Node_spec(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_spec(ctx, field) +func (ec *executionContext) _PersistentVolume_spec(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_spec(ctx, field) if err != nil { return graphql.Null } @@ -42773,42 +49040,99 @@ func (ec *executionContext) _Node_spec(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 ec.resolvers.Node().Spec(rctx, obj) + return ec.resolvers.PersistentVolume().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.GithubComKloudliteOperatorApisClustersV1NodeSpec) + res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumeSpec) fc.Result = res - return ec.marshalNGithub__com___kloudlite___operator___apis___clusters___v1__NodeSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisClustersV1NodeSpec(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__PersistentVolumeSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeSpec(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Node_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "nodepoolName": - return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec_nodepoolName(ctx, field) + case "accessModes": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_accessModes(ctx, field) + case "awsElasticBlockStore": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_awsElasticBlockStore(ctx, field) + case "azureDisk": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureDisk(ctx, field) + case "azureFile": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureFile(ctx, field) + case "capacity": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_capacity(ctx, field) + case "cephfs": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cephfs(ctx, field) + case "cinder": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cinder(ctx, field) + case "claimRef": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_claimRef(ctx, field) + case "csi": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_csi(ctx, field) + case "fc": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_fc(ctx, field) + case "flexVolume": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flexVolume(ctx, field) + case "flocker": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flocker(ctx, field) + case "gcePersistentDisk": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_gcePersistentDisk(ctx, field) + case "glusterfs": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_glusterfs(ctx, field) + case "hostPath": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_hostPath(ctx, field) + case "iscsi": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_iscsi(ctx, field) + case "local": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_local(ctx, field) + case "mountOptions": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_mountOptions(ctx, field) + case "nfs": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nfs(ctx, field) + case "nodeAffinity": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nodeAffinity(ctx, field) + case "persistentVolumeReclaimPolicy": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_persistentVolumeReclaimPolicy(ctx, field) + case "photonPersistentDisk": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_photonPersistentDisk(ctx, field) + case "portworxVolume": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_portworxVolume(ctx, field) + case "quobyte": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_quobyte(ctx, field) + case "rbd": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_rbd(ctx, field) + case "scaleIO": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_scaleIO(ctx, field) + case "storageClassName": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageClassName(ctx, field) + case "storageos": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageos(ctx, field) + case "volumeAttributesClassName": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeAttributesClassName(ctx, field) + case "volumeMode": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeMode(ctx, field) + case "vsphereVolume": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_vsphereVolume(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PersistentVolumeSpec", field.Name) }, } return fc, nil } -func (ec *executionContext) _Node_status(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_status(ctx, field) +func (ec *executionContext) _PersistentVolume_status(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_status(ctx, field) if err != nil { return graphql.Null } @@ -42821,7 +49145,7 @@ func (ec *executionContext) _Node_status(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 ec.resolvers.Node().Status(rctx, obj) + return ec.resolvers.PersistentVolume().Status(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -42830,42 +49154,36 @@ func (ec *executionContext) _Node_status(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorPkgOperatorStatus) + res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumeStatus) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__Status2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorStatus(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__PersistentVolumeStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Node_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", Field: field, IsMethod: true, IsResolver: true, 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 "lastPhaseTransitionTime": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_lastPhaseTransitionTime(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 ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_message(ctx, field) + case "phase": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_phase(ctx, field) + case "reason": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_reason(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, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PersistentVolumeStatus", field.Name) }, } return fc, nil } -func (ec *executionContext) _Node_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_syncStatus(ctx, field) +func (ec *executionContext) _PersistentVolume_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_syncStatus(ctx, field) if err != nil { return graphql.Null } @@ -42895,9 +49213,9 @@ func (ec *executionContext) _Node_syncStatus(ctx context.Context, field graphql. return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Node_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", Field: field, IsMethod: false, IsResolver: false, @@ -42922,8 +49240,8 @@ func (ec *executionContext) fieldContext_Node_syncStatus(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Node_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.Node) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Node_updateTime(ctx, field) +func (ec *executionContext) _PersistentVolume_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolume_updateTime(ctx, field) if err != nil { return graphql.Null } @@ -42936,7 +49254,7 @@ func (ec *executionContext) _Node_updateTime(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.Node().UpdateTime(rctx, obj) + return ec.resolvers.PersistentVolume().UpdateTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -42953,9 +49271,9 @@ func (ec *executionContext) _Node_updateTime(ctx context.Context, field graphql. return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Node_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolume_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Node", + Object: "PersistentVolume", Field: field, IsMethod: true, IsResolver: true, @@ -42966,8 +49284,8 @@ func (ec *executionContext) fieldContext_Node_updateTime(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _NodeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.NodeEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodeEdge_cursor(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_accountName(ctx, field) if err != nil { return graphql.Null } @@ -42980,7 +49298,7 @@ func (ec *executionContext) _NodeEdge_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.AccountName, nil }) if err != nil { ec.Error(ctx, err) @@ -42997,9 +49315,9 @@ func (ec *executionContext) _NodeEdge_cursor(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodeEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodeEdge", + Object: "PersistentVolumeClaim", Field: field, IsMethod: false, IsResolver: false, @@ -43010,8 +49328,8 @@ func (ec *executionContext) fieldContext_NodeEdge_cursor(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _NodeEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.NodeEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodeEdge_node(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -43024,66 +49342,35 @@ func (ec *executionContext) _NodeEdge_node(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.Node, nil + return obj.APIVersion, 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.Node) + res := resTmp.(string) fc.Result = res - return ec.marshalNNode2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNode(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodeEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodeEdge", + Object: "PersistentVolumeClaim", 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_Node_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_Node_apiVersion(ctx, field) - case "clusterName": - return ec.fieldContext_Node_clusterName(ctx, field) - case "creationTime": - return ec.fieldContext_Node_creationTime(ctx, field) - case "id": - return ec.fieldContext_Node_id(ctx, field) - case "kind": - return ec.fieldContext_Node_kind(ctx, field) - case "markedForDeletion": - return ec.fieldContext_Node_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_Node_metadata(ctx, field) - case "recordVersion": - return ec.fieldContext_Node_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_Node_spec(ctx, field) - case "status": - return ec.fieldContext_Node_status(ctx, field) - case "syncStatus": - return ec.fieldContext_Node_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_Node_updateTime(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Node", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NodePaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.NodePaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePaginatedRecords_edges(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_clusterName(ctx, field) if err != nil { return graphql.Null } @@ -43096,7 +49383,7 @@ func (ec *executionContext) _NodePaginatedRecords_edges(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.Edges, nil + return obj.ClusterName, nil }) if err != nil { ec.Error(ctx, err) @@ -43108,32 +49395,26 @@ func (ec *executionContext) _NodePaginatedRecords_edges(ctx context.Context, fie } return graphql.Null } - res := resTmp.([]*model.NodeEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalNNodeEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐNodeEdgeᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePaginatedRecords", + Object: "PersistentVolumeClaim", 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_NodeEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_NodeEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NodeEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NodePaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.NodePaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -43146,7 +49427,7 @@ func (ec *executionContext) _NodePaginatedRecords_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.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -43158,36 +49439,34 @@ func (ec *executionContext) _NodePaginatedRecords_pageInfo(ctx context.Context, } return graphql.Null } - res := resTmp.(*model.PageInfo) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋ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_NodePaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePaginatedRecords", + Object: "PersistentVolumeClaim", 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 "hasPrevPage": - return ec.fieldContext_PageInfo_hasPrevPage(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) _NodePaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.NodePaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_creationTime(ctx, field) if err != nil { return graphql.Null } @@ -43200,7 +49479,7 @@ func (ec *executionContext) _NodePaginatedRecords_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 ec.resolvers.PersistentVolumeClaim().CreationTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -43212,26 +49491,26 @@ func (ec *executionContext) _NodePaginatedRecords_totalCount(ctx context.Context } 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_NodePaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePaginatedRecords", + Object: "PersistentVolumeClaim", 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) _NodePool_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_accountName(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_displayName(ctx, field) if err != nil { return graphql.Null } @@ -43244,7 +49523,7 @@ func (ec *executionContext) _NodePool_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 obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -43261,9 +49540,9 @@ func (ec *executionContext) _NodePool_accountName(ctx context.Context, field gra return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaim", Field: field, IsMethod: false, IsResolver: false, @@ -43274,8 +49553,8 @@ func (ec *executionContext) fieldContext_NodePool_accountName(_ context.Context, return fc, nil } -func (ec *executionContext) _NodePool_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_apiVersion(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_id(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_id(ctx, field) if err != nil { return graphql.Null } @@ -43288,35 +49567,38 @@ func (ec *executionContext) _NodePool_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 ec.resolvers.PersistentVolumeClaim().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.(string) + res := resTmp.(repos.ID) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaim", 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 ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NodePool_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_clusterName(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_kind(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_kind(ctx, field) if err != nil { return graphql.Null } @@ -43329,26 +49611,23 @@ func (ec *executionContext) _NodePool_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.Kind, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaim", Field: field, IsMethod: false, IsResolver: false, @@ -43359,8 +49638,8 @@ func (ec *executionContext) fieldContext_NodePool_clusterName(_ context.Context, return fc, nil } -func (ec *executionContext) _NodePool_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_createdBy(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_lastUpdatedBy(ctx, field) if err != nil { return graphql.Null } @@ -43373,7 +49652,7 @@ func (ec *executionContext) _NodePool_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.LastUpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -43390,9 +49669,9 @@ func (ec *executionContext) _NodePool_createdBy(ctx context.Context, field graph return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaim", Field: field, IsMethod: false, IsResolver: false, @@ -43411,8 +49690,8 @@ func (ec *executionContext) fieldContext_NodePool_createdBy(_ context.Context, f return fc, nil } -func (ec *executionContext) _NodePool_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_creationTime(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_markedForDeletion(ctx, field) if err != nil { return graphql.Null } @@ -43425,38 +49704,35 @@ func (ec *executionContext) _NodePool_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.NodePool().CreationTime(rctx, obj) + 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.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaim", 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 Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NodePool_dispatchAddr(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_dispatchAddr(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_metadata(ctx, field) if err != nil { return graphql.Null } @@ -43469,7 +49745,7 @@ func (ec *executionContext) _NodePool_dispatchAddr(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.NodePool().DispatchAddr(rctx, obj) + return obj.ObjectMeta, nil }) if err != nil { ec.Error(ctx, err) @@ -43478,32 +49754,42 @@ func (ec *executionContext) _NodePool_dispatchAddr(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteAPIAppsInfraInternalEntitiesDispatchAddr) + res := resTmp.(v1.ObjectMeta) fc.Result = res - return ec.marshalOGithub__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsInfraInternalEntitiesDispatchAddr(ctx, field.Selections, res) + return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_dispatchAddr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaim", 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___api___apps___infra___internal___entities__DispatchAddr_accountName(ctx, field) - case "clusterName": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr_clusterName(ctx, field) + 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 Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Metadata", field.Name) }, } return fc, nil } -func (ec *executionContext) _NodePool_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_displayName(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -43516,7 +49802,7 @@ func (ec *executionContext) _NodePool_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.RecordVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -43528,26 +49814,26 @@ func (ec *executionContext) _NodePool_displayName(ctx context.Context, field gra } 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_NodePool_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaim", 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) _NodePool_id(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_id(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_spec(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_spec(ctx, field) if err != nil { return graphql.Null } @@ -43560,38 +49846,55 @@ func (ec *executionContext) _NodePool_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 ec.resolvers.NodePool().ID(rctx, obj) + return ec.resolvers.PersistentVolumeClaim().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.(repos.ID) + res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumeClaimSpec) fc.Result = res - return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__PersistentVolumeClaimSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeClaimSpec(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaim", 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") + switch field.Name { + case "accessModes": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_accessModes(ctx, field) + case "dataSource": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSource(ctx, field) + case "dataSourceRef": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSourceRef(ctx, field) + case "resources": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_resources(ctx, field) + case "selector": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_selector(ctx, field) + case "storageClassName": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_storageClassName(ctx, field) + case "volumeAttributesClassName": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeAttributesClassName(ctx, field) + case "volumeMode": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeMode(ctx, field) + case "volumeName": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PersistentVolumeClaimSpec", field.Name) }, } return fc, nil } -func (ec *executionContext) _NodePool_kind(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_kind(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_status(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_status(ctx, field) if err != nil { return graphql.Null } @@ -43604,7 +49907,7 @@ func (ec *executionContext) _NodePool_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 ec.resolvers.PersistentVolumeClaim().Status(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -43613,26 +49916,44 @@ func (ec *executionContext) _NodePool_kind(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumeClaimStatus) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___core___v1__PersistentVolumeClaimStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeClaimStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaim", 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 "accessModes": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_accessModes(ctx, field) + case "allocatedResources": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResources(ctx, field) + case "allocatedResourceStatuses": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResourceStatuses(ctx, field) + case "capacity": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_capacity(ctx, field) + case "conditions": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_conditions(ctx, field) + case "currentVolumeAttributesClassName": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_currentVolumeAttributesClassName(ctx, field) + case "modifyVolumeStatus": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_modifyVolumeStatus(ctx, field) + case "phase": + return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_phase(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PersistentVolumeClaimStatus", field.Name) }, } return fc, nil } -func (ec *executionContext) _NodePool_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_lastUpdatedBy(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_syncStatus(ctx, field) if err != nil { return graphql.Null } @@ -43645,7 +49966,7 @@ func (ec *executionContext) _NodePool_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.SyncStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -43657,34 +49978,40 @@ func (ec *executionContext) _NodePool_lastUpdatedBy(ctx context.Context, field g } return graphql.Null } - res := resTmp.(common.CreatedOrUpdatedBy) + res := resTmp.(types.SyncStatus) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaim", 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 "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___common__CreatedOrUpdatedBy", field.Name) + 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) _NodePool_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_markedForDeletion(ctx, field) +func (ec *executionContext) _PersistentVolumeClaim_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaim_updateTime(ctx, field) if err != nil { return graphql.Null } @@ -43697,92 +50024,38 @@ func (ec *executionContext) _NodePool_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.PersistentVolumeClaim().UpdateTime(rctx, obj) }) 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_NodePool_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NodePool", - 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) _NodePool_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_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 + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be 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 { return graphql.Null } - res := resTmp.(v1.ObjectMeta) + res := resTmp.(string) fc.Result = res - return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaim_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaim", 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) - } - return nil, fmt.Errorf("no field named %q was found under type Metadata", field.Name) + return nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NodePool_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_recordVersion(ctx, field) +func (ec *executionContext) _PersistentVolumeClaimEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeClaimEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaimEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -43795,7 +50068,7 @@ func (ec *executionContext) _NodePool_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.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -43807,26 +50080,26 @@ func (ec *executionContext) _NodePool_recordVersion(ctx context.Context, field g } 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_NodePool_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaimEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaimEdge", 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) _NodePool_spec(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_spec(ctx, field) +func (ec *executionContext) _PersistentVolumeClaimEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeClaimEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaimEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -43839,7 +50112,7 @@ func (ec *executionContext) _NodePool_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.NodePool().Spec(rctx, obj) + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -43851,42 +50124,60 @@ func (ec *executionContext) _NodePool_spec(ctx context.Context, field graphql.Co } return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisClustersV1NodePoolSpec) + res := resTmp.(*entities.PersistentVolumeClaim) fc.Result = res - return ec.marshalNGithub__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisClustersV1NodePoolSpec(ctx, field.Selections, res) + return ec.marshalNPersistentVolumeClaim2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐPersistentVolumeClaim(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaimEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaimEdge", 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 "aws": - return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_aws(ctx, field) - case "cloudProvider": - return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_cloudProvider(ctx, field) - case "gcp": - return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_gcp(ctx, field) - case "maxCount": - return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_maxCount(ctx, field) - case "minCount": - return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_minCount(ctx, field) - case "nodeLabels": - return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_nodeLabels(ctx, field) - case "nodeTaints": - return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_nodeTaints(ctx, field) + case "accountName": + return ec.fieldContext_PersistentVolumeClaim_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_PersistentVolumeClaim_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_PersistentVolumeClaim_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_PersistentVolumeClaim_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_PersistentVolumeClaim_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_PersistentVolumeClaim_displayName(ctx, field) + case "id": + return ec.fieldContext_PersistentVolumeClaim_id(ctx, field) + case "kind": + return ec.fieldContext_PersistentVolumeClaim_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_PersistentVolumeClaim_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_PersistentVolumeClaim_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_PersistentVolumeClaim_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_PersistentVolumeClaim_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_PersistentVolumeClaim_spec(ctx, field) + case "status": + return ec.fieldContext_PersistentVolumeClaim_status(ctx, field) + case "syncStatus": + return ec.fieldContext_PersistentVolumeClaim_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_PersistentVolumeClaim_updateTime(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PersistentVolumeClaim", field.Name) }, } return fc, nil } -func (ec *executionContext) _NodePool_status(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_status(ctx, field) +func (ec *executionContext) _PersistentVolumeClaimPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeClaimPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaimPaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -43899,49 +50190,44 @@ func (ec *executionContext) _NodePool_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 obj.Status, 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.(reconciler.Status) + res := resTmp.([]*model.PersistentVolumeClaimEdge) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__Status2githubᚗcomᚋkloudliteᚋoperatorᚋtoolkitᚋreconcilerᚐStatus(ctx, field.Selections, res) + return ec.marshalNPersistentVolumeClaimEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPersistentVolumeClaimEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaimPaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaimPaginatedRecords", Field: field, 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___toolkit___reconciler__Status_checkList(ctx, field) - case "checks": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(ctx, field) - case "isReady": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx, field) - case "lastReadyGeneration": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx, field) - case "lastReconcileTime": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx, field) - case "resources": - return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(ctx, field) + case "cursor": + return ec.fieldContext_PersistentVolumeClaimEdge_cursor(ctx, field) + case "node": + return ec.fieldContext_PersistentVolumeClaimEdge_node(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___reconciler__Status", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PersistentVolumeClaimEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _NodePool_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_syncStatus(ctx, field) +func (ec *executionContext) _PersistentVolumeClaimPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeClaimPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaimPaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -43954,7 +50240,7 @@ func (ec *executionContext) _NodePool_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 obj.SyncStatus, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -43966,40 +50252,36 @@ func (ec *executionContext) _NodePool_syncStatus(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(types.SyncStatus) + res := resTmp.(*model.PageInfo) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) + return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePool_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaimPaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaimPaginatedRecords", 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) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPrevPage": + return ec.fieldContext_PageInfo_hasPrevPage(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___pkg___types__SyncStatus", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _NodePool_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.NodePool) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePool_updateTime(ctx, field) +func (ec *executionContext) _PersistentVolumeClaimPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeClaimPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeClaimPaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -44012,7 +50294,7 @@ func (ec *executionContext) _NodePool_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.NodePool().UpdateTime(rctx, obj) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -44024,26 +50306,26 @@ func (ec *executionContext) _NodePool_updateTime(ctx context.Context, field grap } 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_NodePool_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeClaimPaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePool", + Object: "PersistentVolumeClaimPaginatedRecords", 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) _NodePoolEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.NodePoolEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePoolEdge_cursor(ctx, field) +func (ec *executionContext) _PersistentVolumeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -44073,9 +50355,9 @@ func (ec *executionContext) _NodePoolEdge_cursor(ctx context.Context, field grap return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePoolEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePoolEdge", + Object: "PersistentVolumeEdge", Field: field, IsMethod: false, IsResolver: false, @@ -44086,8 +50368,8 @@ func (ec *executionContext) fieldContext_NodePoolEdge_cursor(_ context.Context, return fc, nil } -func (ec *executionContext) _NodePoolEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.NodePoolEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePoolEdge_node(ctx, field) +func (ec *executionContext) _PersistentVolumeEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumeEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -44112,62 +50394,60 @@ func (ec *executionContext) _NodePoolEdge_node(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(*entities.NodePool) + res := resTmp.(*entities.PersistentVolume) fc.Result = res - return ec.marshalNNodePool2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNodePool(ctx, field.Selections, res) + return ec.marshalNPersistentVolume2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐPersistentVolume(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePoolEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumeEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePoolEdge", + Object: "PersistentVolumeEdge", 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_NodePool_accountName(ctx, field) + return ec.fieldContext_PersistentVolume_accountName(ctx, field) case "apiVersion": - return ec.fieldContext_NodePool_apiVersion(ctx, field) + return ec.fieldContext_PersistentVolume_apiVersion(ctx, field) case "clusterName": - return ec.fieldContext_NodePool_clusterName(ctx, field) + return ec.fieldContext_PersistentVolume_clusterName(ctx, field) case "createdBy": - return ec.fieldContext_NodePool_createdBy(ctx, field) + return ec.fieldContext_PersistentVolume_createdBy(ctx, field) case "creationTime": - return ec.fieldContext_NodePool_creationTime(ctx, field) - case "dispatchAddr": - return ec.fieldContext_NodePool_dispatchAddr(ctx, field) + return ec.fieldContext_PersistentVolume_creationTime(ctx, field) case "displayName": - return ec.fieldContext_NodePool_displayName(ctx, field) + return ec.fieldContext_PersistentVolume_displayName(ctx, field) case "id": - return ec.fieldContext_NodePool_id(ctx, field) + return ec.fieldContext_PersistentVolume_id(ctx, field) case "kind": - return ec.fieldContext_NodePool_kind(ctx, field) + return ec.fieldContext_PersistentVolume_kind(ctx, field) case "lastUpdatedBy": - return ec.fieldContext_NodePool_lastUpdatedBy(ctx, field) + return ec.fieldContext_PersistentVolume_lastUpdatedBy(ctx, field) case "markedForDeletion": - return ec.fieldContext_NodePool_markedForDeletion(ctx, field) + return ec.fieldContext_PersistentVolume_markedForDeletion(ctx, field) case "metadata": - return ec.fieldContext_NodePool_metadata(ctx, field) + return ec.fieldContext_PersistentVolume_metadata(ctx, field) case "recordVersion": - return ec.fieldContext_NodePool_recordVersion(ctx, field) + return ec.fieldContext_PersistentVolume_recordVersion(ctx, field) case "spec": - return ec.fieldContext_NodePool_spec(ctx, field) + return ec.fieldContext_PersistentVolume_spec(ctx, field) case "status": - return ec.fieldContext_NodePool_status(ctx, field) + return ec.fieldContext_PersistentVolume_status(ctx, field) case "syncStatus": - return ec.fieldContext_NodePool_syncStatus(ctx, field) + return ec.fieldContext_PersistentVolume_syncStatus(ctx, field) case "updateTime": - return ec.fieldContext_NodePool_updateTime(ctx, field) + return ec.fieldContext_PersistentVolume_updateTime(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type NodePool", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PersistentVolume", field.Name) }, } return fc, nil } -func (ec *executionContext) _NodePoolPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.NodePoolPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePoolPaginatedRecords_edges(ctx, field) +func (ec *executionContext) _PersistentVolumePaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumePaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -44192,32 +50472,32 @@ func (ec *executionContext) _NodePoolPaginatedRecords_edges(ctx context.Context, } return graphql.Null } - res := resTmp.([]*model.NodePoolEdge) + res := resTmp.([]*model.PersistentVolumeEdge) fc.Result = res - return ec.marshalNNodePoolEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐNodePoolEdgeᚄ(ctx, field.Selections, res) + return ec.marshalNPersistentVolumeEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPersistentVolumeEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePoolPaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumePaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePoolPaginatedRecords", + Object: "PersistentVolumePaginatedRecords", 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_NodePoolEdge_cursor(ctx, field) + return ec.fieldContext_PersistentVolumeEdge_cursor(ctx, field) case "node": - return ec.fieldContext_NodePoolEdge_node(ctx, field) + return ec.fieldContext_PersistentVolumeEdge_node(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type NodePoolEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PersistentVolumeEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _NodePoolPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.NodePoolPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePoolPaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _PersistentVolumePaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumePaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -44247,9 +50527,9 @@ func (ec *executionContext) _NodePoolPaginatedRecords_pageInfo(ctx context.Conte return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePoolPaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumePaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePoolPaginatedRecords", + Object: "PersistentVolumePaginatedRecords", Field: field, IsMethod: false, IsResolver: false, @@ -44270,8 +50550,8 @@ func (ec *executionContext) fieldContext_NodePoolPaginatedRecords_pageInfo(_ con return fc, nil } -func (ec *executionContext) _NodePoolPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.NodePoolPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NodePoolPaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _PersistentVolumePaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersistentVolumePaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -44301,9 +50581,9 @@ func (ec *executionContext) _NodePoolPaginatedRecords_totalCount(ctx context.Con return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NodePoolPaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersistentVolumePaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NodePoolPaginatedRecords", + Object: "PersistentVolumePaginatedRecords", Field: field, IsMethod: false, IsResolver: false, @@ -44314,8 +50594,8 @@ func (ec *executionContext) fieldContext_NodePoolPaginatedRecords_totalCount(_ c return fc, nil } -func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_endCursor(ctx, field) +func (ec *executionContext) _Query_infra_checkNameAvailability(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_checkNameAvailability(ctx, field) if err != nil { return graphql.Null } @@ -44327,77 +50607,85 @@ func (ec *executionContext) _PageInfo_endCursor(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.EndCursor, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraCheckNameAvailability(rctx, fc.Args["resType"].(domain.ResType), fc.Args["clusterName"].(*string), fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedIn == nil { + var zeroVal *domain.CheckNameAvailabilityOutput + return zeroVal, errors.New("directive isLoggedIn is not implemented") + } + return ec.directives.IsLoggedIn(ctx, nil, directive0) + } + directive2 := func(ctx context.Context) (interface{}, error) { + if ec.directives.HasAccount == nil { + var zeroVal *domain.CheckNameAvailabilityOutput + return zeroVal, 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.(*domain.CheckNameAvailabilityOutput); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/domain.CheckNameAvailabilityOutput`, 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.(*string) + res := resTmp.(*domain.CheckNameAvailabilityOutput) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNCheckNameAvailabilityOutput2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋdomainᚐCheckNameAvailabilityOutput(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_checkNameAvailability(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PageInfo", + Object: "Query", 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 "result": + return ec.fieldContext_CheckNameAvailabilityOutput_result(ctx, field) + case "suggestedNames": + return ec.fieldContext_CheckNameAvailabilityOutput_suggestedNames(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CheckNameAvailabilityOutput", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_hasNextPage(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HasNextPage, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_infra_checkNameAvailability_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _PageInfo_hasPrevPage(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_hasPrevPage(ctx, field) +func (ec *executionContext) _Query_infra_listClusters(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listClusters(ctx, field) if err != nil { return graphql.Null } @@ -44409,8 +50697,37 @@ func (ec *executionContext) _PageInfo_hasPrevPage(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.HasPrevPage, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraListClusters(rctx, fc.Args["search"].(*model.SearchCluster), fc.Args["pagination"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.ClusterPaginatedRecords + return zeroVal, 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 { + var zeroVal *model.ClusterPaginatedRecords + return zeroVal, 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.(*model.ClusterPaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.ClusterPaginatedRecords`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -44419,67 +50736,45 @@ func (ec *executionContext) _PageInfo_hasPrevPage(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*model.ClusterPaginatedRecords) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOClusterPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐClusterPaginatedRecords(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PageInfo_hasPrevPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listClusters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PageInfo", + Object: "Query", 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") + switch field.Name { + case "edges": + return ec.fieldContext_ClusterPaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ClusterPaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ClusterPaginatedRecords_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ClusterPaginatedRecords", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_startCursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StartCursor, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_infra_listClusters_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _PersistentVolume_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_accountName(ctx, field) +func (ec *executionContext) _Query_infra_getCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getCluster(ctx, field) if err != nil { return graphql.Null } @@ -44491,39 +50786,118 @@ func (ec *executionContext) _PersistentVolume_accountName(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.AccountName, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetCluster(rctx, fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.Cluster + return zeroVal, 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 { + var zeroVal *entities.Cluster + return zeroVal, 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.Cluster); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Cluster`, 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.(string) + res := resTmp.(*entities.Cluster) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCluster(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getCluster(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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 "accountName": + return ec.fieldContext_Cluster_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_Cluster_apiVersion(ctx, field) + case "createdBy": + return ec.fieldContext_Cluster_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Cluster_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_Cluster_displayName(ctx, field) + case "globalVPN": + return ec.fieldContext_Cluster_globalVPN(ctx, field) + case "id": + return ec.fieldContext_Cluster_id(ctx, field) + case "kind": + return ec.fieldContext_Cluster_kind(ctx, field) + case "lastOnlineAt": + return ec.fieldContext_Cluster_lastOnlineAt(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Cluster_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Cluster_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_Cluster_metadata(ctx, field) + case "ownedBy": + return ec.fieldContext_Cluster_ownedBy(ctx, field) + case "recordVersion": + return ec.fieldContext_Cluster_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_Cluster_spec(ctx, field) + case "status": + return ec.fieldContext_Cluster_status(ctx, field) + case "syncStatus": + return ec.fieldContext_Cluster_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_Cluster_updateTime(ctx, field) + case "adminKubeconfig": + return ec.fieldContext_Cluster_adminKubeconfig(ctx, field) + case "clusterDNSSuffix": + return ec.fieldContext_Cluster_clusterDNSSuffix(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Cluster", 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_infra_getCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_apiVersion(ctx, field) +func (ec *executionContext) _Query_infra_listBYOKClusters(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listBYOKClusters(ctx, field) if err != nil { return graphql.Null } @@ -44535,8 +50909,37 @@ func (ec *executionContext) _PersistentVolume_apiVersion(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.APIVersion, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraListBYOKClusters(rctx, fc.Args["search"].(*model.SearchCluster), fc.Args["pagination"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.BYOKClusterPaginatedRecords + return zeroVal, 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 { + var zeroVal *model.BYOKClusterPaginatedRecords + return zeroVal, 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.(*model.BYOKClusterPaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.BYOKClusterPaginatedRecords`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -44545,26 +50948,45 @@ func (ec *executionContext) _PersistentVolume_apiVersion(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.BYOKClusterPaginatedRecords) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOBYOKClusterPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐBYOKClusterPaginatedRecords(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listBYOKClusters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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 "edges": + return ec.fieldContext_BYOKClusterPaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_BYOKClusterPaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_BYOKClusterPaginatedRecords_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type BYOKClusterPaginatedRecords", 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_infra_listBYOKClusters_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_clusterName(ctx, field) +func (ec *executionContext) _Query_infra_getBYOKCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getBYOKCluster(ctx, field) if err != nil { return graphql.Null } @@ -44576,39 +50998,116 @@ func (ec *executionContext) _PersistentVolume_clusterName(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.ClusterName, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetBYOKCluster(rctx, fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.BYOKCluster + return zeroVal, 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 { + var zeroVal *entities.BYOKCluster + return zeroVal, 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 *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.(string) + res := resTmp.(*entities.BYOKCluster) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOBYOKCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐBYOKCluster(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getBYOKCluster(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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 "accountName": + return ec.fieldContext_BYOKCluster_accountName(ctx, field) + case "clusterSvcCIDR": + return ec.fieldContext_BYOKCluster_clusterSvcCIDR(ctx, field) + case "clusterToken": + return ec.fieldContext_BYOKCluster_clusterToken(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 "globalVPN": + return ec.fieldContext_BYOKCluster_globalVPN(ctx, field) + case "id": + return ec.fieldContext_BYOKCluster_id(ctx, field) + case "lastOnlineAt": + return ec.fieldContext_BYOKCluster_lastOnlineAt(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_BYOKCluster_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_BYOKCluster_markedForDeletion(ctx, field) + case "messageQueueTopicName": + return ec.fieldContext_BYOKCluster_messageQueueTopicName(ctx, field) + case "metadata": + return ec.fieldContext_BYOKCluster_metadata(ctx, field) + case "ownedBy": + return ec.fieldContext_BYOKCluster_ownedBy(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) + case "visibility": + return ec.fieldContext_BYOKCluster_visibility(ctx, field) + case "clusterDNSSuffix": + return ec.fieldContext_BYOKCluster_clusterDNSSuffix(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type BYOKCluster", 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_infra_getBYOKCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_createdBy(ctx, field) +func (ec *executionContext) _Query_infrat_getBYOKClusterSetupInstructions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infrat_getBYOKClusterSetupInstructions(ctx, field) if err != nil { return graphql.Null } @@ -44620,47 +51119,82 @@ func (ec *executionContext) _PersistentVolume_createdBy(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.CreatedBy, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfratGetBYOKClusterSetupInstructions(rctx, fc.Args["name"].(string), fc.Args["onlyHelmValues"].(*bool)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal []*model.BYOKSetupInstruction + return zeroVal, 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 { + var zeroVal []*model.BYOKSetupInstruction + return zeroVal, 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.([]*model.BYOKSetupInstruction); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kloudlite/api/apps/infra/internal/app/graph/model.BYOKSetupInstruction`, 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.(common.CreatedOrUpdatedBy) + res := resTmp.([]*model.BYOKSetupInstruction) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalOBYOKSetupInstruction2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐBYOKSetupInstructionᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infrat_getBYOKClusterSetupInstructions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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) + case "command": + return ec.fieldContext_BYOKSetupInstruction_command(ctx, field) + case "title": + return ec.fieldContext_BYOKSetupInstruction_title(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 BYOKSetupInstruction", 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_infrat_getBYOKClusterSetupInstructions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_creationTime(ctx, field) +func (ec *executionContext) _Query_infra_listGlobalVPNs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listGlobalVPNs(ctx, field) if err != nil { return graphql.Null } @@ -44672,83 +51206,84 @@ func (ec *executionContext) _PersistentVolume_creationTime(ctx context.Context, } }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PersistentVolume().CreationTime(rctx, obj) + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraListGlobalVPNs(rctx, fc.Args["search"].(*model.SearchGlobalVPNs), fc.Args["pagination"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.GlobalVPNPaginatedRecords + return zeroVal, 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 { + var zeroVal *model.GlobalVPNPaginatedRecords + return zeroVal, 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.(*model.GlobalVPNPaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.GlobalVPNPaginatedRecords`, 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.(string) + res := resTmp.(*model.GlobalVPNPaginatedRecords) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalOGlobalVPNPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGlobalVPNPaginatedRecords(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listGlobalVPNs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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") + switch field.Name { + case "edges": + return ec.fieldContext_GlobalVPNPaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GlobalVPNPaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GlobalVPNPaginatedRecords_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPNPaginatedRecords", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _PersistentVolume_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_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 + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - 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 { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_infra_listGlobalVPNs_args(ctx, field.ArgumentMap(ec.Variables)); 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_PersistentVolume_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersistentVolume", - 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, err } return fc, nil } -func (ec *executionContext) _PersistentVolume_id(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_id(ctx, field) +func (ec *executionContext) _Query_infra_getGlobalVPN(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getGlobalVPN(ctx, field) if err != nil { return graphql.Null } @@ -44760,39 +51295,116 @@ func (ec *executionContext) _PersistentVolume_id(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.PersistentVolume().ID(rctx, obj) + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetGlobalVpn(rctx, fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.GlobalVPN + return zeroVal, 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 { + var zeroVal *entities.GlobalVPN + return zeroVal, 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.GlobalVPN); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPN`, 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.(repos.ID) + res := resTmp.(*entities.GlobalVPN) fc.Result = res - return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) + return ec.marshalOGlobalVPN2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPN(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getGlobalVPN(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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") + switch field.Name { + case "accountName": + return ec.fieldContext_GlobalVPN_accountName(ctx, field) + case "allocatableCIDRSuffix": + return ec.fieldContext_GlobalVPN_allocatableCIDRSuffix(ctx, field) + case "CIDR": + return ec.fieldContext_GlobalVPN_CIDR(ctx, field) + case "createdBy": + return ec.fieldContext_GlobalVPN_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_GlobalVPN_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_GlobalVPN_displayName(ctx, field) + case "id": + return ec.fieldContext_GlobalVPN_id(ctx, field) + case "kloudliteClusterLocalDevice": + return ec.fieldContext_GlobalVPN_kloudliteClusterLocalDevice(ctx, field) + case "kloudliteGatewayDevice": + return ec.fieldContext_GlobalVPN_kloudliteGatewayDevice(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_GlobalVPN_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_GlobalVPN_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_GlobalVPN_metadata(ctx, field) + case "nonClusterUseAllowedIPs": + return ec.fieldContext_GlobalVPN_nonClusterUseAllowedIPs(ctx, field) + case "numAllocatedClusterCIDRs": + return ec.fieldContext_GlobalVPN_numAllocatedClusterCIDRs(ctx, field) + case "numAllocatedDevices": + return ec.fieldContext_GlobalVPN_numAllocatedDevices(ctx, field) + case "numReservedIPsForNonClusterUse": + return ec.fieldContext_GlobalVPN_numReservedIPsForNonClusterUse(ctx, field) + case "recordVersion": + return ec.fieldContext_GlobalVPN_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_GlobalVPN_updateTime(ctx, field) + case "wgInterface": + return ec.fieldContext_GlobalVPN_wgInterface(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPN", 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_infra_getGlobalVPN_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_kind(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_kind(ctx, field) +func (ec *executionContext) _Query_infra_listGlobalVPNDevices(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listGlobalVPNDevices(ctx, field) if err != nil { return graphql.Null } @@ -44804,8 +51416,37 @@ func (ec *executionContext) _PersistentVolume_kind(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.Kind, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraListGlobalVPNDevices(rctx, fc.Args["gvpn"].(string), fc.Args["search"].(*model.SearchGlobalVPNDevices), fc.Args["pagination"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.GlobalVPNDevicePaginatedRecords + return zeroVal, 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 { + var zeroVal *model.GlobalVPNDevicePaginatedRecords + return zeroVal, 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.(*model.GlobalVPNDevicePaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.GlobalVPNDevicePaginatedRecords`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -44814,26 +51455,45 @@ func (ec *executionContext) _PersistentVolume_kind(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.GlobalVPNDevicePaginatedRecords) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGlobalVPNDevicePaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGlobalVPNDevicePaginatedRecords(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listGlobalVPNDevices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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 "edges": + return ec.fieldContext_GlobalVPNDevicePaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GlobalVPNDevicePaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GlobalVPNDevicePaginatedRecords_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GlobalVPNDevicePaginatedRecords", 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_infra_listGlobalVPNDevices_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_lastUpdatedBy(ctx, field) +func (ec *executionContext) _Query_infra_getGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getGlobalVPNDevice(ctx, field) if err != nil { return graphql.Null } @@ -44845,47 +51505,112 @@ func (ec *executionContext) _PersistentVolume_lastUpdatedBy(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.LastUpdatedBy, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetGlobalVPNDevice(rctx, fc.Args["gvpn"].(string), fc.Args["deviceName"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.GlobalVPNDevice + return zeroVal, 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 { + var zeroVal *entities.GlobalVPNDevice + return zeroVal, 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.GlobalVPNDevice); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPNDevice`, 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.(common.CreatedOrUpdatedBy) + res := resTmp.(*entities.GlobalVPNDevice) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalOGlobalVPNDevice2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPNDevice(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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) + case "accountName": + return ec.fieldContext_GlobalVPNDevice_accountName(ctx, field) + case "createdBy": + return ec.fieldContext_GlobalVPNDevice_createdBy(ctx, field) + case "creationMethod": + return ec.fieldContext_GlobalVPNDevice_creationMethod(ctx, field) + case "creationTime": + return ec.fieldContext_GlobalVPNDevice_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_GlobalVPNDevice_displayName(ctx, field) + case "globalVPNName": + return ec.fieldContext_GlobalVPNDevice_globalVPNName(ctx, field) + case "id": + return ec.fieldContext_GlobalVPNDevice_id(ctx, field) + case "ipAddr": + return ec.fieldContext_GlobalVPNDevice_ipAddr(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_GlobalVPNDevice_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_GlobalVPNDevice_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_GlobalVPNDevice_metadata(ctx, field) + case "privateKey": + return ec.fieldContext_GlobalVPNDevice_privateKey(ctx, field) + case "publicEndpoint": + return ec.fieldContext_GlobalVPNDevice_publicEndpoint(ctx, field) + case "publicKey": + return ec.fieldContext_GlobalVPNDevice_publicKey(ctx, field) + case "recordVersion": + return ec.fieldContext_GlobalVPNDevice_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_GlobalVPNDevice_updateTime(ctx, field) + case "wireguardConfig": + return ec.fieldContext_GlobalVPNDevice_wireguardConfig(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 GlobalVPNDevice", 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_infra_getGlobalVPNDevice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_markedForDeletion(ctx, field) +func (ec *executionContext) _Query_infra_listNodePools(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listNodePools(ctx, field) if err != nil { return graphql.Null } @@ -44897,8 +51622,37 @@ func (ec *executionContext) _PersistentVolume_markedForDeletion(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.MarkedForDeletion, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraListNodePools(rctx, fc.Args["clusterName"].(string), fc.Args["search"].(*model.SearchNodepool), fc.Args["pagination"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.NodePoolPaginatedRecords + return zeroVal, 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 { + var zeroVal *model.NodePoolPaginatedRecords + return zeroVal, 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.(*model.NodePoolPaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.NodePoolPaginatedRecords`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -44907,26 +51661,45 @@ func (ec *executionContext) _PersistentVolume_markedForDeletion(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*model.NodePoolPaginatedRecords) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalONodePoolPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐNodePoolPaginatedRecords(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listNodePools(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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") + switch field.Name { + case "edges": + return ec.fieldContext_NodePoolPaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_NodePoolPaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_NodePoolPaginatedRecords_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NodePoolPaginatedRecords", 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_infra_listNodePools_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_metadata(ctx, field) +func (ec *executionContext) _Query_infra_getNodePool(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getNodePool(ctx, field) if err != nil { return graphql.Null } @@ -44938,8 +51711,37 @@ func (ec *executionContext) _PersistentVolume_metadata(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.ObjectMeta, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetNodePool(rctx, fc.Args["clusterName"].(string), fc.Args["poolName"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.NodePool + return zeroVal, 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 { + var zeroVal *entities.NodePool + return zeroVal, 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.NodePool); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.NodePool`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -44948,42 +51750,73 @@ func (ec *executionContext) _PersistentVolume_metadata(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(v1.ObjectMeta) + res := resTmp.(*entities.NodePool) fc.Result = res - return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) + return ec.marshalONodePool2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNodePool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getNodePool(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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 "accountName": + return ec.fieldContext_NodePool_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_NodePool_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_NodePool_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_NodePool_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_NodePool_creationTime(ctx, field) + case "dispatchAddr": + return ec.fieldContext_NodePool_dispatchAddr(ctx, field) + case "displayName": + return ec.fieldContext_NodePool_displayName(ctx, field) + case "id": + return ec.fieldContext_NodePool_id(ctx, field) + case "kind": + return ec.fieldContext_NodePool_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_NodePool_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_NodePool_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_NodePool_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_NodePool_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_NodePool_spec(ctx, field) + case "status": + return ec.fieldContext_NodePool_status(ctx, field) + case "syncStatus": + return ec.fieldContext_NodePool_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_NodePool_updateTime(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 NodePool", 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_infra_getNodePool_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_recordVersion(ctx, field) +func (ec *executionContext) _Query_infra_listProviderSecrets(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listProviderSecrets(ctx, field) if err != nil { return graphql.Null } @@ -44995,39 +51828,84 @@ func (ec *executionContext) _PersistentVolume_recordVersion(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.RecordVersion, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraListProviderSecrets(rctx, fc.Args["search"].(*model.SearchProviderSecret), fc.Args["pagination"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.CloudProviderSecretPaginatedRecords + return zeroVal, 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 { + var zeroVal *model.CloudProviderSecretPaginatedRecords + return zeroVal, 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.(*model.CloudProviderSecretPaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.CloudProviderSecretPaginatedRecords`, 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.(int) + res := resTmp.(*model.CloudProviderSecretPaginatedRecords) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOCloudProviderSecretPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐCloudProviderSecretPaginatedRecords(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listProviderSecrets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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 "edges": + return ec.fieldContext_CloudProviderSecretPaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_CloudProviderSecretPaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_CloudProviderSecretPaginatedRecords_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CloudProviderSecretPaginatedRecords", 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_infra_listProviderSecrets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_spec(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_spec(ctx, field) +func (ec *executionContext) _Query_infra_getProviderSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getProviderSecret(ctx, field) if err != nil { return graphql.Null } @@ -45039,8 +51917,37 @@ func (ec *executionContext) _PersistentVolume_spec(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.PersistentVolume().Spec(rctx, obj) + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetProviderSecret(rctx, fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.CloudProviderSecret + return zeroVal, 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 { + var zeroVal *entities.CloudProviderSecret + return zeroVal, 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.CloudProviderSecret); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.CloudProviderSecret`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -45049,90 +51956,65 @@ func (ec *executionContext) _PersistentVolume_spec(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumeSpec) + res := resTmp.(*entities.CloudProviderSecret) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__PersistentVolumeSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeSpec(ctx, field.Selections, res) + return ec.marshalOCloudProviderSecret2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCloudProviderSecret(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getProviderSecret(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "accessModes": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_accessModes(ctx, field) - case "awsElasticBlockStore": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_awsElasticBlockStore(ctx, field) - case "azureDisk": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureDisk(ctx, field) - case "azureFile": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_azureFile(ctx, field) - case "capacity": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_capacity(ctx, field) - case "cephfs": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cephfs(ctx, field) - case "cinder": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_cinder(ctx, field) - case "claimRef": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_claimRef(ctx, field) - case "csi": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_csi(ctx, field) - case "fc": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_fc(ctx, field) - case "flexVolume": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flexVolume(ctx, field) - case "flocker": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_flocker(ctx, field) - case "gcePersistentDisk": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_gcePersistentDisk(ctx, field) - case "glusterfs": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_glusterfs(ctx, field) - case "hostPath": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_hostPath(ctx, field) - case "iscsi": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_iscsi(ctx, field) - case "local": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_local(ctx, field) - case "mountOptions": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_mountOptions(ctx, field) - case "nfs": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nfs(ctx, field) - case "nodeAffinity": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_nodeAffinity(ctx, field) - case "persistentVolumeReclaimPolicy": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_persistentVolumeReclaimPolicy(ctx, field) - case "photonPersistentDisk": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_photonPersistentDisk(ctx, field) - case "portworxVolume": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_portworxVolume(ctx, field) - case "quobyte": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_quobyte(ctx, field) - case "rbd": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_rbd(ctx, field) - case "scaleIO": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_scaleIO(ctx, field) - case "storageClassName": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageClassName(ctx, field) - case "storageos": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_storageos(ctx, field) - case "volumeAttributesClassName": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeAttributesClassName(ctx, field) - case "volumeMode": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_volumeMode(ctx, field) - case "vsphereVolume": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeSpec_vsphereVolume(ctx, field) + case "accountName": + return ec.fieldContext_CloudProviderSecret_accountName(ctx, field) + case "aws": + return ec.fieldContext_CloudProviderSecret_aws(ctx, field) + case "cloudProviderName": + return ec.fieldContext_CloudProviderSecret_cloudProviderName(ctx, field) + case "createdBy": + return ec.fieldContext_CloudProviderSecret_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_CloudProviderSecret_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_CloudProviderSecret_displayName(ctx, field) + case "gcp": + return ec.fieldContext_CloudProviderSecret_gcp(ctx, field) + case "id": + return ec.fieldContext_CloudProviderSecret_id(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_CloudProviderSecret_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_CloudProviderSecret_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_CloudProviderSecret_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_CloudProviderSecret_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_CloudProviderSecret_updateTime(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PersistentVolumeSpec", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CloudProviderSecret", 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_infra_getProviderSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_status(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_status(ctx, field) +func (ec *executionContext) _Query_infra_listDomainEntries(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listDomainEntries(ctx, field) if err != nil { return graphql.Null } @@ -45144,8 +52026,37 @@ func (ec *executionContext) _PersistentVolume_status(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.PersistentVolume().Status(rctx, obj) + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraListDomainEntries(rctx, fc.Args["search"].(*model.SearchDomainEntry), fc.Args["pagination"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.DomainEntryPaginatedRecords + return zeroVal, 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 { + var zeroVal *model.DomainEntryPaginatedRecords + return zeroVal, 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.(*model.DomainEntryPaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.DomainEntryPaginatedRecords`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -45154,36 +52065,45 @@ func (ec *executionContext) _PersistentVolume_status(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumeStatus) + res := resTmp.(*model.DomainEntryPaginatedRecords) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__PersistentVolumeStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeStatus(ctx, field.Selections, res) + return ec.marshalODomainEntryPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐDomainEntryPaginatedRecords(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listDomainEntries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "lastPhaseTransitionTime": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_lastPhaseTransitionTime(ctx, field) - case "message": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_message(ctx, field) - case "phase": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_phase(ctx, field) - case "reason": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeStatus_reason(ctx, field) + case "edges": + return ec.fieldContext_DomainEntryPaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_DomainEntryPaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_DomainEntryPaginatedRecords_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PersistentVolumeStatus", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DomainEntryPaginatedRecords", 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_infra_listDomainEntries_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_syncStatus(ctx, field) +func (ec *executionContext) _Query_infra_getDomainEntry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getDomainEntry(ctx, field) if err != nil { return graphql.Null } @@ -45195,53 +52115,100 @@ func (ec *executionContext) _PersistentVolume_syncStatus(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.SyncStatus, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetDomainEntry(rctx, fc.Args["domainName"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.DomainEntry + return zeroVal, 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 { + var zeroVal *entities.DomainEntry + return zeroVal, 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.DomainEntry); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.DomainEntry`, 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.(types.SyncStatus) + res := resTmp.(*entities.DomainEntry) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) + return ec.marshalODomainEntry2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐDomainEntry(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getDomainEntry(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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 "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) + case "accountName": + return ec.fieldContext_DomainEntry_accountName(ctx, field) + case "clusterName": + return ec.fieldContext_DomainEntry_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_DomainEntry_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_DomainEntry_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_DomainEntry_displayName(ctx, field) + case "domainName": + return ec.fieldContext_DomainEntry_domainName(ctx, field) + case "id": + return ec.fieldContext_DomainEntry_id(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_DomainEntry_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_DomainEntry_markedForDeletion(ctx, field) + case "recordVersion": + return ec.fieldContext_DomainEntry_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_DomainEntry_updateTime(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, fmt.Errorf("no field named %q was found under type DomainEntry", 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_infra_getDomainEntry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolume_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolume) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolume_updateTime(ctx, field) +func (ec *executionContext) _Query_infra_checkAwsAccess(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_checkAwsAccess(ctx, field) if err != nil { return graphql.Null } @@ -45253,8 +52220,37 @@ func (ec *executionContext) _PersistentVolume_updateTime(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 ec.resolvers.PersistentVolume().UpdateTime(rctx, obj) + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraCheckAWSAccess(rctx, fc.Args["cloudproviderName"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.CheckAWSAccessOutput + return zeroVal, 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 { + var zeroVal *model.CheckAWSAccessOutput + return zeroVal, 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.(*model.CheckAWSAccessOutput); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.CheckAWSAccessOutput`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -45266,26 +52262,43 @@ func (ec *executionContext) _PersistentVolume_updateTime(ctx context.Context, fi } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.CheckAWSAccessOutput) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalNCheckAwsAccessOutput2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐCheckAWSAccessOutput(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolume_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_checkAwsAccess(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolume", + Object: "Query", 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") + switch field.Name { + case "result": + return ec.fieldContext_CheckAwsAccessOutput_result(ctx, field) + case "installationUrl": + return ec.fieldContext_CheckAwsAccessOutput_installationUrl(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CheckAwsAccessOutput", 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_infra_checkAwsAccess_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_accountName(ctx, field) +func (ec *executionContext) _Query_infra_listManagedServiceTemplates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listManagedServiceTemplates(ctx, field) if err != nil { return graphql.Null } @@ -45298,38 +52311,43 @@ func (ec *executionContext) _PersistentVolumeClaim_accountName(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.AccountName, nil + return ec.resolvers.Query().InfraListManagedServiceTemplates(rctx) }) 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.([]*entities.MsvcTemplate) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOMsvcTemplate2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐMsvcTemplateᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listManagedServiceTemplates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", 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 "category": + return ec.fieldContext_MsvcTemplate_category(ctx, field) + case "displayName": + return ec.fieldContext_MsvcTemplate_displayName(ctx, field) + case "items": + return ec.fieldContext_MsvcTemplate_items(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MsvcTemplate", field.Name) }, } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_apiVersion(ctx, field) +func (ec *executionContext) _Query_infra_getManagedServiceTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getManagedServiceTemplate(ctx, field) if err != nil { return graphql.Null } @@ -45342,7 +52360,7 @@ func (ec *executionContext) _PersistentVolumeClaim_apiVersion(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.APIVersion, nil + return ec.resolvers.Query().InfraGetManagedServiceTemplate(rctx, fc.Args["category"].(string), fc.Args["name"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -45351,26 +52369,59 @@ func (ec *executionContext) _PersistentVolumeClaim_apiVersion(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*entities.MsvcTemplateEntry) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐMsvcTemplateEntry(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getManagedServiceTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", 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 "active": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_active(ctx, field) + case "apiVersion": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_apiVersion(ctx, field) + case "description": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_description(ctx, field) + case "displayName": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_displayName(ctx, field) + case "fields": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_fields(ctx, field) + case "kind": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_kind(ctx, field) + case "logoUrl": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_logoUrl(ctx, field) + case "name": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_name(ctx, field) + case "outputs": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_outputs(ctx, field) + case "resources": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_resources(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry", 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_infra_getManagedServiceTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_clusterName(ctx, field) +func (ec *executionContext) _Query_infra_listPVCs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listPVCs(ctx, field) if err != nil { return graphql.Null } @@ -45382,39 +52433,84 @@ func (ec *executionContext) _PersistentVolumeClaim_clusterName(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.ClusterName, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraListPVCs(rctx, fc.Args["clusterName"].(string), fc.Args["search"].(*model.SearchPersistentVolumeClaims), fc.Args["pq"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.PersistentVolumeClaimPaginatedRecords + return zeroVal, 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 { + var zeroVal *model.PersistentVolumeClaimPaginatedRecords + return zeroVal, 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.(*model.PersistentVolumeClaimPaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.PersistentVolumeClaimPaginatedRecords`, 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.(string) + res := resTmp.(*model.PersistentVolumeClaimPaginatedRecords) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOPersistentVolumeClaimPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPersistentVolumeClaimPaginatedRecords(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listPVCs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", 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 "edges": + return ec.fieldContext_PersistentVolumeClaimPaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_PersistentVolumeClaimPaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_PersistentVolumeClaimPaginatedRecords_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersistentVolumeClaimPaginatedRecords", 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_infra_listPVCs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_createdBy(ctx, field) +func (ec *executionContext) _Query_infra_getPVC(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getPVC(ctx, field) if err != nil { return graphql.Null } @@ -45426,47 +52522,110 @@ func (ec *executionContext) _PersistentVolumeClaim_createdBy(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.CreatedBy, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetPvc(rctx, fc.Args["clusterName"].(string), fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.PersistentVolumeClaim + return zeroVal, 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 { + var zeroVal *entities.PersistentVolumeClaim + return zeroVal, 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.PersistentVolumeClaim); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.PersistentVolumeClaim`, 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.(common.CreatedOrUpdatedBy) + res := resTmp.(*entities.PersistentVolumeClaim) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalOPersistentVolumeClaim2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐPersistentVolumeClaim(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getPVC(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", 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) + case "accountName": + return ec.fieldContext_PersistentVolumeClaim_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_PersistentVolumeClaim_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_PersistentVolumeClaim_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_PersistentVolumeClaim_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_PersistentVolumeClaim_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_PersistentVolumeClaim_displayName(ctx, field) + case "id": + return ec.fieldContext_PersistentVolumeClaim_id(ctx, field) + case "kind": + return ec.fieldContext_PersistentVolumeClaim_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_PersistentVolumeClaim_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_PersistentVolumeClaim_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_PersistentVolumeClaim_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_PersistentVolumeClaim_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_PersistentVolumeClaim_spec(ctx, field) + case "status": + return ec.fieldContext_PersistentVolumeClaim_status(ctx, field) + case "syncStatus": + return ec.fieldContext_PersistentVolumeClaim_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_PersistentVolumeClaim_updateTime(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 PersistentVolumeClaim", 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_infra_getPVC_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_creationTime(ctx, field) +func (ec *executionContext) _Query_infra_listNamespaces(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listNamespaces(ctx, field) if err != nil { return graphql.Null } @@ -45478,39 +52637,84 @@ func (ec *executionContext) _PersistentVolumeClaim_creationTime(ctx context.Cont } }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PersistentVolumeClaim().CreationTime(rctx, obj) + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraListNamespaces(rctx, fc.Args["clusterName"].(string), fc.Args["search"].(*model.SearchNamespaces), fc.Args["pq"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.NamespacePaginatedRecords + return zeroVal, 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 { + var zeroVal *model.NamespacePaginatedRecords + return zeroVal, 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.(*model.NamespacePaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.NamespacePaginatedRecords`, 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.(string) + res := resTmp.(*model.NamespacePaginatedRecords) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalONamespacePaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐNamespacePaginatedRecords(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listNamespaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", 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") + switch field.Name { + case "edges": + return ec.fieldContext_NamespacePaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_NamespacePaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_NamespacePaginatedRecords_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NamespacePaginatedRecords", 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_infra_listNamespaces_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_displayName(ctx, field) +func (ec *executionContext) _Query_infra_getNamespace(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getNamespace(ctx, field) if err != nil { return graphql.Null } @@ -45522,39 +52726,110 @@ func (ec *executionContext) _PersistentVolumeClaim_displayName(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.DisplayName, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetNamespace(rctx, fc.Args["clusterName"].(string), fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.Namespace + return zeroVal, 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 { + var zeroVal *entities.Namespace + return zeroVal, 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.Namespace); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Namespace`, 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.(string) + res := resTmp.(*entities.Namespace) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalONamespace2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNamespace(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getNamespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", 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 "accountName": + return ec.fieldContext_Namespace_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_Namespace_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_Namespace_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_Namespace_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Namespace_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_Namespace_displayName(ctx, field) + case "id": + return ec.fieldContext_Namespace_id(ctx, field) + case "kind": + return ec.fieldContext_Namespace_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Namespace_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Namespace_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_Namespace_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_Namespace_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_Namespace_spec(ctx, field) + case "status": + return ec.fieldContext_Namespace_status(ctx, field) + case "syncStatus": + return ec.fieldContext_Namespace_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_Namespace_updateTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Namespace", 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_infra_getNamespace_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_id(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_id(ctx, field) +func (ec *executionContext) _Query_infra_listPVs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listPVs(ctx, field) if err != nil { return graphql.Null } @@ -45566,80 +52841,84 @@ func (ec *executionContext) _PersistentVolumeClaim_id(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.PersistentVolumeClaim().ID(rctx, obj) + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraListPVs(rctx, fc.Args["clusterName"].(string), fc.Args["search"].(*model.SearchPersistentVolumes), fc.Args["pq"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.PersistentVolumePaginatedRecords + return zeroVal, 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 { + var zeroVal *model.PersistentVolumePaginatedRecords + return zeroVal, 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.(*model.PersistentVolumePaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.PersistentVolumePaginatedRecords`, 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.(repos.ID) + res := resTmp.(*model.PersistentVolumePaginatedRecords) fc.Result = res - return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) + return ec.marshalOPersistentVolumePaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPersistentVolumePaginatedRecords(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listPVs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", 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") + switch field.Name { + case "edges": + return ec.fieldContext_PersistentVolumePaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_PersistentVolumePaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_PersistentVolumePaginatedRecords_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersistentVolumePaginatedRecords", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _PersistentVolumeClaim_kind(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_kind(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Kind, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_infra_listPVs_args(ctx, field.ArgumentMap(ec.Variables)); 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_PersistentVolumeClaim_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", - 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, err } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_lastUpdatedBy(ctx, field) +func (ec *executionContext) _Query_infra_getPV(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getPV(ctx, field) if err != nil { return graphql.Null } @@ -45651,47 +52930,110 @@ func (ec *executionContext) _PersistentVolumeClaim_lastUpdatedBy(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.LastUpdatedBy, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetPv(rctx, fc.Args["clusterName"].(string), fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.PersistentVolume + return zeroVal, 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 { + var zeroVal *entities.PersistentVolume + return zeroVal, 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.PersistentVolume); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.PersistentVolume`, 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.(common.CreatedOrUpdatedBy) + res := resTmp.(*entities.PersistentVolume) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalOPersistentVolume2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐPersistentVolume(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getPV(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", 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) + case "accountName": + return ec.fieldContext_PersistentVolume_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_PersistentVolume_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_PersistentVolume_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_PersistentVolume_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_PersistentVolume_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_PersistentVolume_displayName(ctx, field) + case "id": + return ec.fieldContext_PersistentVolume_id(ctx, field) + case "kind": + return ec.fieldContext_PersistentVolume_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_PersistentVolume_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_PersistentVolume_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_PersistentVolume_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_PersistentVolume_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_PersistentVolume_spec(ctx, field) + case "status": + return ec.fieldContext_PersistentVolume_status(ctx, field) + case "syncStatus": + return ec.fieldContext_PersistentVolume_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_PersistentVolume_updateTime(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 PersistentVolume", 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_infra_getPV_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_markedForDeletion(ctx, field) +func (ec *executionContext) _Query_infra_listVolumeAttachments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listVolumeAttachments(ctx, field) if err != nil { return graphql.Null } @@ -45703,8 +53045,37 @@ func (ec *executionContext) _PersistentVolumeClaim_markedForDeletion(ctx 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 + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraListVolumeAttachments(rctx, fc.Args["clusterName"].(string), fc.Args["search"].(*model.SearchVolumeAttachments), fc.Args["pq"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.VolumeAttachmentPaginatedRecords + return zeroVal, 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 { + var zeroVal *model.VolumeAttachmentPaginatedRecords + return zeroVal, 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.(*model.VolumeAttachmentPaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.VolumeAttachmentPaginatedRecords`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -45713,26 +53084,45 @@ func (ec *executionContext) _PersistentVolumeClaim_markedForDeletion(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*model.VolumeAttachmentPaginatedRecords) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOVolumeAttachmentPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐVolumeAttachmentPaginatedRecords(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listVolumeAttachments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", 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") + switch field.Name { + case "edges": + return ec.fieldContext_VolumeAttachmentPaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_VolumeAttachmentPaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_VolumeAttachmentPaginatedRecords_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type VolumeAttachmentPaginatedRecords", 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_infra_listVolumeAttachments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_metadata(ctx, field) +func (ec *executionContext) _Query_infra_getVolumeAttachment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getVolumeAttachment(ctx, field) if err != nil { return graphql.Null } @@ -45744,8 +53134,37 @@ func (ec *executionContext) _PersistentVolumeClaim_metadata(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.ObjectMeta, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetVolumeAttachment(rctx, fc.Args["clusterName"].(string), fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.VolumeAttachment + return zeroVal, 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 { + var zeroVal *entities.VolumeAttachment + return zeroVal, 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.VolumeAttachment); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.VolumeAttachment`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -45754,42 +53173,71 @@ func (ec *executionContext) _PersistentVolumeClaim_metadata(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(v1.ObjectMeta) + res := resTmp.(*entities.VolumeAttachment) fc.Result = res - return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) + return ec.marshalOVolumeAttachment2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐVolumeAttachment(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getVolumeAttachment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", 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 "accountName": + return ec.fieldContext_VolumeAttachment_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_VolumeAttachment_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_VolumeAttachment_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_VolumeAttachment_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_VolumeAttachment_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_VolumeAttachment_displayName(ctx, field) + case "id": + return ec.fieldContext_VolumeAttachment_id(ctx, field) + case "kind": + return ec.fieldContext_VolumeAttachment_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_VolumeAttachment_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_VolumeAttachment_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_VolumeAttachment_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_VolumeAttachment_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_VolumeAttachment_spec(ctx, field) + case "status": + return ec.fieldContext_VolumeAttachment_status(ctx, field) + case "syncStatus": + return ec.fieldContext_VolumeAttachment_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_VolumeAttachment_updateTime(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 VolumeAttachment", 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_infra_getVolumeAttachment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_recordVersion(ctx, field) +func (ec *executionContext) _Query_infra_listWorkspaces(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_listWorkspaces(ctx, field) if err != nil { return graphql.Null } @@ -45801,39 +53249,84 @@ func (ec *executionContext) _PersistentVolumeClaim_recordVersion(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.RecordVersion, nil + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraListWorkspaces(rctx, fc.Args["workmachineName"].(string), fc.Args["clusterName"].(string), fc.Args["search"].(*model.SearchWorkspaces), fc.Args["pagination"].(*repos.CursorPagination)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *model.WorkspacePaginatedRecords + return zeroVal, 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 { + var zeroVal *model.WorkspacePaginatedRecords + return zeroVal, 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.(*model.WorkspacePaginatedRecords); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.WorkspacePaginatedRecords`, 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.(int) + res := resTmp.(*model.WorkspacePaginatedRecords) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOWorkspacePaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐWorkspacePaginatedRecords(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_listWorkspaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", 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 "edges": + return ec.fieldContext_WorkspacePaginatedRecords_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_WorkspacePaginatedRecords_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_WorkspacePaginatedRecords_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type WorkspacePaginatedRecords", 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_infra_listWorkspaces_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_spec(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_spec(ctx, field) +func (ec *executionContext) _Query_infra_getWorkspace(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getWorkspace(ctx, field) if err != nil { return graphql.Null } @@ -45845,8 +53338,37 @@ func (ec *executionContext) _PersistentVolumeClaim_spec(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.PersistentVolumeClaim().Spec(rctx, obj) + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetWorkspace(rctx, fc.Args["workmachineName"].(string), fc.Args["clusterName"].(string), fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.Workspace + return zeroVal, 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 { + var zeroVal *entities.Workspace + return zeroVal, 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.Workspace); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Workspace`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -45855,46 +53377,75 @@ func (ec *executionContext) _PersistentVolumeClaim_spec(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumeClaimSpec) + res := resTmp.(*entities.Workspace) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__PersistentVolumeClaimSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeClaimSpec(ctx, field.Selections, res) + return ec.marshalOWorkspace2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkspace(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getWorkspace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "accessModes": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_accessModes(ctx, field) - case "dataSource": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSource(ctx, field) - case "dataSourceRef": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_dataSourceRef(ctx, field) - case "resources": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_resources(ctx, field) - case "selector": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_selector(ctx, field) - case "storageClassName": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_storageClassName(ctx, field) - case "volumeAttributesClassName": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeAttributesClassName(ctx, field) - case "volumeMode": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeMode(ctx, field) - case "volumeName": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimSpec_volumeName(ctx, field) + case "accountName": + return ec.fieldContext_Workspace_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_Workspace_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_Workspace_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_Workspace_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Workspace_creationTime(ctx, field) + case "dispatchAddr": + return ec.fieldContext_Workspace_dispatchAddr(ctx, field) + case "displayName": + return ec.fieldContext_Workspace_displayName(ctx, field) + case "id": + return ec.fieldContext_Workspace_id(ctx, field) + case "kind": + return ec.fieldContext_Workspace_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Workspace_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Workspace_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_Workspace_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_Workspace_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_Workspace_spec(ctx, field) + case "status": + return ec.fieldContext_Workspace_status(ctx, field) + case "syncStatus": + return ec.fieldContext_Workspace_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_Workspace_updateTime(ctx, field) + case "workmachineName": + return ec.fieldContext_Workspace_workmachineName(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PersistentVolumeClaimSpec", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Workspace", 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_infra_getWorkspace_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_status(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_status(ctx, field) +func (ec *executionContext) _Query_infra_getWorkmachine(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_infra_getWorkmachine(ctx, field) if err != nil { return graphql.Null } @@ -45906,8 +53457,37 @@ func (ec *executionContext) _PersistentVolumeClaim_status(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.PersistentVolumeClaim().Status(rctx, obj) + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().InfraGetWorkmachine(rctx, fc.Args["clusterName"].(string), fc.Args["name"].(string)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + var zeroVal *entities.Workmachine + return zeroVal, 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 { + var zeroVal *entities.Workmachine + return zeroVal, 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.Workmachine); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Workmachine`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -45916,44 +53496,73 @@ func (ec *executionContext) _PersistentVolumeClaim_status(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPICoreV1PersistentVolumeClaimStatus) + res := resTmp.(*entities.Workmachine) fc.Result = res - return ec.marshalOK8s__io___api___core___v1__PersistentVolumeClaimStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeClaimStatus(ctx, field.Selections, res) + return ec.marshalOWorkmachine2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkmachine(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_infra_getWorkmachine(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "accessModes": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_accessModes(ctx, field) - case "allocatedResources": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResources(ctx, field) - case "allocatedResourceStatuses": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_allocatedResourceStatuses(ctx, field) - case "capacity": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_capacity(ctx, field) - case "conditions": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_conditions(ctx, field) - case "currentVolumeAttributesClassName": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_currentVolumeAttributesClassName(ctx, field) - case "modifyVolumeStatus": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_modifyVolumeStatus(ctx, field) - case "phase": - return ec.fieldContext_K8s__io___api___core___v1__PersistentVolumeClaimStatus_phase(ctx, field) + case "accountName": + return ec.fieldContext_Workmachine_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_Workmachine_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_Workmachine_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_Workmachine_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Workmachine_creationTime(ctx, field) + case "dispatchAddr": + return ec.fieldContext_Workmachine_dispatchAddr(ctx, field) + case "displayName": + return ec.fieldContext_Workmachine_displayName(ctx, field) + case "id": + return ec.fieldContext_Workmachine_id(ctx, field) + case "kind": + return ec.fieldContext_Workmachine_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Workmachine_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Workmachine_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_Workmachine_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_Workmachine_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_Workmachine_spec(ctx, field) + case "status": + return ec.fieldContext_Workmachine_status(ctx, field) + case "syncStatus": + return ec.fieldContext_Workmachine_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_Workmachine_updateTime(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___core___v1__PersistentVolumeClaimStatus", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Workmachine", 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_infra_getWorkmachine_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_syncStatus(ctx, field) +func (ec *executionContext) _Query__service(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query__service(ctx, field) if err != nil { return graphql.Null } @@ -45966,7 +53575,7 @@ func (ec *executionContext) _PersistentVolumeClaim_syncStatus(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.SyncStatus, nil + return ec.__resolve__service(ctx) }) if err != nil { ec.Error(ctx, err) @@ -45978,40 +53587,30 @@ func (ec *executionContext) _PersistentVolumeClaim_syncStatus(ctx context.Contex } return graphql.Null } - res := resTmp.(types.SyncStatus) + res := resTmp.(fedruntime.Service) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) + return ec.marshalN_Service2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐService(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query__service(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", Field: field, - IsMethod: false, + IsMethod: true, 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) + case "sdl": + return ec.fieldContext__Service_sdl(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, fmt.Errorf("no field named %q was found under type _Service", field.Name) }, } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaim_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.PersistentVolumeClaim) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaim_updateTime(ctx, field) +func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query___type(ctx, field) if err != nil { return graphql.Null } @@ -46024,38 +53623,68 @@ func (ec *executionContext) _PersistentVolumeClaim_updateTime(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.PersistentVolumeClaim().UpdateTime(rctx, obj) + return ec.introspectType(fc.Args["name"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*introspection.Type) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaim_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaim", + Object: "Query", Field: field, IsMethod: true, - IsResolver: true, + 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 "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaimEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeClaimEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaimEdge_cursor(ctx, field) +func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query___schema(ctx, field) if err != nil { return graphql.Null } @@ -46068,38 +53697,49 @@ func (ec *executionContext) _PersistentVolumeClaimEdge_cursor(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.Cursor, nil + return ec.introspectSchema() }) 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.(*introspection.Schema) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaimEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaimEdge", + Object: "Query", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "description": + return ec.fieldContext___Schema_description(ctx, field) + case "types": + return ec.fieldContext___Schema_types(ctx, field) + case "queryType": + return ec.fieldContext___Schema_queryType(ctx, field) + case "mutationType": + return ec.fieldContext___Schema_mutationType(ctx, field) + case "subscriptionType": + return ec.fieldContext___Schema_subscriptionType(ctx, field) + case "directives": + return ec.fieldContext___Schema_directives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) }, } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaimEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeClaimEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaimEdge_node(ctx, field) +func (ec *executionContext) _VolumeAttachment_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_accountName(ctx, field) if err != nil { return graphql.Null } @@ -46112,7 +53752,7 @@ func (ec *executionContext) _PersistentVolumeClaimEdge_node(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.Node, nil + return obj.AccountName, nil }) if err != nil { ec.Error(ctx, err) @@ -46124,60 +53764,26 @@ func (ec *executionContext) _PersistentVolumeClaimEdge_node(ctx context.Context, } return graphql.Null } - res := resTmp.(*entities.PersistentVolumeClaim) + res := resTmp.(string) fc.Result = res - return ec.marshalNPersistentVolumeClaim2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐPersistentVolumeClaim(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaimEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaimEdge", + Object: "VolumeAttachment", 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_PersistentVolumeClaim_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_PersistentVolumeClaim_apiVersion(ctx, field) - case "clusterName": - return ec.fieldContext_PersistentVolumeClaim_clusterName(ctx, field) - case "createdBy": - return ec.fieldContext_PersistentVolumeClaim_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_PersistentVolumeClaim_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_PersistentVolumeClaim_displayName(ctx, field) - case "id": - return ec.fieldContext_PersistentVolumeClaim_id(ctx, field) - case "kind": - return ec.fieldContext_PersistentVolumeClaim_kind(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_PersistentVolumeClaim_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_PersistentVolumeClaim_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_PersistentVolumeClaim_metadata(ctx, field) - case "recordVersion": - return ec.fieldContext_PersistentVolumeClaim_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_PersistentVolumeClaim_spec(ctx, field) - case "status": - return ec.fieldContext_PersistentVolumeClaim_status(ctx, field) - case "syncStatus": - return ec.fieldContext_PersistentVolumeClaim_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_PersistentVolumeClaim_updateTime(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersistentVolumeClaim", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaimPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeClaimPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaimPaginatedRecords_edges(ctx, field) +func (ec *executionContext) _VolumeAttachment_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -46190,44 +53796,35 @@ func (ec *executionContext) _PersistentVolumeClaimPaginatedRecords_edges(ctx 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.APIVersion, 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.PersistentVolumeClaimEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalNPersistentVolumeClaimEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPersistentVolumeClaimEdgeᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaimPaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaimPaginatedRecords", + Object: "VolumeAttachment", 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_PersistentVolumeClaimEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_PersistentVolumeClaimEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersistentVolumeClaimEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaimPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeClaimPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaimPaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _VolumeAttachment_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_clusterName(ctx, field) if err != nil { return graphql.Null } @@ -46240,7 +53837,7 @@ func (ec *executionContext) _PersistentVolumeClaimPaginatedRecords_pageInfo(ctx }() 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.ClusterName, nil }) if err != nil { ec.Error(ctx, err) @@ -46252,36 +53849,26 @@ func (ec *executionContext) _PersistentVolumeClaimPaginatedRecords_pageInfo(ctx } return graphql.Null } - res := resTmp.(*model.PageInfo) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeClaimPaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaimPaginatedRecords", + Object: "VolumeAttachment", 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 "hasPrevPage": - return ec.fieldContext_PageInfo_hasPrevPage(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 String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersistentVolumeClaimPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeClaimPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeClaimPaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _VolumeAttachment_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -46294,7 +53881,7 @@ func (ec *executionContext) _PersistentVolumeClaimPaginatedRecords_totalCount(ct }() 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.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -46306,26 +53893,34 @@ func (ec *executionContext) _PersistentVolumeClaimPaginatedRecords_totalCount(ct } return graphql.Null } - res := resTmp.(int) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalNInt2int(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_PersistentVolumeClaimPaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeClaimPaginatedRecords", + Object: "VolumeAttachment", 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 "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) _PersistentVolumeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeEdge_cursor(ctx, field) +func (ec *executionContext) _VolumeAttachment_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_creationTime(ctx, field) if err != nil { return graphql.Null } @@ -46338,7 +53933,7 @@ func (ec *executionContext) _PersistentVolumeEdge_cursor(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.Cursor, nil + return ec.resolvers.VolumeAttachment().CreationTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -46352,24 +53947,24 @@ func (ec *executionContext) _PersistentVolumeEdge_cursor(ctx context.Context, fi } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeEdge", + Object: "VolumeAttachment", 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) _PersistentVolumeEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumeEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumeEdge_node(ctx, field) +func (ec *executionContext) _VolumeAttachment_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_displayName(ctx, field) if err != nil { return graphql.Null } @@ -46382,7 +53977,7 @@ func (ec *executionContext) _PersistentVolumeEdge_node(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.Node, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -46394,60 +53989,26 @@ func (ec *executionContext) _PersistentVolumeEdge_node(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*entities.PersistentVolume) + res := resTmp.(string) fc.Result = res - return ec.marshalNPersistentVolume2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐPersistentVolume(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumeEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumeEdge", + Object: "VolumeAttachment", 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_PersistentVolume_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_PersistentVolume_apiVersion(ctx, field) - case "clusterName": - return ec.fieldContext_PersistentVolume_clusterName(ctx, field) - case "createdBy": - return ec.fieldContext_PersistentVolume_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_PersistentVolume_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_PersistentVolume_displayName(ctx, field) - case "id": - return ec.fieldContext_PersistentVolume_id(ctx, field) - case "kind": - return ec.fieldContext_PersistentVolume_kind(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_PersistentVolume_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_PersistentVolume_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_PersistentVolume_metadata(ctx, field) - case "recordVersion": - return ec.fieldContext_PersistentVolume_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_PersistentVolume_spec(ctx, field) - case "status": - return ec.fieldContext_PersistentVolume_status(ctx, field) - case "syncStatus": - return ec.fieldContext_PersistentVolume_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_PersistentVolume_updateTime(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersistentVolume", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersistentVolumePaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumePaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumePaginatedRecords_edges(ctx, field) +func (ec *executionContext) _VolumeAttachment_id(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_id(ctx, field) if err != nil { return graphql.Null } @@ -46460,7 +54021,7 @@ func (ec *executionContext) _PersistentVolumePaginatedRecords_edges(ctx context. }() 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.VolumeAttachment().ID(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -46472,32 +54033,26 @@ func (ec *executionContext) _PersistentVolumePaginatedRecords_edges(ctx context. } return graphql.Null } - res := resTmp.([]*model.PersistentVolumeEdge) + res := resTmp.(repos.ID) fc.Result = res - return ec.marshalNPersistentVolumeEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPersistentVolumeEdgeᚄ(ctx, field.Selections, res) + return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumePaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumePaginatedRecords", + Object: "VolumeAttachment", 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_PersistentVolumeEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_PersistentVolumeEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersistentVolumeEdge", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersistentVolumePaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumePaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumePaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _VolumeAttachment_kind(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_kind(ctx, field) if err != nil { return graphql.Null } @@ -46510,48 +54065,35 @@ func (ec *executionContext) _PersistentVolumePaginatedRecords_pageInfo(ctx conte }() 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.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.PageInfo) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersistentVolumePaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumePaginatedRecords", + Object: "VolumeAttachment", 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 "hasPrevPage": - return ec.fieldContext_PageInfo_hasPrevPage(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 String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersistentVolumePaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.PersistentVolumePaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersistentVolumePaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _VolumeAttachment_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_lastUpdatedBy(ctx, field) if err != nil { return graphql.Null } @@ -46564,7 +54106,7 @@ func (ec *executionContext) _PersistentVolumePaginatedRecords_totalCount(ctx con }() 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.LastUpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -46576,26 +54118,34 @@ func (ec *executionContext) _PersistentVolumePaginatedRecords_totalCount(ctx con } return graphql.Null } - res := resTmp.(int) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalNInt2int(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_PersistentVolumePaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersistentVolumePaginatedRecords", + Object: "VolumeAttachment", 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 "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) _Query_infra_checkNameAvailability(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_checkNameAvailability(ctx, field) +func (ec *executionContext) _VolumeAttachment_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_markedForDeletion(ctx, field) if err != nil { return graphql.Null } @@ -46605,87 +54155,38 @@ func (ec *executionContext) _Query_infra_checkNameAvailability(ctx context.Conte 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().InfraCheckNameAvailability(rctx, fc.Args["resType"].(domain.ResType), fc.Args["clusterName"].(*string), fc.Args["name"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedIn == nil { - var zeroVal *domain.CheckNameAvailabilityOutput - return zeroVal, errors.New("directive isLoggedIn is not implemented") - } - return ec.directives.IsLoggedIn(ctx, nil, directive0) - } - directive2 := func(ctx context.Context) (interface{}, error) { - if ec.directives.HasAccount == nil { - var zeroVal *domain.CheckNameAvailabilityOutput - return zeroVal, 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.(*domain.CheckNameAvailabilityOutput); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/domain.CheckNameAvailabilityOutput`, tmp) + }() + 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 { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*domain.CheckNameAvailabilityOutput) + res := resTmp.(*bool) fc.Result = res - return ec.marshalNCheckNameAvailabilityOutput2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋdomainᚐCheckNameAvailabilityOutput(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_checkNameAvailability(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "VolumeAttachment", 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 "result": - return ec.fieldContext_CheckNameAvailabilityOutput_result(ctx, field) - case "suggestedNames": - return ec.fieldContext_CheckNameAvailabilityOutput_suggestedNames(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CheckNameAvailabilityOutput", field.Name) + 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_Query_infra_checkNameAvailability_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_listClusters(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_listClusters(ctx, field) +func (ec *executionContext) _VolumeAttachment_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_metadata(ctx, field) if err != nil { return graphql.Null } @@ -46697,37 +54198,8 @@ func (ec *executionContext) _Query_infra_listClusters(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.Query().InfraListClusters(rctx, fc.Args["search"].(*model.SearchCluster), fc.Args["pagination"].(*repos.CursorPagination)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *model.ClusterPaginatedRecords - return zeroVal, 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 { - var zeroVal *model.ClusterPaginatedRecords - return zeroVal, 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.(*model.ClusterPaginatedRecords); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.ClusterPaginatedRecords`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.ObjectMeta, nil }) if err != nil { ec.Error(ctx, err) @@ -46736,45 +54208,42 @@ func (ec *executionContext) _Query_infra_listClusters(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ClusterPaginatedRecords) + res := resTmp.(v1.ObjectMeta) fc.Result = res - return ec.marshalOClusterPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐClusterPaginatedRecords(ctx, field.Selections, res) + return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_listClusters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "VolumeAttachment", 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 "edges": - return ec.fieldContext_ClusterPaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ClusterPaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ClusterPaginatedRecords_totalCount(ctx, field) + 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 ClusterPaginatedRecords", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Metadata", 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_infra_listClusters_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_getCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_getCluster(ctx, field) +func (ec *executionContext) _VolumeAttachment_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -46786,118 +54255,39 @@ func (ec *executionContext) _Query_infra_getCluster(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().InfraGetCluster(rctx, fc.Args["name"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.Cluster - return zeroVal, 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 { - var zeroVal *entities.Cluster - return zeroVal, 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.Cluster); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Cluster`, tmp) + 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.(*entities.Cluster) + res := resTmp.(int) fc.Result = res - return ec.marshalOCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCluster(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_getCluster(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "VolumeAttachment", 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_Cluster_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_Cluster_apiVersion(ctx, field) - case "createdBy": - return ec.fieldContext_Cluster_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_Cluster_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_Cluster_displayName(ctx, field) - case "globalVPN": - return ec.fieldContext_Cluster_globalVPN(ctx, field) - case "id": - return ec.fieldContext_Cluster_id(ctx, field) - case "kind": - return ec.fieldContext_Cluster_kind(ctx, field) - case "lastOnlineAt": - return ec.fieldContext_Cluster_lastOnlineAt(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_Cluster_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_Cluster_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_Cluster_metadata(ctx, field) - case "ownedBy": - return ec.fieldContext_Cluster_ownedBy(ctx, field) - case "recordVersion": - return ec.fieldContext_Cluster_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_Cluster_spec(ctx, field) - case "status": - return ec.fieldContext_Cluster_status(ctx, field) - case "syncStatus": - return ec.fieldContext_Cluster_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_Cluster_updateTime(ctx, field) - case "adminKubeconfig": - return ec.fieldContext_Cluster_adminKubeconfig(ctx, field) - case "clusterDNSSuffix": - return ec.fieldContext_Cluster_clusterDNSSuffix(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Cluster", 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_Query_infra_getCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_listBYOKClusters(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_listBYOKClusters(ctx, field) +func (ec *executionContext) _VolumeAttachment_spec(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_spec(ctx, field) if err != nil { return graphql.Null } @@ -46909,84 +54299,47 @@ func (ec *executionContext) _Query_infra_listBYOKClusters(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.Query().InfraListBYOKClusters(rctx, fc.Args["search"].(*model.SearchCluster), fc.Args["pagination"].(*repos.CursorPagination)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *model.BYOKClusterPaginatedRecords - return zeroVal, 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 { - var zeroVal *model.BYOKClusterPaginatedRecords - return zeroVal, 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.(*model.BYOKClusterPaginatedRecords); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.BYOKClusterPaginatedRecords`, tmp) + ctx = rctx // use context from middleware stack in children + return ec.resolvers.VolumeAttachment().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.BYOKClusterPaginatedRecords) + res := resTmp.(*model.K8sIoAPIStorageV1VolumeAttachmentSpec) fc.Result = res - return ec.marshalOBYOKClusterPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐBYOKClusterPaginatedRecords(ctx, field.Selections, res) + return ec.marshalNK8s__io___api___storage___v1__VolumeAttachmentSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeAttachmentSpec(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_listBYOKClusters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "VolumeAttachment", 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_BYOKClusterPaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_BYOKClusterPaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_BYOKClusterPaginatedRecords_totalCount(ctx, field) + case "attacher": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_attacher(ctx, field) + case "nodeName": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_nodeName(ctx, field) + case "source": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type BYOKClusterPaginatedRecords", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___storage___v1__VolumeAttachmentSpec", 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_infra_listBYOKClusters_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_getBYOKCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_getBYOKCluster(ctx, field) +func (ec *executionContext) _VolumeAttachment_status(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_status(ctx, field) if err != nil { return graphql.Null } @@ -46998,37 +54351,8 @@ func (ec *executionContext) _Query_infra_getBYOKCluster(ctx context.Context, fie } }() 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().InfraGetBYOKCluster(rctx, fc.Args["name"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.BYOKCluster - return zeroVal, 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 { - var zeroVal *entities.BYOKCluster - return zeroVal, 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 *github.com/kloudlite/api/apps/infra/internal/entities.BYOKCluster`, tmp) + ctx = rctx // use context from middleware stack in children + return ec.resolvers.VolumeAttachment().Status(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -47037,77 +54361,36 @@ func (ec *executionContext) _Query_infra_getBYOKCluster(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*entities.BYOKCluster) + res := resTmp.(*model.K8sIoAPIStorageV1VolumeAttachmentStatus) fc.Result = res - return ec.marshalOBYOKCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐBYOKCluster(ctx, field.Selections, res) + return ec.marshalOK8s__io___api___storage___v1__VolumeAttachmentStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeAttachmentStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_getBYOKCluster(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "VolumeAttachment", 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_BYOKCluster_accountName(ctx, field) - case "clusterSvcCIDR": - return ec.fieldContext_BYOKCluster_clusterSvcCIDR(ctx, field) - case "clusterToken": - return ec.fieldContext_BYOKCluster_clusterToken(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 "globalVPN": - return ec.fieldContext_BYOKCluster_globalVPN(ctx, field) - case "id": - return ec.fieldContext_BYOKCluster_id(ctx, field) - case "lastOnlineAt": - return ec.fieldContext_BYOKCluster_lastOnlineAt(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_BYOKCluster_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_BYOKCluster_markedForDeletion(ctx, field) - case "messageQueueTopicName": - return ec.fieldContext_BYOKCluster_messageQueueTopicName(ctx, field) - case "metadata": - return ec.fieldContext_BYOKCluster_metadata(ctx, field) - case "ownedBy": - return ec.fieldContext_BYOKCluster_ownedBy(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) - case "visibility": - return ec.fieldContext_BYOKCluster_visibility(ctx, field) - case "clusterDNSSuffix": - return ec.fieldContext_BYOKCluster_clusterDNSSuffix(ctx, field) + case "attached": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attached(ctx, field) + case "attachError": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attachError(ctx, field) + case "attachmentMetadata": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attachmentMetadata(ctx, field) + case "detachError": + return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_detachError(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type BYOKCluster", field.Name) + return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___storage___v1__VolumeAttachmentStatus", 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_infra_getBYOKCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infrat_getBYOKClusterSetupInstructions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infrat_getBYOKClusterSetupInstructions(ctx, field) +func (ec *executionContext) _VolumeAttachment_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_syncStatus(ctx, field) if err != nil { return graphql.Null } @@ -47119,82 +54402,97 @@ func (ec *executionContext) _Query_infrat_getBYOKClusterSetupInstructions(ctx 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.Query().InfratGetBYOKClusterSetupInstructions(rctx, fc.Args["name"].(string), fc.Args["onlyHelmValues"].(*bool)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal []*model.BYOKSetupInstruction - return zeroVal, 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 { - var zeroVal []*model.BYOKSetupInstruction - return zeroVal, 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.([]*model.BYOKSetupInstruction); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kloudlite/api/apps/infra/internal/app/graph/model.BYOKSetupInstruction`, tmp) + 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.([]*model.BYOKSetupInstruction) + res := resTmp.(types.SyncStatus) fc.Result = res - return ec.marshalOBYOKSetupInstruction2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐBYOKSetupInstructionᚄ(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infrat_getBYOKClusterSetupInstructions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachment_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "VolumeAttachment", 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 "command": - return ec.fieldContext_BYOKSetupInstruction_command(ctx, field) - case "title": - return ec.fieldContext_BYOKSetupInstruction_title(ctx, field) + 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 BYOKSetupInstruction", field.Name) + 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) _VolumeAttachment_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachment_updateTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_infrat_getBYOKClusterSetupInstructions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.VolumeAttachment().UpdateTime(rctx, obj) + }) + if err != nil { ec.Error(ctx, err) - return fc, 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_VolumeAttachment_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "VolumeAttachment", + 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) _Query_infra_listGlobalVPNs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_listGlobalVPNs(ctx, field) +func (ec *executionContext) _VolumeAttachmentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.VolumeAttachmentEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachmentEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -47206,84 +54504,39 @@ func (ec *executionContext) _Query_infra_listGlobalVPNs(ctx context.Context, fie } }() 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().InfraListGlobalVPNs(rctx, fc.Args["search"].(*model.SearchGlobalVPNs), fc.Args["pagination"].(*repos.CursorPagination)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *model.GlobalVPNPaginatedRecords - return zeroVal, 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 { - var zeroVal *model.GlobalVPNPaginatedRecords - return zeroVal, 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.(*model.GlobalVPNPaginatedRecords); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.GlobalVPNPaginatedRecords`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.GlobalVPNPaginatedRecords) + res := resTmp.(string) fc.Result = res - return ec.marshalOGlobalVPNPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGlobalVPNPaginatedRecords(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_listGlobalVPNs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachmentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "VolumeAttachmentEdge", 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 "edges": - return ec.fieldContext_GlobalVPNPaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GlobalVPNPaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GlobalVPNPaginatedRecords_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPNPaginatedRecords", field.Name) + 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_Query_infra_listGlobalVPNs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_getGlobalVPN(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_getGlobalVPN(ctx, field) +func (ec *executionContext) _VolumeAttachmentEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.VolumeAttachmentEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachmentEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -47295,116 +54548,73 @@ func (ec *executionContext) _Query_infra_getGlobalVPN(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.Query().InfraGetGlobalVpn(rctx, fc.Args["name"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.GlobalVPN - return zeroVal, 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 { - var zeroVal *entities.GlobalVPN - return zeroVal, 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.GlobalVPN); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPN`, tmp) + 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.GlobalVPN) + res := resTmp.(*entities.VolumeAttachment) fc.Result = res - return ec.marshalOGlobalVPN2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPN(ctx, field.Selections, res) + return ec.marshalNVolumeAttachment2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐVolumeAttachment(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_getGlobalVPN(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachmentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "VolumeAttachmentEdge", 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_GlobalVPN_accountName(ctx, field) - case "allocatableCIDRSuffix": - return ec.fieldContext_GlobalVPN_allocatableCIDRSuffix(ctx, field) - case "CIDR": - return ec.fieldContext_GlobalVPN_CIDR(ctx, field) + return ec.fieldContext_VolumeAttachment_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_VolumeAttachment_apiVersion(ctx, field) + case "clusterName": + return ec.fieldContext_VolumeAttachment_clusterName(ctx, field) case "createdBy": - return ec.fieldContext_GlobalVPN_createdBy(ctx, field) + return ec.fieldContext_VolumeAttachment_createdBy(ctx, field) case "creationTime": - return ec.fieldContext_GlobalVPN_creationTime(ctx, field) + return ec.fieldContext_VolumeAttachment_creationTime(ctx, field) case "displayName": - return ec.fieldContext_GlobalVPN_displayName(ctx, field) + return ec.fieldContext_VolumeAttachment_displayName(ctx, field) case "id": - return ec.fieldContext_GlobalVPN_id(ctx, field) - case "kloudliteClusterLocalDevice": - return ec.fieldContext_GlobalVPN_kloudliteClusterLocalDevice(ctx, field) - case "kloudliteGatewayDevice": - return ec.fieldContext_GlobalVPN_kloudliteGatewayDevice(ctx, field) + return ec.fieldContext_VolumeAttachment_id(ctx, field) + case "kind": + return ec.fieldContext_VolumeAttachment_kind(ctx, field) case "lastUpdatedBy": - return ec.fieldContext_GlobalVPN_lastUpdatedBy(ctx, field) + return ec.fieldContext_VolumeAttachment_lastUpdatedBy(ctx, field) case "markedForDeletion": - return ec.fieldContext_GlobalVPN_markedForDeletion(ctx, field) + return ec.fieldContext_VolumeAttachment_markedForDeletion(ctx, field) case "metadata": - return ec.fieldContext_GlobalVPN_metadata(ctx, field) - case "nonClusterUseAllowedIPs": - return ec.fieldContext_GlobalVPN_nonClusterUseAllowedIPs(ctx, field) - case "numAllocatedClusterCIDRs": - return ec.fieldContext_GlobalVPN_numAllocatedClusterCIDRs(ctx, field) - case "numAllocatedDevices": - return ec.fieldContext_GlobalVPN_numAllocatedDevices(ctx, field) - case "numReservedIPsForNonClusterUse": - return ec.fieldContext_GlobalVPN_numReservedIPsForNonClusterUse(ctx, field) + return ec.fieldContext_VolumeAttachment_metadata(ctx, field) case "recordVersion": - return ec.fieldContext_GlobalVPN_recordVersion(ctx, field) + return ec.fieldContext_VolumeAttachment_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_VolumeAttachment_spec(ctx, field) + case "status": + return ec.fieldContext_VolumeAttachment_status(ctx, field) + case "syncStatus": + return ec.fieldContext_VolumeAttachment_syncStatus(ctx, field) case "updateTime": - return ec.fieldContext_GlobalVPN_updateTime(ctx, field) - case "wgInterface": - return ec.fieldContext_GlobalVPN_wgInterface(ctx, field) + return ec.fieldContext_VolumeAttachment_updateTime(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPN", field.Name) + return nil, fmt.Errorf("no field named %q was found under type VolumeAttachment", 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_infra_getGlobalVPN_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_listGlobalVPNDevices(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_listGlobalVPNDevices(ctx, field) +func (ec *executionContext) _VolumeAttachmentPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.VolumeAttachmentPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachmentPaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -47416,84 +54626,45 @@ func (ec *executionContext) _Query_infra_listGlobalVPNDevices(ctx context.Contex } }() 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().InfraListGlobalVPNDevices(rctx, fc.Args["gvpn"].(string), fc.Args["search"].(*model.SearchGlobalVPNDevices), fc.Args["pagination"].(*repos.CursorPagination)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *model.GlobalVPNDevicePaginatedRecords - return zeroVal, 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 { - var zeroVal *model.GlobalVPNDevicePaginatedRecords - return zeroVal, 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.(*model.GlobalVPNDevicePaginatedRecords); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.GlobalVPNDevicePaginatedRecords`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.GlobalVPNDevicePaginatedRecords) + res := resTmp.([]*model.VolumeAttachmentEdge) fc.Result = res - return ec.marshalOGlobalVPNDevicePaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGlobalVPNDevicePaginatedRecords(ctx, field.Selections, res) + return ec.marshalNVolumeAttachmentEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐVolumeAttachmentEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_listGlobalVPNDevices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachmentPaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "VolumeAttachmentPaginatedRecords", 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 "edges": - return ec.fieldContext_GlobalVPNDevicePaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GlobalVPNDevicePaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GlobalVPNDevicePaginatedRecords_totalCount(ctx, field) + case "cursor": + return ec.fieldContext_VolumeAttachmentEdge_cursor(ctx, field) + case "node": + return ec.fieldContext_VolumeAttachmentEdge_node(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPNDevicePaginatedRecords", field.Name) + return nil, fmt.Errorf("no field named %q was found under type VolumeAttachmentEdge", 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_infra_listGlobalVPNDevices_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_getGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_getGlobalVPNDevice(ctx, field) +func (ec *executionContext) _VolumeAttachmentPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.VolumeAttachmentPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachmentPaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -47505,112 +54676,49 @@ func (ec *executionContext) _Query_infra_getGlobalVPNDevice(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.Query().InfraGetGlobalVPNDevice(rctx, fc.Args["gvpn"].(string), fc.Args["deviceName"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.GlobalVPNDevice - return zeroVal, 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 { - var zeroVal *entities.GlobalVPNDevice - return zeroVal, 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.GlobalVPNDevice); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPNDevice`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*entities.GlobalVPNDevice) + res := resTmp.(*model.PageInfo) fc.Result = res - return ec.marshalOGlobalVPNDevice2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPNDevice(ctx, field.Selections, res) + return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_getGlobalVPNDevice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachmentPaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "VolumeAttachmentPaginatedRecords", 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_GlobalVPNDevice_accountName(ctx, field) - case "createdBy": - return ec.fieldContext_GlobalVPNDevice_createdBy(ctx, field) - case "creationMethod": - return ec.fieldContext_GlobalVPNDevice_creationMethod(ctx, field) - case "creationTime": - return ec.fieldContext_GlobalVPNDevice_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_GlobalVPNDevice_displayName(ctx, field) - case "globalVPNName": - return ec.fieldContext_GlobalVPNDevice_globalVPNName(ctx, field) - case "id": - return ec.fieldContext_GlobalVPNDevice_id(ctx, field) - case "ipAddr": - return ec.fieldContext_GlobalVPNDevice_ipAddr(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_GlobalVPNDevice_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_GlobalVPNDevice_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_GlobalVPNDevice_metadata(ctx, field) - case "privateKey": - return ec.fieldContext_GlobalVPNDevice_privateKey(ctx, field) - case "publicEndpoint": - return ec.fieldContext_GlobalVPNDevice_publicEndpoint(ctx, field) - case "publicKey": - return ec.fieldContext_GlobalVPNDevice_publicKey(ctx, field) - case "recordVersion": - return ec.fieldContext_GlobalVPNDevice_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_GlobalVPNDevice_updateTime(ctx, field) - case "wireguardConfig": - return ec.fieldContext_GlobalVPNDevice_wireguardConfig(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPrevPage": + return ec.fieldContext_PageInfo_hasPrevPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GlobalVPNDevice", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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_infra_getGlobalVPNDevice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_listNodePools(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_listNodePools(ctx, field) +func (ec *executionContext) _VolumeAttachmentPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.VolumeAttachmentPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VolumeAttachmentPaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -47622,84 +54730,83 @@ func (ec *executionContext) _Query_infra_listNodePools(ctx context.Context, fiel } }() 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().InfraListNodePools(rctx, fc.Args["clusterName"].(string), fc.Args["search"].(*model.SearchNodepool), fc.Args["pagination"].(*repos.CursorPagination)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *model.NodePoolPaginatedRecords - return zeroVal, 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 { - var zeroVal *model.NodePoolPaginatedRecords - return zeroVal, 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.(*model.NodePoolPaginatedRecords); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.NodePoolPaginatedRecords`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.NodePoolPaginatedRecords) + res := resTmp.(int) fc.Result = res - return ec.marshalONodePoolPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐNodePoolPaginatedRecords(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_listNodePools(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VolumeAttachmentPaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "VolumeAttachmentPaginatedRecords", 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 "edges": - return ec.fieldContext_NodePoolPaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_NodePoolPaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_NodePoolPaginatedRecords_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NodePoolPaginatedRecords", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } + return fc, nil +} + +func (ec *executionContext) _Workmachine_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_accountName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_infra_listNodePools_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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 fc, 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_Workmachine_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Workmachine", + 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) _Query_infra_getNodePool(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_getNodePool(ctx, field) +func (ec *executionContext) _Workmachine_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -47711,37 +54818,8 @@ func (ec *executionContext) _Query_infra_getNodePool(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.Query().InfraGetNodePool(rctx, fc.Args["clusterName"].(string), fc.Args["poolName"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.NodePool - return zeroVal, 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 { - var zeroVal *entities.NodePool - return zeroVal, 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.NodePool); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.NodePool`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.APIVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -47750,73 +54828,26 @@ func (ec *executionContext) _Query_infra_getNodePool(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*entities.NodePool) + res := resTmp.(string) fc.Result = res - return ec.marshalONodePool2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNodePool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_getNodePool(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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_NodePool_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_NodePool_apiVersion(ctx, field) - case "clusterName": - return ec.fieldContext_NodePool_clusterName(ctx, field) - case "createdBy": - return ec.fieldContext_NodePool_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_NodePool_creationTime(ctx, field) - case "dispatchAddr": - return ec.fieldContext_NodePool_dispatchAddr(ctx, field) - case "displayName": - return ec.fieldContext_NodePool_displayName(ctx, field) - case "id": - return ec.fieldContext_NodePool_id(ctx, field) - case "kind": - return ec.fieldContext_NodePool_kind(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_NodePool_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_NodePool_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_NodePool_metadata(ctx, field) - case "recordVersion": - return ec.fieldContext_NodePool_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_NodePool_spec(ctx, field) - case "status": - return ec.fieldContext_NodePool_status(ctx, field) - case "syncStatus": - return ec.fieldContext_NodePool_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_NodePool_updateTime(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NodePool", field.Name) + 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_Query_infra_getNodePool_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_listProviderSecrets(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_listProviderSecrets(ctx, field) +func (ec *executionContext) _Workmachine_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_clusterName(ctx, field) if err != nil { return graphql.Null } @@ -47828,84 +54859,39 @@ func (ec *executionContext) _Query_infra_listProviderSecrets(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.Query().InfraListProviderSecrets(rctx, fc.Args["search"].(*model.SearchProviderSecret), fc.Args["pagination"].(*repos.CursorPagination)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *model.CloudProviderSecretPaginatedRecords - return zeroVal, 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 { - var zeroVal *model.CloudProviderSecretPaginatedRecords - return zeroVal, 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.(*model.CloudProviderSecretPaginatedRecords); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.CloudProviderSecretPaginatedRecords`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.ClusterName, 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.CloudProviderSecretPaginatedRecords) + res := resTmp.(string) fc.Result = res - return ec.marshalOCloudProviderSecretPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐCloudProviderSecretPaginatedRecords(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_listProviderSecrets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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 "edges": - return ec.fieldContext_CloudProviderSecretPaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_CloudProviderSecretPaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_CloudProviderSecretPaginatedRecords_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CloudProviderSecretPaginatedRecords", field.Name) + 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_Query_infra_listProviderSecrets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_getProviderSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_getProviderSecret(ctx, field) +func (ec *executionContext) _Workmachine_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -47917,104 +54903,47 @@ func (ec *executionContext) _Query_infra_getProviderSecret(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.Query().InfraGetProviderSecret(rctx, fc.Args["name"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.CloudProviderSecret - return zeroVal, 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 { - var zeroVal *entities.CloudProviderSecret - return zeroVal, 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.CloudProviderSecret); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.CloudProviderSecret`, tmp) + 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.(*entities.CloudProviderSecret) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalOCloudProviderSecret2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCloudProviderSecret(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_Query_infra_getProviderSecret(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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_CloudProviderSecret_accountName(ctx, field) - case "aws": - return ec.fieldContext_CloudProviderSecret_aws(ctx, field) - case "cloudProviderName": - return ec.fieldContext_CloudProviderSecret_cloudProviderName(ctx, field) - case "createdBy": - return ec.fieldContext_CloudProviderSecret_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_CloudProviderSecret_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_CloudProviderSecret_displayName(ctx, field) - case "gcp": - return ec.fieldContext_CloudProviderSecret_gcp(ctx, field) - case "id": - return ec.fieldContext_CloudProviderSecret_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_CloudProviderSecret_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_CloudProviderSecret_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_CloudProviderSecret_metadata(ctx, field) - case "recordVersion": - return ec.fieldContext_CloudProviderSecret_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_CloudProviderSecret_updateTime(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 CloudProviderSecret", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", 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_infra_getProviderSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_listDomainEntries(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_listDomainEntries(ctx, field) +func (ec *executionContext) _Workmachine_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_creationTime(ctx, field) if err != nil { return graphql.Null } @@ -48026,84 +54955,39 @@ func (ec *executionContext) _Query_infra_listDomainEntries(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.Query().InfraListDomainEntries(rctx, fc.Args["search"].(*model.SearchDomainEntry), fc.Args["pagination"].(*repos.CursorPagination)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *model.DomainEntryPaginatedRecords - return zeroVal, 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 { - var zeroVal *model.DomainEntryPaginatedRecords - return zeroVal, 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.(*model.DomainEntryPaginatedRecords); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.DomainEntryPaginatedRecords`, tmp) + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Workmachine().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.(*model.DomainEntryPaginatedRecords) + res := resTmp.(string) fc.Result = res - return ec.marshalODomainEntryPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐDomainEntryPaginatedRecords(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_listDomainEntries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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_DomainEntryPaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DomainEntryPaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_DomainEntryPaginatedRecords_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DomainEntryPaginatedRecords", field.Name) + return nil, errors.New("field of type Date 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_Query_infra_listDomainEntries_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_getDomainEntry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_getDomainEntry(ctx, field) +func (ec *executionContext) _Workmachine_dispatchAddr(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_dispatchAddr(ctx, field) if err != nil { return graphql.Null } @@ -48115,37 +54999,8 @@ func (ec *executionContext) _Query_infra_getDomainEntry(ctx context.Context, fie } }() 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().InfraGetDomainEntry(rctx, fc.Args["domainName"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.DomainEntry - return zeroVal, 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 { - var zeroVal *entities.DomainEntry - return zeroVal, 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.DomainEntry); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.DomainEntry`, tmp) + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Workmachine().DispatchAddr(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -48154,61 +55009,32 @@ func (ec *executionContext) _Query_infra_getDomainEntry(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*entities.DomainEntry) + res := resTmp.(*model.GithubComKloudliteAPIAppsInfraInternalEntitiesDispatchAddr) fc.Result = res - return ec.marshalODomainEntry2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐDomainEntry(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsInfraInternalEntitiesDispatchAddr(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_getDomainEntry(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_dispatchAddr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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_DomainEntry_accountName(ctx, field) + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr_accountName(ctx, field) case "clusterName": - return ec.fieldContext_DomainEntry_clusterName(ctx, field) - case "createdBy": - return ec.fieldContext_DomainEntry_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_DomainEntry_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_DomainEntry_displayName(ctx, field) - case "domainName": - return ec.fieldContext_DomainEntry_domainName(ctx, field) - case "id": - return ec.fieldContext_DomainEntry_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_DomainEntry_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_DomainEntry_markedForDeletion(ctx, field) - case "recordVersion": - return ec.fieldContext_DomainEntry_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_DomainEntry_updateTime(ctx, field) + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr_clusterName(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DomainEntry", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr", 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_infra_getDomainEntry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_checkAwsAccess(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_checkAwsAccess(ctx, field) +func (ec *executionContext) _Workmachine_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_displayName(ctx, field) if err != nil { return graphql.Null } @@ -48220,37 +55046,8 @@ func (ec *executionContext) _Query_infra_checkAwsAccess(ctx context.Context, fie } }() 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().InfraCheckAWSAccess(rctx, fc.Args["cloudproviderName"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *model.CheckAWSAccessOutput - return zeroVal, 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 { - var zeroVal *model.CheckAWSAccessOutput - return zeroVal, 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.(*model.CheckAWSAccessOutput); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.CheckAWSAccessOutput`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -48262,43 +55059,26 @@ func (ec *executionContext) _Query_infra_checkAwsAccess(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*model.CheckAWSAccessOutput) + res := resTmp.(string) fc.Result = res - return ec.marshalNCheckAwsAccessOutput2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐCheckAWSAccessOutput(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_checkAwsAccess(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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 "result": - return ec.fieldContext_CheckAwsAccessOutput_result(ctx, field) - case "installationUrl": - return ec.fieldContext_CheckAwsAccessOutput_installationUrl(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CheckAwsAccessOutput", field.Name) + 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_Query_infra_checkAwsAccess_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_listManagedServiceTemplates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_listManagedServiceTemplates(ctx, field) +func (ec *executionContext) _Workmachine_id(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_id(ctx, field) if err != nil { return graphql.Null } @@ -48311,43 +55091,38 @@ func (ec *executionContext) _Query_infra_listManagedServiceTemplates(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().InfraListManagedServiceTemplates(rctx) + return ec.resolvers.Workmachine().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.([]*entities.MsvcTemplate) + res := resTmp.(repos.ID) fc.Result = res - return ec.marshalOMsvcTemplate2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐMsvcTemplateᚄ(ctx, field.Selections, res) + return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_listManagedServiceTemplates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "category": - return ec.fieldContext_MsvcTemplate_category(ctx, field) - case "displayName": - return ec.fieldContext_MsvcTemplate_displayName(ctx, field) - case "items": - return ec.fieldContext_MsvcTemplate_items(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MsvcTemplate", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Query_infra_getManagedServiceTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_getManagedServiceTemplate(ctx, field) +func (ec *executionContext) _Workmachine_kind(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_kind(ctx, field) if err != nil { return graphql.Null } @@ -48360,7 +55135,7 @@ func (ec *executionContext) _Query_infra_getManagedServiceTemplate(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().InfraGetManagedServiceTemplate(rctx, fc.Args["category"].(string), fc.Args["name"].(string)) + return obj.Kind, nil }) if err != nil { ec.Error(ctx, err) @@ -48369,59 +55144,78 @@ func (ec *executionContext) _Query_infra_getManagedServiceTemplate(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*entities.MsvcTemplateEntry) + res := resTmp.(string) fc.Result = res - return ec.marshalOGithub__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐMsvcTemplateEntry(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_getManagedServiceTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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 "active": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_active(ctx, field) - case "apiVersion": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_apiVersion(ctx, field) - case "description": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_description(ctx, field) - case "displayName": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_displayName(ctx, field) - case "fields": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_fields(ctx, field) - case "kind": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_kind(ctx, field) - case "logoUrl": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_logoUrl(ctx, field) - case "name": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_name(ctx, field) - case "outputs": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_outputs(ctx, field) - case "resources": - return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry_resources(ctx, field) + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Workmachine_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_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_Workmachine_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Workmachine", + 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___apps___infra___internal___entities__MsvcTemplateEntry", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", 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_infra_getManagedServiceTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_listPVCs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_listPVCs(ctx, field) +func (ec *executionContext) _Workmachine_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_markedForDeletion(ctx, field) if err != nil { return graphql.Null } @@ -48433,37 +55227,8 @@ func (ec *executionContext) _Query_infra_listPVCs(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.Query().InfraListPVCs(rctx, fc.Args["clusterName"].(string), fc.Args["search"].(*model.SearchPersistentVolumeClaims), fc.Args["pq"].(*repos.CursorPagination)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *model.PersistentVolumeClaimPaginatedRecords - return zeroVal, 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 { - var zeroVal *model.PersistentVolumeClaimPaginatedRecords - return zeroVal, 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.(*model.PersistentVolumeClaimPaginatedRecords); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.PersistentVolumeClaimPaginatedRecords`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.MarkedForDeletion, nil }) if err != nil { ec.Error(ctx, err) @@ -48472,45 +55237,26 @@ func (ec *executionContext) _Query_infra_listPVCs(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.PersistentVolumeClaimPaginatedRecords) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOPersistentVolumeClaimPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPersistentVolumeClaimPaginatedRecords(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_listPVCs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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 "edges": - return ec.fieldContext_PersistentVolumeClaimPaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_PersistentVolumeClaimPaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_PersistentVolumeClaimPaginatedRecords_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersistentVolumeClaimPaginatedRecords", field.Name) + 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_Query_infra_listPVCs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_getPVC(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_getPVC(ctx, field) +func (ec *executionContext) _Workmachine_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_metadata(ctx, field) if err != nil { return graphql.Null } @@ -48522,37 +55268,8 @@ func (ec *executionContext) _Query_infra_getPVC(ctx context.Context, field graph } }() 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().InfraGetPvc(rctx, fc.Args["clusterName"].(string), fc.Args["name"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.PersistentVolumeClaim - return zeroVal, 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 { - var zeroVal *entities.PersistentVolumeClaim - return zeroVal, 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.PersistentVolumeClaim); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.PersistentVolumeClaim`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.ObjectMeta, nil }) if err != nil { ec.Error(ctx, err) @@ -48561,71 +55278,42 @@ func (ec *executionContext) _Query_infra_getPVC(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*entities.PersistentVolumeClaim) + res := resTmp.(v1.ObjectMeta) fc.Result = res - return ec.marshalOPersistentVolumeClaim2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐPersistentVolumeClaim(ctx, field.Selections, res) + return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_getPVC(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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_PersistentVolumeClaim_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_PersistentVolumeClaim_apiVersion(ctx, field) - case "clusterName": - return ec.fieldContext_PersistentVolumeClaim_clusterName(ctx, field) - case "createdBy": - return ec.fieldContext_PersistentVolumeClaim_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_PersistentVolumeClaim_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_PersistentVolumeClaim_displayName(ctx, field) - case "id": - return ec.fieldContext_PersistentVolumeClaim_id(ctx, field) - case "kind": - return ec.fieldContext_PersistentVolumeClaim_kind(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_PersistentVolumeClaim_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_PersistentVolumeClaim_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_PersistentVolumeClaim_metadata(ctx, field) - case "recordVersion": - return ec.fieldContext_PersistentVolumeClaim_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_PersistentVolumeClaim_spec(ctx, field) - case "status": - return ec.fieldContext_PersistentVolumeClaim_status(ctx, field) - case "syncStatus": - return ec.fieldContext_PersistentVolumeClaim_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_PersistentVolumeClaim_updateTime(ctx, field) + 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 PersistentVolumeClaim", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Metadata", 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_infra_getPVC_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_listNamespaces(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_listNamespaces(ctx, field) +func (ec *executionContext) _Workmachine_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -48637,84 +55325,39 @@ func (ec *executionContext) _Query_infra_listNamespaces(ctx context.Context, fie } }() 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().InfraListNamespaces(rctx, fc.Args["clusterName"].(string), fc.Args["search"].(*model.SearchNamespaces), fc.Args["pq"].(*repos.CursorPagination)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *model.NamespacePaginatedRecords - return zeroVal, 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 { - var zeroVal *model.NamespacePaginatedRecords - return zeroVal, 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.(*model.NamespacePaginatedRecords); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.NamespacePaginatedRecords`, tmp) + 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.(*model.NamespacePaginatedRecords) + res := resTmp.(int) fc.Result = res - return ec.marshalONamespacePaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐNamespacePaginatedRecords(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_listNamespaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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 "edges": - return ec.fieldContext_NamespacePaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_NamespacePaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_NamespacePaginatedRecords_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NamespacePaginatedRecords", 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_Query_infra_listNamespaces_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_getNamespace(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_getNamespace(ctx, field) +func (ec *executionContext) _Workmachine_spec(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_spec(ctx, field) if err != nil { return graphql.Null } @@ -48726,37 +55369,8 @@ func (ec *executionContext) _Query_infra_getNamespace(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.Query().InfraGetNamespace(rctx, fc.Args["clusterName"].(string), fc.Args["name"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.Namespace - return zeroVal, 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 { - var zeroVal *entities.Namespace - return zeroVal, 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.Namespace); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.Namespace`, tmp) + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Workmachine().Spec(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -48765,71 +55379,38 @@ func (ec *executionContext) _Query_infra_getNamespace(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*entities.Namespace) + res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpec) fc.Result = res - return ec.marshalONamespace2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNamespace(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineSpec(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_getNamespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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_Namespace_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_Namespace_apiVersion(ctx, field) - case "clusterName": - return ec.fieldContext_Namespace_clusterName(ctx, field) - case "createdBy": - return ec.fieldContext_Namespace_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_Namespace_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_Namespace_displayName(ctx, field) - case "id": - return ec.fieldContext_Namespace_id(ctx, field) - case "kind": - return ec.fieldContext_Namespace_kind(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_Namespace_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_Namespace_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_Namespace_metadata(ctx, field) - case "recordVersion": - return ec.fieldContext_Namespace_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_Namespace_spec(ctx, field) - case "status": - return ec.fieldContext_Namespace_status(ctx, field) - case "syncStatus": - return ec.fieldContext_Namespace_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_Namespace_updateTime(ctx, field) + case "aws": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_aws(ctx, field) + case "jobParams": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_jobParams(ctx, field) + case "sshPublicKeys": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_sshPublicKeys(ctx, field) + case "state": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_state(ctx, field) + case "targetNamespace": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_targetNamespace(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Namespace", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec", 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_infra_getNamespace_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_listPVs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_listPVs(ctx, field) +func (ec *executionContext) _Workmachine_status(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_status(ctx, field) if err != nil { return graphql.Null } @@ -48841,37 +55422,8 @@ func (ec *executionContext) _Query_infra_listPVs(ctx context.Context, field grap } }() 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().InfraListPVs(rctx, fc.Args["clusterName"].(string), fc.Args["search"].(*model.SearchPersistentVolumes), fc.Args["pq"].(*repos.CursorPagination)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *model.PersistentVolumePaginatedRecords - return zeroVal, 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 { - var zeroVal *model.PersistentVolumePaginatedRecords - return zeroVal, 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.(*model.PersistentVolumePaginatedRecords); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.PersistentVolumePaginatedRecords`, tmp) + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Workmachine().Status(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -48880,45 +55432,32 @@ func (ec *executionContext) _Query_infra_listPVs(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*model.PersistentVolumePaginatedRecords) + res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatus) fc.Result = res - return ec.marshalOPersistentVolumePaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPersistentVolumePaginatedRecords(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_listPVs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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_PersistentVolumePaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_PersistentVolumePaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_PersistentVolumePaginatedRecords_totalCount(ctx, field) + case "machineSSHKey": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus_machineSSHKey(ctx, field) + case "status": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus_status(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PersistentVolumePaginatedRecords", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus", 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_infra_listPVs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_infra_getPV(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_getPV(ctx, field) +func (ec *executionContext) _Workmachine_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_syncStatus(ctx, field) if err != nil { return graphql.Null } @@ -48930,110 +55469,53 @@ func (ec *executionContext) _Query_infra_getPV(ctx context.Context, field graphq } }() 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().InfraGetPv(rctx, fc.Args["clusterName"].(string), fc.Args["name"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.PersistentVolume - return zeroVal, 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 { - var zeroVal *entities.PersistentVolume - return zeroVal, 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.PersistentVolume); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.PersistentVolume`, tmp) + 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.(*entities.PersistentVolume) + res := resTmp.(types.SyncStatus) fc.Result = res - return ec.marshalOPersistentVolume2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐPersistentVolume(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_getPV(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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_PersistentVolume_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_PersistentVolume_apiVersion(ctx, field) - case "clusterName": - return ec.fieldContext_PersistentVolume_clusterName(ctx, field) - case "createdBy": - return ec.fieldContext_PersistentVolume_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_PersistentVolume_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_PersistentVolume_displayName(ctx, field) - case "id": - return ec.fieldContext_PersistentVolume_id(ctx, field) - case "kind": - return ec.fieldContext_PersistentVolume_kind(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_PersistentVolume_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_PersistentVolume_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_PersistentVolume_metadata(ctx, field) + 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_PersistentVolume_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_PersistentVolume_spec(ctx, field) - case "status": - return ec.fieldContext_PersistentVolume_status(ctx, field) - case "syncStatus": - return ec.fieldContext_PersistentVolume_syncStatus(ctx, field) - case "updateTime": - return ec.fieldContext_PersistentVolume_updateTime(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersistentVolume", 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_infra_getPV_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err + 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) _Query_infra_listVolumeAttachments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_listVolumeAttachments(ctx, field) +func (ec *executionContext) _Workmachine_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.Workmachine) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workmachine_updateTime(ctx, field) if err != nil { return graphql.Null } @@ -49045,84 +55527,83 @@ func (ec *executionContext) _Query_infra_listVolumeAttachments(ctx context.Conte } }() 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().InfraListVolumeAttachments(rctx, fc.Args["clusterName"].(string), fc.Args["search"].(*model.SearchVolumeAttachments), fc.Args["pq"].(*repos.CursorPagination)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *model.VolumeAttachmentPaginatedRecords - return zeroVal, 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 { - var zeroVal *model.VolumeAttachmentPaginatedRecords - return zeroVal, 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.(*model.VolumeAttachmentPaginatedRecords); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/app/graph/model.VolumeAttachmentPaginatedRecords`, tmp) + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Workmachine().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.(*model.VolumeAttachmentPaginatedRecords) + res := resTmp.(string) fc.Result = res - return ec.marshalOVolumeAttachmentPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐVolumeAttachmentPaginatedRecords(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_listVolumeAttachments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workmachine_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Workmachine", 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_VolumeAttachmentPaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_VolumeAttachmentPaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_VolumeAttachmentPaginatedRecords_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VolumeAttachmentPaginatedRecords", field.Name) + return nil, errors.New("field of type Date does not have child fields") }, } + return fc, nil +} + +func (ec *executionContext) _WorkmachineEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.WorkmachineEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WorkmachineEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_infra_listVolumeAttachments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, 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_WorkmachineEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkmachineEdge", + 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) _Query_infra_getVolumeAttachment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_infra_getVolumeAttachment(ctx, field) +func (ec *executionContext) _WorkmachineEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.WorkmachineEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WorkmachineEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -49134,110 +55615,75 @@ func (ec *executionContext) _Query_infra_getVolumeAttachment(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.Query().InfraGetVolumeAttachment(rctx, fc.Args["clusterName"].(string), fc.Args["name"].(string)) - } - - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - var zeroVal *entities.VolumeAttachment - return zeroVal, 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 { - var zeroVal *entities.VolumeAttachment - return zeroVal, 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.VolumeAttachment); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.VolumeAttachment`, tmp) + 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.VolumeAttachment) + res := resTmp.(*entities.Workmachine) fc.Result = res - return ec.marshalOVolumeAttachment2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐVolumeAttachment(ctx, field.Selections, res) + return ec.marshalNWorkmachine2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkmachine(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_infra_getVolumeAttachment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkmachineEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "WorkmachineEdge", 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_VolumeAttachment_accountName(ctx, field) + return ec.fieldContext_Workmachine_accountName(ctx, field) case "apiVersion": - return ec.fieldContext_VolumeAttachment_apiVersion(ctx, field) + return ec.fieldContext_Workmachine_apiVersion(ctx, field) case "clusterName": - return ec.fieldContext_VolumeAttachment_clusterName(ctx, field) + return ec.fieldContext_Workmachine_clusterName(ctx, field) case "createdBy": - return ec.fieldContext_VolumeAttachment_createdBy(ctx, field) + return ec.fieldContext_Workmachine_createdBy(ctx, field) case "creationTime": - return ec.fieldContext_VolumeAttachment_creationTime(ctx, field) + return ec.fieldContext_Workmachine_creationTime(ctx, field) + case "dispatchAddr": + return ec.fieldContext_Workmachine_dispatchAddr(ctx, field) case "displayName": - return ec.fieldContext_VolumeAttachment_displayName(ctx, field) + return ec.fieldContext_Workmachine_displayName(ctx, field) case "id": - return ec.fieldContext_VolumeAttachment_id(ctx, field) + return ec.fieldContext_Workmachine_id(ctx, field) case "kind": - return ec.fieldContext_VolumeAttachment_kind(ctx, field) + return ec.fieldContext_Workmachine_kind(ctx, field) case "lastUpdatedBy": - return ec.fieldContext_VolumeAttachment_lastUpdatedBy(ctx, field) + return ec.fieldContext_Workmachine_lastUpdatedBy(ctx, field) case "markedForDeletion": - return ec.fieldContext_VolumeAttachment_markedForDeletion(ctx, field) + return ec.fieldContext_Workmachine_markedForDeletion(ctx, field) case "metadata": - return ec.fieldContext_VolumeAttachment_metadata(ctx, field) + return ec.fieldContext_Workmachine_metadata(ctx, field) case "recordVersion": - return ec.fieldContext_VolumeAttachment_recordVersion(ctx, field) + return ec.fieldContext_Workmachine_recordVersion(ctx, field) case "spec": - return ec.fieldContext_VolumeAttachment_spec(ctx, field) + return ec.fieldContext_Workmachine_spec(ctx, field) case "status": - return ec.fieldContext_VolumeAttachment_status(ctx, field) + return ec.fieldContext_Workmachine_status(ctx, field) case "syncStatus": - return ec.fieldContext_VolumeAttachment_syncStatus(ctx, field) + return ec.fieldContext_Workmachine_syncStatus(ctx, field) case "updateTime": - return ec.fieldContext_VolumeAttachment_updateTime(ctx, field) + return ec.fieldContext_Workmachine_updateTime(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type VolumeAttachment", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Workmachine", 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_infra_getVolumeAttachment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query__service(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query__service(ctx, field) +func (ec *executionContext) _WorkmachinePaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.WorkmachinePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WorkmachinePaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -49250,7 +55696,7 @@ func (ec *executionContext) _Query__service(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 ec.__resolve__service(ctx) + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -49262,30 +55708,32 @@ func (ec *executionContext) _Query__service(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(fedruntime.Service) + res := resTmp.([]*model.WorkmachineEdge) fc.Result = res - return ec.marshalN_Service2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐService(ctx, field.Selections, res) + return ec.marshalNWorkmachineEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐWorkmachineEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query__service(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkmachinePaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "WorkmachinePaginatedRecords", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "sdl": - return ec.fieldContext__Service_sdl(ctx, field) + case "cursor": + return ec.fieldContext_WorkmachineEdge_cursor(ctx, field) + case "node": + return ec.fieldContext_WorkmachineEdge_node(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type _Service", field.Name) + return nil, fmt.Errorf("no field named %q was found under type WorkmachineEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query___type(ctx, field) +func (ec *executionContext) _WorkmachinePaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.WorkmachinePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WorkmachinePaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -49298,68 +55746,48 @@ func (ec *executionContext) _Query___type(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 ec.introspectType(fc.Args["name"].(string)) + 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.(*introspection.Type) + res := resTmp.(*model.PageInfo) fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkmachinePaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "WorkmachinePaginatedRecords", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPrevPage": + return ec.fieldContext_PageInfo_hasPrevPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query___schema(ctx, field) +func (ec *executionContext) _WorkmachinePaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.WorkmachinePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WorkmachinePaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -49372,49 +55800,38 @@ func (ec *executionContext) _Query___schema(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 ec.introspectSchema() + 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.(*introspection.Schema) + res := resTmp.(int) fc.Result = res - return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkmachinePaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "WorkmachinePaginatedRecords", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "description": - return ec.fieldContext___Schema_description(ctx, field) - case "types": - return ec.fieldContext___Schema_types(ctx, field) - case "queryType": - return ec.fieldContext___Schema_queryType(ctx, field) - case "mutationType": - return ec.fieldContext___Schema_mutationType(ctx, field) - case "subscriptionType": - return ec.fieldContext___Schema_subscriptionType(ctx, field) - case "directives": - return ec.fieldContext___Schema_directives(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _VolumeAttachment_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_accountName(ctx, field) +func (ec *executionContext) _Workspace_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_accountName(ctx, field) if err != nil { return graphql.Null } @@ -49444,9 +55861,9 @@ func (ec *executionContext) _VolumeAttachment_accountName(ctx context.Context, f return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_accountName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: false, IsResolver: false, @@ -49457,8 +55874,8 @@ func (ec *executionContext) fieldContext_VolumeAttachment_accountName(_ context. return fc, nil } -func (ec *executionContext) _VolumeAttachment_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_apiVersion(ctx, field) +func (ec *executionContext) _Workspace_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -49485,9 +55902,9 @@ func (ec *executionContext) _VolumeAttachment_apiVersion(ctx context.Context, fi return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: false, IsResolver: false, @@ -49498,8 +55915,8 @@ func (ec *executionContext) fieldContext_VolumeAttachment_apiVersion(_ context.C return fc, nil } -func (ec *executionContext) _VolumeAttachment_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_clusterName(ctx, field) +func (ec *executionContext) _Workspace_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_clusterName(ctx, field) if err != nil { return graphql.Null } @@ -49529,9 +55946,9 @@ func (ec *executionContext) _VolumeAttachment_clusterName(ctx context.Context, f return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_clusterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: false, IsResolver: false, @@ -49542,8 +55959,8 @@ func (ec *executionContext) fieldContext_VolumeAttachment_clusterName(_ context. return fc, nil } -func (ec *executionContext) _VolumeAttachment_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_createdBy(ctx, field) +func (ec *executionContext) _Workspace_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -49573,9 +55990,9 @@ func (ec *executionContext) _VolumeAttachment_createdBy(ctx context.Context, fie return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: false, IsResolver: false, @@ -49594,8 +56011,8 @@ func (ec *executionContext) fieldContext_VolumeAttachment_createdBy(_ context.Co return fc, nil } -func (ec *executionContext) _VolumeAttachment_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_creationTime(ctx, field) +func (ec *executionContext) _Workspace_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_creationTime(ctx, field) if err != nil { return graphql.Null } @@ -49608,7 +56025,7 @@ func (ec *executionContext) _VolumeAttachment_creationTime(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.VolumeAttachment().CreationTime(rctx, obj) + return ec.resolvers.Workspace().CreationTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -49625,9 +56042,9 @@ func (ec *executionContext) _VolumeAttachment_creationTime(ctx context.Context, return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_creationTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: true, IsResolver: true, @@ -49638,8 +56055,55 @@ func (ec *executionContext) fieldContext_VolumeAttachment_creationTime(_ context return fc, nil } -func (ec *executionContext) _VolumeAttachment_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_displayName(ctx, field) +func (ec *executionContext) _Workspace_dispatchAddr(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_dispatchAddr(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Workspace().DispatchAddr(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.GithubComKloudliteAPIAppsInfraInternalEntitiesDispatchAddr) + fc.Result = res + return ec.marshalOGithub__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsInfraInternalEntitiesDispatchAddr(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Workspace_dispatchAddr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Workspace", + 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_Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr_accountName(ctx, field) + case "clusterName": + return ec.fieldContext_Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr_clusterName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Workspace_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_displayName(ctx, field) if err != nil { return graphql.Null } @@ -49669,9 +56133,9 @@ func (ec *executionContext) _VolumeAttachment_displayName(ctx context.Context, f return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: false, IsResolver: false, @@ -49682,8 +56146,8 @@ func (ec *executionContext) fieldContext_VolumeAttachment_displayName(_ context. return fc, nil } -func (ec *executionContext) _VolumeAttachment_id(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_id(ctx, field) +func (ec *executionContext) _Workspace_id(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_id(ctx, field) if err != nil { return graphql.Null } @@ -49696,7 +56160,7 @@ func (ec *executionContext) _VolumeAttachment_id(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.VolumeAttachment().ID(rctx, obj) + return ec.resolvers.Workspace().ID(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -49713,9 +56177,9 @@ func (ec *executionContext) _VolumeAttachment_id(ctx context.Context, field grap return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: true, IsResolver: true, @@ -49726,8 +56190,8 @@ func (ec *executionContext) fieldContext_VolumeAttachment_id(_ context.Context, return fc, nil } -func (ec *executionContext) _VolumeAttachment_kind(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_kind(ctx, field) +func (ec *executionContext) _Workspace_kind(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_kind(ctx, field) if err != nil { return graphql.Null } @@ -49754,9 +56218,9 @@ func (ec *executionContext) _VolumeAttachment_kind(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: false, IsResolver: false, @@ -49767,8 +56231,8 @@ func (ec *executionContext) fieldContext_VolumeAttachment_kind(_ context.Context return fc, nil } -func (ec *executionContext) _VolumeAttachment_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_lastUpdatedBy(ctx, field) +func (ec *executionContext) _Workspace_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_lastUpdatedBy(ctx, field) if err != nil { return graphql.Null } @@ -49798,9 +56262,9 @@ func (ec *executionContext) _VolumeAttachment_lastUpdatedBy(ctx context.Context, return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_lastUpdatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: false, IsResolver: false, @@ -49819,8 +56283,8 @@ func (ec *executionContext) fieldContext_VolumeAttachment_lastUpdatedBy(_ contex return fc, nil } -func (ec *executionContext) _VolumeAttachment_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_markedForDeletion(ctx, field) +func (ec *executionContext) _Workspace_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_markedForDeletion(ctx, field) if err != nil { return graphql.Null } @@ -49847,9 +56311,9 @@ func (ec *executionContext) _VolumeAttachment_markedForDeletion(ctx context.Cont return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_markedForDeletion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: false, IsResolver: false, @@ -49860,8 +56324,8 @@ func (ec *executionContext) fieldContext_VolumeAttachment_markedForDeletion(_ co return fc, nil } -func (ec *executionContext) _VolumeAttachment_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_metadata(ctx, field) +func (ec *executionContext) _Workspace_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_metadata(ctx, field) if err != nil { return graphql.Null } @@ -49888,9 +56352,9 @@ func (ec *executionContext) _VolumeAttachment_metadata(ctx context.Context, fiel return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: false, IsResolver: false, @@ -49917,8 +56381,8 @@ func (ec *executionContext) fieldContext_VolumeAttachment_metadata(_ context.Con return fc, nil } -func (ec *executionContext) _VolumeAttachment_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_recordVersion(ctx, field) +func (ec *executionContext) _Workspace_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -49948,9 +56412,9 @@ func (ec *executionContext) _VolumeAttachment_recordVersion(ctx context.Context, return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_recordVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: false, IsResolver: false, @@ -49961,8 +56425,8 @@ func (ec *executionContext) fieldContext_VolumeAttachment_recordVersion(_ contex return fc, nil } -func (ec *executionContext) _VolumeAttachment_spec(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_spec(ctx, field) +func (ec *executionContext) _Workspace_spec(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_spec(ctx, field) if err != nil { return graphql.Null } @@ -49975,46 +56439,53 @@ func (ec *executionContext) _VolumeAttachment_spec(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.VolumeAttachment().Spec(rctx, obj) + return ec.resolvers.Workspace().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.K8sIoAPIStorageV1VolumeAttachmentSpec) + res := resTmp.(*model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec) fc.Result = res - return ec.marshalNK8s__io___api___storage___v1__VolumeAttachmentSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeAttachmentSpec(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkspaceSpec(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "attacher": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_attacher(ctx, field) - case "nodeName": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_nodeName(ctx, field) - case "source": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentSpec_source(ctx, field) + case "enableCodeServer": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableCodeServer(ctx, field) + case "enableJupyterNotebook": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableJupyterNotebook(ctx, field) + case "enableTTYD": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableTTYD(ctx, field) + case "enableVSCodeServer": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableVSCodeServer(ctx, field) + case "imagePullPolicy": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_imagePullPolicy(ctx, field) + case "serviceAccountName": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_serviceAccountName(ctx, field) + case "state": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_state(ctx, field) + case "workMachine": + return ec.fieldContext_Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_workMachine(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___storage___v1__VolumeAttachmentSpec", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec", field.Name) }, } return fc, nil } -func (ec *executionContext) _VolumeAttachment_status(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_status(ctx, field) +func (ec *executionContext) _Workspace_status(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_status(ctx, field) if err != nil { return graphql.Null } @@ -50027,7 +56498,7 @@ func (ec *executionContext) _VolumeAttachment_status(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.VolumeAttachment().Status(rctx, obj) + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -50036,36 +56507,40 @@ func (ec *executionContext) _VolumeAttachment_status(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.K8sIoAPIStorageV1VolumeAttachmentStatus) + res := resTmp.(reconciler.Status) fc.Result = res - return ec.marshalOK8s__io___api___storage___v1__VolumeAttachmentStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeAttachmentStatus(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___toolkit___reconciler__Status2githubᚗcomᚋkloudliteᚋoperatorᚋtoolkitᚋreconcilerᚐStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", 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 "attached": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attached(ctx, field) - case "attachError": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attachError(ctx, field) - case "attachmentMetadata": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_attachmentMetadata(ctx, field) - case "detachError": - return ec.fieldContext_K8s__io___api___storage___v1__VolumeAttachmentStatus_detachError(ctx, field) + case "checkList": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checkList(ctx, field) + case "checks": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_checks(ctx, field) + case "isReady": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_isReady(ctx, field) + case "lastReadyGeneration": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReadyGeneration(ctx, field) + case "lastReconcileTime": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_lastReconcileTime(ctx, field) + case "resources": + return ec.fieldContext_Github__com___kloudlite___operator___toolkit___reconciler__Status_resources(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type K8s__io___api___storage___v1__VolumeAttachmentStatus", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___toolkit___reconciler__Status", field.Name) }, } return fc, nil } -func (ec *executionContext) _VolumeAttachment_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_syncStatus(ctx, field) +func (ec *executionContext) _Workspace_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_syncStatus(ctx, field) if err != nil { return graphql.Null } @@ -50095,9 +56570,9 @@ func (ec *executionContext) _VolumeAttachment_syncStatus(ctx context.Context, fi return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_syncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: false, IsResolver: false, @@ -50122,8 +56597,8 @@ func (ec *executionContext) fieldContext_VolumeAttachment_syncStatus(_ context.C return fc, nil } -func (ec *executionContext) _VolumeAttachment_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.VolumeAttachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachment_updateTime(ctx, field) +func (ec *executionContext) _Workspace_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_updateTime(ctx, field) if err != nil { return graphql.Null } @@ -50136,7 +56611,7 @@ func (ec *executionContext) _VolumeAttachment_updateTime(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 ec.resolvers.VolumeAttachment().UpdateTime(rctx, obj) + return ec.resolvers.Workspace().UpdateTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -50153,9 +56628,9 @@ func (ec *executionContext) _VolumeAttachment_updateTime(ctx context.Context, fi return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachment_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Workspace_updateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachment", + Object: "Workspace", Field: field, IsMethod: true, IsResolver: true, @@ -50166,8 +56641,52 @@ func (ec *executionContext) fieldContext_VolumeAttachment_updateTime(_ context.C return fc, nil } -func (ec *executionContext) _VolumeAttachmentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.VolumeAttachmentEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachmentEdge_cursor(ctx, field) +func (ec *executionContext) _Workspace_workmachineName(ctx context.Context, field graphql.CollectedField, obj *entities.Workspace) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Workspace_workmachineName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Workspace().WorkmachineName(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.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Workspace_workmachineName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Workspace", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkspaceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.WorkspaceEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WorkspaceEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -50197,9 +56716,9 @@ func (ec *executionContext) _VolumeAttachmentEdge_cursor(ctx context.Context, fi return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachmentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkspaceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachmentEdge", + Object: "WorkspaceEdge", Field: field, IsMethod: false, IsResolver: false, @@ -50210,8 +56729,8 @@ func (ec *executionContext) fieldContext_VolumeAttachmentEdge_cursor(_ context.C return fc, nil } -func (ec *executionContext) _VolumeAttachmentEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.VolumeAttachmentEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachmentEdge_node(ctx, field) +func (ec *executionContext) _WorkspaceEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.WorkspaceEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WorkspaceEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -50236,60 +56755,64 @@ func (ec *executionContext) _VolumeAttachmentEdge_node(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*entities.VolumeAttachment) + res := resTmp.(*entities.Workspace) fc.Result = res - return ec.marshalNVolumeAttachment2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐVolumeAttachment(ctx, field.Selections, res) + return ec.marshalNWorkspace2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkspace(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachmentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkspaceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachmentEdge", + Object: "WorkspaceEdge", 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_VolumeAttachment_accountName(ctx, field) + return ec.fieldContext_Workspace_accountName(ctx, field) case "apiVersion": - return ec.fieldContext_VolumeAttachment_apiVersion(ctx, field) + return ec.fieldContext_Workspace_apiVersion(ctx, field) case "clusterName": - return ec.fieldContext_VolumeAttachment_clusterName(ctx, field) + return ec.fieldContext_Workspace_clusterName(ctx, field) case "createdBy": - return ec.fieldContext_VolumeAttachment_createdBy(ctx, field) + return ec.fieldContext_Workspace_createdBy(ctx, field) case "creationTime": - return ec.fieldContext_VolumeAttachment_creationTime(ctx, field) + return ec.fieldContext_Workspace_creationTime(ctx, field) + case "dispatchAddr": + return ec.fieldContext_Workspace_dispatchAddr(ctx, field) case "displayName": - return ec.fieldContext_VolumeAttachment_displayName(ctx, field) + return ec.fieldContext_Workspace_displayName(ctx, field) case "id": - return ec.fieldContext_VolumeAttachment_id(ctx, field) + return ec.fieldContext_Workspace_id(ctx, field) case "kind": - return ec.fieldContext_VolumeAttachment_kind(ctx, field) + return ec.fieldContext_Workspace_kind(ctx, field) case "lastUpdatedBy": - return ec.fieldContext_VolumeAttachment_lastUpdatedBy(ctx, field) + return ec.fieldContext_Workspace_lastUpdatedBy(ctx, field) case "markedForDeletion": - return ec.fieldContext_VolumeAttachment_markedForDeletion(ctx, field) + return ec.fieldContext_Workspace_markedForDeletion(ctx, field) case "metadata": - return ec.fieldContext_VolumeAttachment_metadata(ctx, field) + return ec.fieldContext_Workspace_metadata(ctx, field) case "recordVersion": - return ec.fieldContext_VolumeAttachment_recordVersion(ctx, field) + return ec.fieldContext_Workspace_recordVersion(ctx, field) case "spec": - return ec.fieldContext_VolumeAttachment_spec(ctx, field) + return ec.fieldContext_Workspace_spec(ctx, field) case "status": - return ec.fieldContext_VolumeAttachment_status(ctx, field) + return ec.fieldContext_Workspace_status(ctx, field) case "syncStatus": - return ec.fieldContext_VolumeAttachment_syncStatus(ctx, field) + return ec.fieldContext_Workspace_syncStatus(ctx, field) case "updateTime": - return ec.fieldContext_VolumeAttachment_updateTime(ctx, field) + return ec.fieldContext_Workspace_updateTime(ctx, field) + case "workmachineName": + return ec.fieldContext_Workspace_workmachineName(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type VolumeAttachment", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Workspace", field.Name) }, } return fc, nil } -func (ec *executionContext) _VolumeAttachmentPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.VolumeAttachmentPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachmentPaginatedRecords_edges(ctx, field) +func (ec *executionContext) _WorkspacePaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.WorkspacePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WorkspacePaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -50314,32 +56837,32 @@ func (ec *executionContext) _VolumeAttachmentPaginatedRecords_edges(ctx context. } return graphql.Null } - res := resTmp.([]*model.VolumeAttachmentEdge) + res := resTmp.([]*model.WorkspaceEdge) fc.Result = res - return ec.marshalNVolumeAttachmentEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐVolumeAttachmentEdgeᚄ(ctx, field.Selections, res) + return ec.marshalNWorkspaceEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐWorkspaceEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachmentPaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkspacePaginatedRecords_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachmentPaginatedRecords", + Object: "WorkspacePaginatedRecords", 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_VolumeAttachmentEdge_cursor(ctx, field) + return ec.fieldContext_WorkspaceEdge_cursor(ctx, field) case "node": - return ec.fieldContext_VolumeAttachmentEdge_node(ctx, field) + return ec.fieldContext_WorkspaceEdge_node(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type VolumeAttachmentEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type WorkspaceEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _VolumeAttachmentPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.VolumeAttachmentPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachmentPaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _WorkspacePaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.WorkspacePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WorkspacePaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -50369,9 +56892,9 @@ func (ec *executionContext) _VolumeAttachmentPaginatedRecords_pageInfo(ctx conte return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachmentPaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkspacePaginatedRecords_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachmentPaginatedRecords", + Object: "WorkspacePaginatedRecords", Field: field, IsMethod: false, IsResolver: false, @@ -50392,8 +56915,8 @@ func (ec *executionContext) fieldContext_VolumeAttachmentPaginatedRecords_pageIn return fc, nil } -func (ec *executionContext) _VolumeAttachmentPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.VolumeAttachmentPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VolumeAttachmentPaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _WorkspacePaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.WorkspacePaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WorkspacePaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -50423,9 +56946,9 @@ func (ec *executionContext) _VolumeAttachmentPaginatedRecords_totalCount(ctx con return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VolumeAttachmentPaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkspacePaginatedRecords_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VolumeAttachmentPaginatedRecords", + Object: "WorkspacePaginatedRecords", Field: field, IsMethod: false, IsResolver: false, @@ -52902,13 +59425,20 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a asMap[k] = v } - fieldsInOrder := [...]string{"instanceType", "nodes"} + fieldsInOrder := [...]string{"ami", "instanceType", "nodes"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { + case "ami": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ami")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Ami = data case "instanceType": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("instanceType")) data, err := ec.unmarshalNString2string(ctx, v) @@ -52997,13 +59527,20 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a asMap[k] = v } - fieldsInOrder := [...]string{"cpuNode", "gpuNode", "nodes"} + fieldsInOrder := [...]string{"ami", "cpuNode", "gpuNode", "nodes"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { + case "ami": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ami")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Ami = data case "cpuNode": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cpuNode")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___clusters___v1__AwsSpotCpuNodeIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisClustersV1AWSSpotCPUNodeIn(ctx, v) @@ -53352,6 +59889,480 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a return it, nil } +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__AWSMachineConfigIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfigIn, error) { + var it model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfigIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"ami", "externalVolumeSize", "instanceType"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "ami": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ami")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Ami = data + case "externalVolumeSize": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalVolumeSize")) + data, err := ec.unmarshalNInt2int(ctx, v) + if err != nil { + return it, err + } + it.ExternalVolumeSize = data + case "instanceType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("instanceType")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.InstanceType = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParamsIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorApisCrdsV1WorkMachineJobParamsIn, error) { + var it model.GithubComKloudliteOperatorApisCrdsV1WorkMachineJobParamsIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"nodeSelector", "tolerations"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "nodeSelector": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nodeSelector")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.NodeSelector = data + case "tolerations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tolerations")) + data, err := ec.unmarshalOK8s__io___api___core___v1__TolerationIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TolerationInᚄ(ctx, v) + if err != nil { + return it, err + } + it.Tolerations = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineSpecIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpecIn, error) { + var it model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpecIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"aws", "jobParams", "sshPublicKeys", "state", "targetNamespace"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "aws": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("aws")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__AWSMachineConfigIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1AWSMachineConfigIn(ctx, v) + if err != nil { + return it, err + } + it.AWS = data + case "jobParams": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jobParams")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParamsIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineJobParamsIn(ctx, v) + if err != nil { + return it, err + } + it.JobParams = data + case "sshPublicKeys": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sshPublicKeys")) + data, err := ec.unmarshalNString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SSHPublicKeys = data + case "state": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) + data, err := ec.unmarshalNGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineState2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineState(ctx, v) + if err != nil { + return it, err + } + it.State = data + case "targetNamespace": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("targetNamespace")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TargetNamespace = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineStatusIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatusIn, error) { + var it model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatusIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"machineSSHKey", "status"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "machineSSHKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("machineSSHKey")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MachineSSHKey = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___toolkit___reconciler__StatusIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerStatusIn(ctx, v) + if err != nil { + return it, err + } + it.Status = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__WorkspaceSpecIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpecIn, error) { + var it model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpecIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"enableCodeServer", "enableJupyterNotebook", "enableTTYD", "enableVSCodeServer", "imagePullPolicy", "serviceAccountName", "state"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "enableCodeServer": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enableCodeServer")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.EnableCodeServer = data + case "enableJupyterNotebook": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enableJupyterNotebook")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.EnableJupyterNotebook = data + case "enableTTYD": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enableTTYD")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.EnableTtyd = data + case "enableVSCodeServer": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enableVSCodeServer")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.EnableVSCodeServer = data + case "imagePullPolicy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imagePullPolicy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ImagePullPolicy = data + case "serviceAccountName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceAccountName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ServiceAccountName = data + case "state": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) + data, err := ec.unmarshalNGithub__com___kloudlite___operator___apis___crds___v1__WorkspaceState2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkspaceState(ctx, v) + if err != nil { + return it, err + } + it.State = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__CheckIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorToolkitReconcilerCheckIn, error) { + var it model.GithubComKloudliteOperatorToolkitReconcilerCheckIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"debug", "error", "generation", "info", "message", "startedAt", "state", "status"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "debug": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("debug")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Debug = data + case "error": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("error")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Error = data + case "generation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("generation")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.Generation = data + case "info": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("info")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Info = data + case "message": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Message = data + case "startedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("startedAt")) + data, err := ec.unmarshalODate2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StartedAt = data + case "state": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___toolkit___reconciler__State2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerState(ctx, v) + if err != nil { + return it, err + } + it.State = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.Status = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorToolkitReconcilerCheckMetaIn, error) { + var it model.GithubComKloudliteOperatorToolkitReconcilerCheckMetaIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"debug", "description", "hide", "name", "title"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "debug": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("debug")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Debug = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Description = data + case "hide": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hide")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Hide = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "title": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Title = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorToolkitReconcilerResourceRefIn, error) { + var it model.GithubComKloudliteOperatorToolkitReconcilerResourceRefIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"apiVersion", "kind", "name", "namespace"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "apiVersion": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.APIVersion = data + case "kind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Kind = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "namespace": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Namespace = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__StatusIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorToolkitReconcilerStatusIn, error) { + var it model.GithubComKloudliteOperatorToolkitReconcilerStatusIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"checkList", "checks", "isReady", "lastReadyGeneration", "lastReconcileTime", "resources"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "checkList": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("checkList")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerCheckMetaInᚄ(ctx, v) + if err != nil { + return it, err + } + it.CheckList = data + case "checks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("checks")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Checks = data + case "isReady": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.IsReady = data + case "lastReadyGeneration": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastReadyGeneration")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.LastReadyGeneration = data + case "lastReconcileTime": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastReconcileTime")) + data, err := ec.unmarshalODate2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.LastReconcileTime = data + case "resources": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRefInᚄ(ctx, v) + if err != nil { + return it, err + } + it.Resources = data + } + } + + return it, nil +} + func (ec *executionContext) unmarshalInputGlobalVPNDeviceIn(ctx context.Context, obj interface{}) (entities.GlobalVPNDevice, error) { var it entities.GlobalVPNDevice asMap := map[string]interface{}{} @@ -55558,6 +62569,61 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TaintIn(ctx return it, nil } +func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TolerationIn(ctx context.Context, obj interface{}) (model.K8sIoAPICoreV1TolerationIn, error) { + var it model.K8sIoAPICoreV1TolerationIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"effect", "key", "operator", "tolerationSeconds", "value"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "effect": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("effect")) + data, err := ec.unmarshalOK8s__io___api___core___v1__TaintEffect2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TaintEffect(ctx, v) + if err != nil { + return it, err + } + it.Effect = data + case "key": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Key = data + case "operator": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operator")) + data, err := ec.unmarshalOK8s__io___api___core___v1__TolerationOperator2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TolerationOperator(ctx, v) + if err != nil { + return it, err + } + it.Operator = data + case "tolerationSeconds": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tolerationSeconds")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.TolerationSeconds = data + case "value": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Value = data + } + } + + return it, nil +} + func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TypedLocalObjectReferenceIn(ctx context.Context, obj interface{}) (model.K8sIoAPICoreV1TypedLocalObjectReferenceIn, error) { var it model.K8sIoAPICoreV1TypedLocalObjectReferenceIn asMap := map[string]interface{}{} @@ -56324,360 +63390,543 @@ func (ec *executionContext) unmarshalInputPersistentVolumeIn(ctx context.Context if err != nil { return it, err } - if err = ec.resolvers.PersistentVolumeIn().Metadata(ctx, &it, data); err != nil { + if err = ec.resolvers.PersistentVolumeIn().Metadata(ctx, &it, data); err != nil { + return it, err + } + case "spec": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) + data, err := ec.unmarshalOK8s__io___api___core___v1__PersistentVolumeSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeSpecIn(ctx, v) + if err != nil { + return it, err + } + if err = ec.resolvers.PersistentVolumeIn().Spec(ctx, &it, data); err != nil { + return it, err + } + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOK8s__io___api___core___v1__PersistentVolumeStatusIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeStatusIn(ctx, v) + if err != nil { + return it, err + } + if err = ec.resolvers.PersistentVolumeIn().Status(ctx, &it, data); err != nil { + return it, err + } + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSearchCluster(ctx context.Context, obj interface{}) (model.SearchCluster, error) { + var it model.SearchCluster + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"cloudProviderName", "isReady", "region", "text", "allClusters"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "cloudProviderName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cloudProviderName")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.CloudProviderName = data + case "isReady": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.IsReady = data + case "region": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("region")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Region = data + case "text": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Text = data + case "allClusters": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allClusters")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.AllClusters = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSearchDomainEntry(ctx context.Context, obj interface{}) (model.SearchDomainEntry, error) { + var it model.SearchDomainEntry + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"clusterName", "text"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "clusterName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.ClusterName = data + case "text": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Text = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSearchGlobalVPNDevices(ctx context.Context, obj interface{}) (model.SearchGlobalVPNDevices, error) { + var it model.SearchGlobalVPNDevices + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"text", "creationMethod"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "text": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Text = data + case "creationMethod": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("creationMethod")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.CreationMethod = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSearchGlobalVPNs(ctx context.Context, obj interface{}) (model.SearchGlobalVPNs, error) { + var it model.SearchGlobalVPNs + 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": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Text = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSearchNamespaces(ctx context.Context, obj interface{}) (model.SearchNamespaces, error) { + var it model.SearchNamespaces + 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": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Text = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSearchNodepool(ctx context.Context, obj interface{}) (model.SearchNodepool, error) { + var it model.SearchNodepool + 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": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Text = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSearchPersistentVolumeClaims(ctx context.Context, obj interface{}) (model.SearchPersistentVolumeClaims, error) { + var it model.SearchPersistentVolumeClaims + 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": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Text = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSearchPersistentVolumes(ctx context.Context, obj interface{}) (model.SearchPersistentVolumes, error) { + var it model.SearchPersistentVolumes + 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": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Text = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSearchProviderSecret(ctx context.Context, obj interface{}) (model.SearchProviderSecret, error) { + var it model.SearchProviderSecret + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"cloudProviderName", "text"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "cloudProviderName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cloudProviderName")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.CloudProviderName = data + case "text": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Text = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSearchVolumeAttachments(ctx context.Context, obj interface{}) (model.SearchVolumeAttachments, error) { + var it model.SearchVolumeAttachments + 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": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Text = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSearchWorkmachines(ctx context.Context, obj interface{}) (model.SearchWorkmachines, error) { + var it model.SearchWorkmachines + 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": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Text = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSearchWorkspaces(ctx context.Context, obj interface{}) (model.SearchWorkspaces, error) { + var it model.SearchWorkspaces + 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": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + if err != nil { + return it, err + } + it.Text = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputVolumeAttachmentIn(ctx context.Context, obj interface{}) (entities.VolumeAttachment, error) { + var it entities.VolumeAttachment + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"apiVersion", "kind", "metadata", "spec", "status"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "apiVersion": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) + data, err := ec.unmarshalOString2string(ctx, v) + if err != nil { + return it, err + } + it.APIVersion = data + case "kind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + data, err := ec.unmarshalOString2string(ctx, v) + if err != nil { + return it, err + } + it.Kind = data + case "metadata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) + data, err := ec.unmarshalOMetadataIn2ᚖk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, v) + if err != nil { + return it, err + } + if err = ec.resolvers.VolumeAttachmentIn().Metadata(ctx, &it, data); err != nil { return it, err } case "spec": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) - data, err := ec.unmarshalOK8s__io___api___core___v1__PersistentVolumeSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeSpecIn(ctx, v) + data, err := ec.unmarshalNK8s__io___api___storage___v1__VolumeAttachmentSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeAttachmentSpecIn(ctx, v) if err != nil { return it, err } - if err = ec.resolvers.PersistentVolumeIn().Spec(ctx, &it, data); err != nil { + if err = ec.resolvers.VolumeAttachmentIn().Spec(ctx, &it, data); err != nil { return it, err } case "status": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOK8s__io___api___core___v1__PersistentVolumeStatusIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1PersistentVolumeStatusIn(ctx, v) - if err != nil { - return it, err - } - if err = ec.resolvers.PersistentVolumeIn().Status(ctx, &it, data); err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSearchCluster(ctx context.Context, obj interface{}) (model.SearchCluster, error) { - var it model.SearchCluster - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"cloudProviderName", "isReady", "region", "text", "allClusters"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "cloudProviderName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cloudProviderName")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) - if err != nil { - return it, err - } - it.CloudProviderName = data - case "isReady": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) - if err != nil { - return it, err - } - it.IsReady = data - case "region": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("region")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) - if err != nil { - return it, err - } - it.Region = data - case "text": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) - if err != nil { - return it, err - } - it.Text = data - case "allClusters": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allClusters")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) - if err != nil { - return it, err - } - it.AllClusters = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSearchDomainEntry(ctx context.Context, obj interface{}) (model.SearchDomainEntry, error) { - var it model.SearchDomainEntry - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"clusterName", "text"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "clusterName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + data, err := ec.unmarshalOK8s__io___api___storage___v1__VolumeAttachmentStatusIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeAttachmentStatusIn(ctx, v) if err != nil { return it, err } - it.ClusterName = data - case "text": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) - if err != nil { + if err = ec.resolvers.VolumeAttachmentIn().Status(ctx, &it, data); err != nil { return it, err } - it.Text = data } } return it, nil } -func (ec *executionContext) unmarshalInputSearchGlobalVPNDevices(ctx context.Context, obj interface{}) (model.SearchGlobalVPNDevices, error) { - var it model.SearchGlobalVPNDevices +func (ec *executionContext) unmarshalInputWorkmachineIn(ctx context.Context, obj interface{}) (entities.Workmachine, error) { + var it entities.Workmachine asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"text", "creationMethod"} + fieldsInOrder := [...]string{"apiVersion", "displayName", "kind", "metadata", "spec", "status"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "text": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) - if err != nil { - return it, err - } - it.Text = data - case "creationMethod": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("creationMethod")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + case "apiVersion": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) + data, err := ec.unmarshalOString2string(ctx, v) if err != nil { return it, err } - it.CreationMethod = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSearchGlobalVPNs(ctx context.Context, obj interface{}) (model.SearchGlobalVPNs, error) { - var it model.SearchGlobalVPNs - 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": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + it.APIVersion = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Text = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSearchNamespaces(ctx context.Context, obj interface{}) (model.SearchNamespaces, error) { - var it model.SearchNamespaces - 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": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + it.DisplayName = data + case "kind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + data, err := ec.unmarshalOString2string(ctx, v) if err != nil { return it, err } - it.Text = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSearchNodepool(ctx context.Context, obj interface{}) (model.SearchNodepool, error) { - var it model.SearchNodepool - 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": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + it.Kind = data + case "metadata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) + data, err := ec.unmarshalOMetadataIn2ᚖk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, v) if err != nil { return it, err } - it.Text = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSearchPersistentVolumeClaims(ctx context.Context, obj interface{}) (model.SearchPersistentVolumeClaims, error) { - var it model.SearchPersistentVolumeClaims - 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": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) - if err != nil { + if err = ec.resolvers.WorkmachineIn().Metadata(ctx, &it, data); err != nil { return it, err } - it.Text = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSearchPersistentVolumes(ctx context.Context, obj interface{}) (model.SearchPersistentVolumes, error) { - var it model.SearchPersistentVolumes - 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": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + case "spec": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineSpecIn(ctx, v) if err != nil { return it, err } - it.Text = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSearchProviderSecret(ctx context.Context, obj interface{}) (model.SearchProviderSecret, error) { - var it model.SearchProviderSecret - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"cloudProviderName", "text"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "cloudProviderName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cloudProviderName")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) - if err != nil { + if err = ec.resolvers.WorkmachineIn().Spec(ctx, &it, data); err != nil { return it, err } - it.CloudProviderName = data - case "text": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineStatusIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineStatusIn(ctx, v) if err != nil { return it, err } - it.Text = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSearchVolumeAttachments(ctx context.Context, obj interface{}) (model.SearchVolumeAttachments, error) { - var it model.SearchVolumeAttachments - 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": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) - if err != nil { + if err = ec.resolvers.WorkmachineIn().Status(ctx, &it, data); err != nil { return it, err } - it.Text = data } } return it, nil } -func (ec *executionContext) unmarshalInputVolumeAttachmentIn(ctx context.Context, obj interface{}) (entities.VolumeAttachment, error) { - var it entities.VolumeAttachment +func (ec *executionContext) unmarshalInputWorkspaceIn(ctx context.Context, obj interface{}) (entities.Workspace, error) { + var it entities.Workspace asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"apiVersion", "kind", "metadata", "spec", "status"} + fieldsInOrder := [...]string{"apiVersion", "displayName", "kind", "metadata", "spec", "status"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -56691,6 +63940,13 @@ func (ec *executionContext) unmarshalInputVolumeAttachmentIn(ctx context.Context return it, err } it.APIVersion = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = data case "kind": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalOString2string(ctx, v) @@ -56704,25 +63960,25 @@ func (ec *executionContext) unmarshalInputVolumeAttachmentIn(ctx context.Context if err != nil { return it, err } - if err = ec.resolvers.VolumeAttachmentIn().Metadata(ctx, &it, data); err != nil { + if err = ec.resolvers.WorkspaceIn().Metadata(ctx, &it, data); err != nil { return it, err } case "spec": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) - data, err := ec.unmarshalNK8s__io___api___storage___v1__VolumeAttachmentSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeAttachmentSpecIn(ctx, v) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkspaceSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkspaceSpecIn(ctx, v) if err != nil { return it, err } - if err = ec.resolvers.VolumeAttachmentIn().Spec(ctx, &it, data); err != nil { + if err = ec.resolvers.WorkspaceIn().Spec(ctx, &it, data); err != nil { return it, err } case "status": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOK8s__io___api___storage___v1__VolumeAttachmentStatusIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeAttachmentStatusIn(ctx, v) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___toolkit___reconciler__StatusIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerStatusIn(ctx, v) if err != nil { return it, err } - if err = ec.resolvers.VolumeAttachmentIn().Status(ctx, &it, data); err != nil { + if err = ec.resolvers.WorkspaceIn().Status(ctx, &it, data); err != nil { return it, err } } @@ -59513,6 +66769,11 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___cluster switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig") + case "ami": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig_ami(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "instanceType": out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig_instanceType(ctx, field, obj) if out.Values[i] == graphql.Null { @@ -59634,6 +66895,11 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___cluster switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig") + case "ami": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig_ami(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "cpuNode": out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig_cpuNode(ctx, field, obj) case "gpuNode": @@ -60237,76 +67503,312 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___cluster return out } -var github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpecImplementors = []string{"Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec"} +var github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpecImplementors = []string{"Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec"} + +func (ec *executionContext) _Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisClustersV1NodePoolSpec) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpecImplementors) + + 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___clusters___v1__NodePoolSpec") + case "aws": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_aws(ctx, field, obj) + case "cloudProvider": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_cloudProvider(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "gcp": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_gcp(ctx, field, obj) + case "maxCount": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_maxCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "minCount": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_minCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "nodeLabels": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_nodeLabels(ctx, field, obj) + case "nodeTaints": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_nodeTaints(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var github__com___kloudlite___operator___apis___clusters___v1__NodePropsImplementors = []string{"Github__com___kloudlite___operator___apis___clusters___v1__NodeProps"} + +func (ec *executionContext) _Github__com___kloudlite___operator___apis___clusters___v1__NodeProps(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisClustersV1NodeProps) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___clusters___v1__NodePropsImplementors) + + 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___clusters___v1__NodeProps") + case "lastRecreatedAt": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodeProps_lastRecreatedAt(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var github__com___kloudlite___operator___apis___clusters___v1__NodeSpecImplementors = []string{"Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec"} + +func (ec *executionContext) _Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisClustersV1NodeSpec) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___clusters___v1__NodeSpecImplementors) + + 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___clusters___v1__NodeSpec") + case "nodepoolName": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec_nodepoolName(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___common____types__MinMaxFloatImplementors = []string{"Github__com___kloudlite___operator___apis___common____types__MinMaxFloat"} + +func (ec *executionContext) _Github__com___kloudlite___operator___apis___common____types__MinMaxFloat(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCommonTypesMinMaxFloat) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___common____types__MinMaxFloatImplementors) + + 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___common____types__MinMaxFloat") + case "max": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__MinMaxFloat_max(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "min": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__MinMaxFloat_min(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___common____types__SecretKeyRefImplementors = []string{"Github__com___kloudlite___operator___apis___common____types__SecretKeyRef"} + +func (ec *executionContext) _Github__com___kloudlite___operator___apis___common____types__SecretKeyRef(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCommonTypesSecretKeyRef) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___common____types__SecretKeyRefImplementors) + + 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___common____types__SecretKeyRef") + case "key": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__SecretKeyRef_key(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "name": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__SecretKeyRef_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "namespace": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__SecretKeyRef_namespace(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var github__com___kloudlite___operator___apis___common____types__SecretRefImplementors = []string{"Github__com___kloudlite___operator___apis___common____types__SecretRef"} + +func (ec *executionContext) _Github__com___kloudlite___operator___apis___common____types__SecretRef(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCommonTypesSecretRef) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___common____types__SecretRefImplementors) + + 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___common____types__SecretRef") + case "name": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__SecretRef_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "namespace": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__SecretRef_namespace(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfigImplementors = []string{"Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig"} -func (ec *executionContext) _Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisClustersV1NodePoolSpec) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpecImplementors) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfig) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfigImplementors) 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___clusters___v1__NodePoolSpec") - case "aws": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_aws(ctx, field, obj) - case "cloudProvider": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_cloudProvider(ctx, field, obj) + out.Values[i] = graphql.MarshalString("Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig") + case "ami": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_ami(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "gcp": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_gcp(ctx, field, obj) - case "maxCount": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_maxCount(ctx, field, obj) + case "externalVolumeSize": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_externalVolumeSize(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "minCount": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_minCount(ctx, field, obj) + case "externalVolumeType": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_externalVolumeType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "iamInstanceProfileRole": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_iamInstanceProfileRole(ctx, field, obj) + case "instanceType": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_instanceType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "rootVolumeSize": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_rootVolumeSize(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "rootVolumeType": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig_rootVolumeType(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "nodeLabels": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_nodeLabels(ctx, field, obj) - case "nodeTaints": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec_nodeTaints(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var github__com___kloudlite___operator___apis___clusters___v1__NodePropsImplementors = []string{"Github__com___kloudlite___operator___apis___clusters___v1__NodeProps"} - -func (ec *executionContext) _Github__com___kloudlite___operator___apis___clusters___v1__NodeProps(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisClustersV1NodeProps) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___clusters___v1__NodePropsImplementors) - - 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___clusters___v1__NodeProps") - case "lastRecreatedAt": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodeProps_lastRecreatedAt(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -60330,22 +67832,21 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___cluster return out } -var github__com___kloudlite___operator___apis___clusters___v1__NodeSpecImplementors = []string{"Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec"} +var github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParamsImplementors = []string{"Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams"} -func (ec *executionContext) _Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisClustersV1NodeSpec) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___clusters___v1__NodeSpecImplementors) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineJobParams) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParamsImplementors) 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___clusters___v1__NodeSpec") - case "nodepoolName": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec_nodepoolName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = graphql.MarshalString("Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams") + case "nodeSelector": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams_nodeSelector(ctx, field, obj) + case "tolerations": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams_tolerations(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -60369,27 +67870,33 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___cluster return out } -var github__com___kloudlite___operator___apis___common____types__MinMaxFloatImplementors = []string{"Github__com___kloudlite___operator___apis___common____types__MinMaxFloat"} +var github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpecImplementors = []string{"Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec"} -func (ec *executionContext) _Github__com___kloudlite___operator___apis___common____types__MinMaxFloat(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCommonTypesMinMaxFloat) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___common____types__MinMaxFloatImplementors) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpec) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpecImplementors) 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___common____types__MinMaxFloat") - case "max": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__MinMaxFloat_max(ctx, field, obj) + out.Values[i] = graphql.MarshalString("Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec") + case "aws": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_aws(ctx, field, obj) + case "jobParams": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_jobParams(ctx, field, obj) + case "sshPublicKeys": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_sshPublicKeys(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "min": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__MinMaxFloat_min(ctx, field, obj) + case "state": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_state(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } + case "targetNamespace": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec_targetNamespace(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -60413,29 +67920,21 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___common_ return out } -var github__com___kloudlite___operator___apis___common____types__SecretKeyRefImplementors = []string{"Github__com___kloudlite___operator___apis___common____types__SecretKeyRef"} +var github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatusImplementors = []string{"Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus"} -func (ec *executionContext) _Github__com___kloudlite___operator___apis___common____types__SecretKeyRef(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCommonTypesSecretKeyRef) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___common____types__SecretKeyRefImplementors) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatus) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatusImplementors) 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___common____types__SecretKeyRef") - case "key": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__SecretKeyRef_key(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__SecretKeyRef_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "namespace": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__SecretKeyRef_namespace(ctx, field, obj) + out.Values[i] = graphql.MarshalString("Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus") + case "machineSSHKey": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus_machineSSHKey(ctx, field, obj) + case "status": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus_status(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -60459,24 +67958,39 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___common_ return out } -var github__com___kloudlite___operator___apis___common____types__SecretRefImplementors = []string{"Github__com___kloudlite___operator___apis___common____types__SecretRef"} +var github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpecImplementors = []string{"Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec"} -func (ec *executionContext) _Github__com___kloudlite___operator___apis___common____types__SecretRef(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCommonTypesSecretRef) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___common____types__SecretRefImplementors) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpecImplementors) 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___common____types__SecretRef") - case "name": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__SecretRef_name(ctx, field, obj) + out.Values[i] = graphql.MarshalString("Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec") + case "enableCodeServer": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableCodeServer(ctx, field, obj) + case "enableJupyterNotebook": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableJupyterNotebook(ctx, field, obj) + case "enableTTYD": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableTTYD(ctx, field, obj) + case "enableVSCodeServer": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_enableVSCodeServer(ctx, field, obj) + case "imagePullPolicy": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_imagePullPolicy(ctx, field, obj) + case "serviceAccountName": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_serviceAccountName(ctx, field, obj) + case "state": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_state(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "workMachine": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec_workMachine(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "namespace": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___common____types__SecretRef_namespace(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -63646,6 +71160,50 @@ func (ec *executionContext) _K8s__io___api___core___v1__Taint(ctx context.Contex return out } +var k8s__io___api___core___v1__TolerationImplementors = []string{"K8s__io___api___core___v1__Toleration"} + +func (ec *executionContext) _K8s__io___api___core___v1__Toleration(ctx context.Context, sel ast.SelectionSet, obj *model.K8sIoAPICoreV1Toleration) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, k8s__io___api___core___v1__TolerationImplementors) + + 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("K8s__io___api___core___v1__Toleration") + case "effect": + out.Values[i] = ec._K8s__io___api___core___v1__Toleration_effect(ctx, field, obj) + case "key": + out.Values[i] = ec._K8s__io___api___core___v1__Toleration_key(ctx, field, obj) + case "operator": + out.Values[i] = ec._K8s__io___api___core___v1__Toleration_operator(ctx, field, obj) + case "tolerationSeconds": + out.Values[i] = ec._K8s__io___api___core___v1__Toleration_tolerationSeconds(ctx, field, obj) + case "value": + out.Values[i] = ec._K8s__io___api___core___v1__Toleration_value(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + var k8s__io___api___core___v1__TypedLocalObjectReferenceImplementors = []string{"K8s__io___api___core___v1__TypedLocalObjectReference"} func (ec *executionContext) _K8s__io___api___core___v1__TypedLocalObjectReference(ctx context.Context, sel ast.SelectionSet, obj *model.K8sIoAPICoreV1TypedLocalObjectReference) graphql.Marshaler { @@ -64560,6 +72118,43 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) if out.Values[i] == graphql.Null { out.Invalids++ } + case "infra_createWorkspace": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_infra_createWorkspace(ctx, field) + }) + case "infra_updateWorkspace": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_infra_updateWorkspace(ctx, field) + }) + case "infra_deleteWorkspace": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_infra_deleteWorkspace(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "infra_updateWorkspaceStatus": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_infra_updateWorkspaceStatus(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "infra_createWorkMachine": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_infra_createWorkMachine(ctx, field) + }) + case "infra_updateWorkMachine": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_infra_updateWorkMachine(ctx, field) + }) + case "infra_updateWorkMachineStatus": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_infra_updateWorkMachineStatus(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -65070,38 +72665,7 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "status": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Node_status(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) }) + out.Values[i] = ec._Node_status(ctx, field, obj) case "syncStatus": out.Values[i] = ec._Node_syncStatus(ctx, field, obj) if out.Values[i] == graphql.Null { @@ -66705,7 +74269,64 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "infra_getManagedServiceTemplate": + case "infra_getManagedServiceTemplate": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_infra_getManagedServiceTemplate(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 "infra_listPVCs": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_infra_listPVCs(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 "infra_getPVC": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_infra_getPVC(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 "infra_listNamespaces": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -66714,7 +74335,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_infra_getManagedServiceTemplate(ctx, field) + res = ec._Query_infra_listNamespaces(ctx, field) return res } @@ -66724,7 +74345,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "infra_listPVCs": + case "infra_getNamespace": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -66733,7 +74354,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_infra_listPVCs(ctx, field) + res = ec._Query_infra_getNamespace(ctx, field) return res } @@ -66743,7 +74364,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "infra_getPVC": + case "infra_listPVs": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -66752,7 +74373,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_infra_getPVC(ctx, field) + res = ec._Query_infra_listPVs(ctx, field) return res } @@ -66762,7 +74383,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "infra_listNamespaces": + case "infra_getPV": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -66771,7 +74392,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_infra_listNamespaces(ctx, field) + res = ec._Query_infra_getPV(ctx, field) return res } @@ -66781,7 +74402,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "infra_getNamespace": + case "infra_listVolumeAttachments": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -66790,7 +74411,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_infra_getNamespace(ctx, field) + res = ec._Query_infra_listVolumeAttachments(ctx, field) return res } @@ -66800,7 +74421,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "infra_listPVs": + case "infra_getVolumeAttachment": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -66809,7 +74430,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_infra_listPVs(ctx, field) + res = ec._Query_infra_getVolumeAttachment(ctx, field) return res } @@ -66819,7 +74440,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "infra_getPV": + case "infra_listWorkspaces": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -66828,7 +74449,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_infra_getPV(ctx, field) + res = ec._Query_infra_listWorkspaces(ctx, field) return res } @@ -66838,7 +74459,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "infra_listVolumeAttachments": + case "infra_getWorkspace": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -66847,7 +74468,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_infra_listVolumeAttachments(ctx, field) + res = ec._Query_infra_getWorkspace(ctx, field) return res } @@ -66857,7 +74478,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "infra_getVolumeAttachment": + case "infra_getWorkmachine": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -66866,7 +74487,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_infra_getVolumeAttachment(ctx, field) + res = ec._Query_infra_getWorkmachine(ctx, field) return res } @@ -67034,23 +74655,654 @@ func (ec *executionContext) _VolumeAttachment(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "kind": - out.Values[i] = ec._VolumeAttachment_kind(ctx, field, obj) - case "lastUpdatedBy": - out.Values[i] = ec._VolumeAttachment_lastUpdatedBy(ctx, field, obj) + case "kind": + out.Values[i] = ec._VolumeAttachment_kind(ctx, field, obj) + case "lastUpdatedBy": + out.Values[i] = ec._VolumeAttachment_lastUpdatedBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "markedForDeletion": + out.Values[i] = ec._VolumeAttachment_markedForDeletion(ctx, field, obj) + case "metadata": + out.Values[i] = ec._VolumeAttachment_metadata(ctx, field, obj) + case "recordVersion": + out.Values[i] = ec._VolumeAttachment_recordVersion(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "spec": + 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._VolumeAttachment_spec(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 "status": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._VolumeAttachment_status(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 "syncStatus": + out.Values[i] = ec._VolumeAttachment_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._VolumeAttachment_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 volumeAttachmentEdgeImplementors = []string{"VolumeAttachmentEdge"} + +func (ec *executionContext) _VolumeAttachmentEdge(ctx context.Context, sel ast.SelectionSet, obj *model.VolumeAttachmentEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, volumeAttachmentEdgeImplementors) + + 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("VolumeAttachmentEdge") + case "cursor": + out.Values[i] = ec._VolumeAttachmentEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "node": + out.Values[i] = ec._VolumeAttachmentEdge_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 volumeAttachmentPaginatedRecordsImplementors = []string{"VolumeAttachmentPaginatedRecords"} + +func (ec *executionContext) _VolumeAttachmentPaginatedRecords(ctx context.Context, sel ast.SelectionSet, obj *model.VolumeAttachmentPaginatedRecords) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, volumeAttachmentPaginatedRecordsImplementors) + + 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("VolumeAttachmentPaginatedRecords") + case "edges": + out.Values[i] = ec._VolumeAttachmentPaginatedRecords_edges(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "pageInfo": + out.Values[i] = ec._VolumeAttachmentPaginatedRecords_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._VolumeAttachmentPaginatedRecords_totalCount(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 workmachineImplementors = []string{"Workmachine"} + +func (ec *executionContext) _Workmachine(ctx context.Context, sel ast.SelectionSet, obj *entities.Workmachine) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, workmachineImplementors) + + 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("Workmachine") + case "accountName": + out.Values[i] = ec._Workmachine_accountName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "apiVersion": + out.Values[i] = ec._Workmachine_apiVersion(ctx, field, obj) + case "clusterName": + out.Values[i] = ec._Workmachine_clusterName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdBy": + out.Values[i] = ec._Workmachine_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._Workmachine_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 "dispatchAddr": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Workmachine_dispatchAddr(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 "displayName": + out.Values[i] = ec._Workmachine_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._Workmachine_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 "kind": + out.Values[i] = ec._Workmachine_kind(ctx, field, obj) + case "lastUpdatedBy": + out.Values[i] = ec._Workmachine_lastUpdatedBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "markedForDeletion": + out.Values[i] = ec._Workmachine_markedForDeletion(ctx, field, obj) + case "metadata": + out.Values[i] = ec._Workmachine_metadata(ctx, field, obj) + case "recordVersion": + out.Values[i] = ec._Workmachine_recordVersion(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "spec": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Workmachine_spec(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 "status": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Workmachine_status(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 "syncStatus": + out.Values[i] = ec._Workmachine_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._Workmachine_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 workmachineEdgeImplementors = []string{"WorkmachineEdge"} + +func (ec *executionContext) _WorkmachineEdge(ctx context.Context, sel ast.SelectionSet, obj *model.WorkmachineEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, workmachineEdgeImplementors) + + 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("WorkmachineEdge") + case "cursor": + out.Values[i] = ec._WorkmachineEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "node": + out.Values[i] = ec._WorkmachineEdge_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 workmachinePaginatedRecordsImplementors = []string{"WorkmachinePaginatedRecords"} + +func (ec *executionContext) _WorkmachinePaginatedRecords(ctx context.Context, sel ast.SelectionSet, obj *model.WorkmachinePaginatedRecords) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, workmachinePaginatedRecordsImplementors) + + 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("WorkmachinePaginatedRecords") + case "edges": + out.Values[i] = ec._WorkmachinePaginatedRecords_edges(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "pageInfo": + out.Values[i] = ec._WorkmachinePaginatedRecords_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._WorkmachinePaginatedRecords_totalCount(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 workspaceImplementors = []string{"Workspace"} + +func (ec *executionContext) _Workspace(ctx context.Context, sel ast.SelectionSet, obj *entities.Workspace) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, workspaceImplementors) + + 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("Workspace") + case "accountName": + out.Values[i] = ec._Workspace_accountName(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "markedForDeletion": - out.Values[i] = ec._VolumeAttachment_markedForDeletion(ctx, field, obj) - case "metadata": - out.Values[i] = ec._VolumeAttachment_metadata(ctx, field, obj) - case "recordVersion": - out.Values[i] = ec._VolumeAttachment_recordVersion(ctx, field, obj) + case "apiVersion": + out.Values[i] = ec._Workspace_apiVersion(ctx, field, obj) + case "clusterName": + out.Values[i] = ec._Workspace_clusterName(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "spec": + case "createdBy": + out.Values[i] = ec._Workspace_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) { @@ -67059,7 +75311,7 @@ func (ec *executionContext) _VolumeAttachment(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._VolumeAttachment_spec(ctx, field, obj) + res = ec._Workspace_creationTime(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -67086,7 +75338,7 @@ func (ec *executionContext) _VolumeAttachment(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "status": + case "dispatchAddr": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -67095,7 +75347,7 @@ func (ec *executionContext) _VolumeAttachment(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._VolumeAttachment_status(ctx, field, obj) + res = ec._Workspace_dispatchAddr(ctx, field, obj) return res } @@ -67119,8 +75371,100 @@ func (ec *executionContext) _VolumeAttachment(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "displayName": + out.Values[i] = ec._Workspace_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._Workspace_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 "kind": + out.Values[i] = ec._Workspace_kind(ctx, field, obj) + case "lastUpdatedBy": + out.Values[i] = ec._Workspace_lastUpdatedBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "markedForDeletion": + out.Values[i] = ec._Workspace_markedForDeletion(ctx, field, obj) + case "metadata": + out.Values[i] = ec._Workspace_metadata(ctx, field, obj) + case "recordVersion": + out.Values[i] = ec._Workspace_recordVersion(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "spec": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Workspace_spec(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 "status": + out.Values[i] = ec._Workspace_status(ctx, field, obj) case "syncStatus": - out.Values[i] = ec._VolumeAttachment_syncStatus(ctx, field, obj) + out.Values[i] = ec._Workspace_syncStatus(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } @@ -67133,7 +75477,43 @@ func (ec *executionContext) _VolumeAttachment(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._VolumeAttachment_updateTime(ctx, field, obj) + res = ec._Workspace_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) }) + case "workmachineName": + 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._Workspace_workmachineName(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -67183,24 +75563,24 @@ func (ec *executionContext) _VolumeAttachment(ctx context.Context, sel ast.Selec return out } -var volumeAttachmentEdgeImplementors = []string{"VolumeAttachmentEdge"} +var workspaceEdgeImplementors = []string{"WorkspaceEdge"} -func (ec *executionContext) _VolumeAttachmentEdge(ctx context.Context, sel ast.SelectionSet, obj *model.VolumeAttachmentEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, volumeAttachmentEdgeImplementors) +func (ec *executionContext) _WorkspaceEdge(ctx context.Context, sel ast.SelectionSet, obj *model.WorkspaceEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, workspaceEdgeImplementors) 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("VolumeAttachmentEdge") + out.Values[i] = graphql.MarshalString("WorkspaceEdge") case "cursor": - out.Values[i] = ec._VolumeAttachmentEdge_cursor(ctx, field, obj) + out.Values[i] = ec._WorkspaceEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "node": - out.Values[i] = ec._VolumeAttachmentEdge_node(ctx, field, obj) + out.Values[i] = ec._WorkspaceEdge_node(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -67227,29 +75607,29 @@ func (ec *executionContext) _VolumeAttachmentEdge(ctx context.Context, sel ast.S return out } -var volumeAttachmentPaginatedRecordsImplementors = []string{"VolumeAttachmentPaginatedRecords"} +var workspacePaginatedRecordsImplementors = []string{"WorkspacePaginatedRecords"} -func (ec *executionContext) _VolumeAttachmentPaginatedRecords(ctx context.Context, sel ast.SelectionSet, obj *model.VolumeAttachmentPaginatedRecords) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, volumeAttachmentPaginatedRecordsImplementors) +func (ec *executionContext) _WorkspacePaginatedRecords(ctx context.Context, sel ast.SelectionSet, obj *model.WorkspacePaginatedRecords) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, workspacePaginatedRecordsImplementors) 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("VolumeAttachmentPaginatedRecords") + out.Values[i] = graphql.MarshalString("WorkspacePaginatedRecords") case "edges": - out.Values[i] = ec._VolumeAttachmentPaginatedRecords_edges(ctx, field, obj) + out.Values[i] = ec._WorkspacePaginatedRecords_edges(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "pageInfo": - out.Values[i] = ec._VolumeAttachmentPaginatedRecords_pageInfo(ctx, field, obj) + out.Values[i] = ec._WorkspacePaginatedRecords_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._VolumeAttachmentPaginatedRecords_totalCount(ctx, field, obj) + out.Values[i] = ec._WorkspacePaginatedRecords_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -68544,6 +76924,26 @@ func (ec *executionContext) unmarshalNGithub__com___kloudlite___operator___apis_ return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) unmarshalNGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineState2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineState(ctx context.Context, v interface{}) (model.GithubComKloudliteOperatorApisCrdsV1WorkMachineState, error) { + var res model.GithubComKloudliteOperatorApisCrdsV1WorkMachineState + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineState2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineState(ctx context.Context, sel ast.SelectionSet, v model.GithubComKloudliteOperatorApisCrdsV1WorkMachineState) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNGithub__com___kloudlite___operator___apis___crds___v1__WorkspaceState2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkspaceState(ctx context.Context, v interface{}) (model.GithubComKloudliteOperatorApisCrdsV1WorkspaceState, error) { + var res model.GithubComKloudliteOperatorApisCrdsV1WorkspaceState + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNGithub__com___kloudlite___operator___apis___crds___v1__WorkspaceState2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkspaceState(ctx context.Context, sel ast.SelectionSet, v model.GithubComKloudliteOperatorApisCrdsV1WorkspaceState) graphql.Marshaler { + return v +} + func (ec *executionContext) marshalNGithub__com___kloudlite___operator___pkg___operator__CheckMeta2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorCheckMeta(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { @@ -68574,6 +76974,11 @@ func (ec *executionContext) marshalNGithub__com___kloudlite___operator___toolkit return ec._Github__com___kloudlite___operator___toolkit___reconciler__CheckMeta(ctx, sel, v) } +func (ec *executionContext) unmarshalNGithub__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerCheckMetaIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorToolkitReconcilerCheckMetaIn, error) { + res, err := ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) marshalNGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRef2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRef(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { @@ -68584,6 +76989,11 @@ func (ec *executionContext) marshalNGithub__com___kloudlite___operator___toolkit return ec._Github__com___kloudlite___operator___toolkit___reconciler__ResourceRef(ctx, sel, v) } +func (ec *executionContext) unmarshalNGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRefIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorToolkitReconcilerResourceRefIn, error) { + res, err := ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) marshalNGlobalVPN2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPN(ctx context.Context, sel ast.SelectionSet, v *entities.GlobalVPN) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { @@ -68992,6 +77402,21 @@ func (ec *executionContext) unmarshalNK8s__io___api___core___v1__TaintIn2ᚖgith return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) marshalNK8s__io___api___core___v1__Toleration2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1Toleration(ctx context.Context, sel ast.SelectionSet, v *model.K8sIoAPICoreV1Toleration) 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._K8s__io___api___core___v1__Toleration(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNK8s__io___api___core___v1__TolerationIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TolerationIn(ctx context.Context, v interface{}) (*model.K8sIoAPICoreV1TolerationIn, error) { + res, err := ec.unmarshalInputK8s__io___api___core___v1__TolerationIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) marshalNK8s__io___api___storage___v1__VolumeAttachmentSource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPIStorageV1VolumeAttachmentSource(ctx context.Context, sel ast.SelectionSet, v *model.K8sIoAPIStorageV1VolumeAttachmentSource) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { @@ -69522,7 +77947,71 @@ func (ec *executionContext) marshalNVolumeAttachmentEdge2ᚕᚖgithubᚗcomᚋkl if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNVolumeAttachmentEdge2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐVolumeAttachmentEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNVolumeAttachmentEdge2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐVolumeAttachmentEdge(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) marshalNVolumeAttachmentEdge2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐVolumeAttachmentEdge(ctx context.Context, sel ast.SelectionSet, v *model.VolumeAttachmentEdge) 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._VolumeAttachmentEdge(ctx, sel, v) +} + +func (ec *executionContext) marshalNWorkmachine2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkmachine(ctx context.Context, sel ast.SelectionSet, v *entities.Workmachine) 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._Workmachine(ctx, sel, v) +} + +func (ec *executionContext) marshalNWorkmachineEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐWorkmachineEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.WorkmachineEdge) 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.marshalNWorkmachineEdge2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐWorkmachineEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -69542,14 +78031,88 @@ func (ec *executionContext) marshalNVolumeAttachmentEdge2ᚕᚖgithubᚗcomᚋkl return ret } -func (ec *executionContext) marshalNVolumeAttachmentEdge2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐVolumeAttachmentEdge(ctx context.Context, sel ast.SelectionSet, v *model.VolumeAttachmentEdge) graphql.Marshaler { +func (ec *executionContext) marshalNWorkmachineEdge2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐWorkmachineEdge(ctx context.Context, sel ast.SelectionSet, v *model.WorkmachineEdge) 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._VolumeAttachmentEdge(ctx, sel, v) + return ec._WorkmachineEdge(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNWorkmachineIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkmachine(ctx context.Context, v interface{}) (entities.Workmachine, error) { + res, err := ec.unmarshalInputWorkmachineIn(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNWorkspace2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkspace(ctx context.Context, sel ast.SelectionSet, v *entities.Workspace) 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._Workspace(ctx, sel, v) +} + +func (ec *executionContext) marshalNWorkspaceEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐWorkspaceEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.WorkspaceEdge) 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.marshalNWorkspaceEdge2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐWorkspaceEdge(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) marshalNWorkspaceEdge2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐWorkspaceEdge(ctx context.Context, sel ast.SelectionSet, v *model.WorkspaceEdge) 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._WorkspaceEdge(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNWorkspaceIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkspace(ctx context.Context, v interface{}) (entities.Workspace, error) { + res, err := ec.unmarshalInputWorkspaceIn(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } func (ec *executionContext) marshalN_Service2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐService(ctx context.Context, sel ast.SelectionSet, v fedruntime.Service) graphql.Marshaler { @@ -70467,6 +79030,81 @@ func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___ return ec._Github__com___kloudlite___operator___apis___common____types__SecretKeyRef(ctx, sel, v) } +func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1AWSMachineConfig(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfig) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__AWSMachineConfigIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1AWSMachineConfigIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorApisCrdsV1AWSMachineConfigIn, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__AWSMachineConfigIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineJobParams(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineJobParams) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParamsIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineJobParamsIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorApisCrdsV1WorkMachineJobParamsIn, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParamsIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineSpec(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpec) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineSpecIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpecIn, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineSpecIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineStatus(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatus) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineStatusIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkMachineStatusIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatusIn, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__WorkMachineStatusIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkspaceSpec(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__WorkspaceSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1WorkspaceSpecIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpecIn, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGithub__com___kloudlite___operator___apis___crds___v1__WorkspaceSpecIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) marshalOGithub__com___kloudlite___operator___pkg___operator__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorCheckMetaᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.GithubComKloudliteOperatorPkgOperatorCheckMeta) graphql.Marshaler { if v == nil { return graphql.Null @@ -70638,6 +79276,26 @@ func (ec *executionContext) marshalOGithub__com___kloudlite___operator___toolkit return ret } +func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerCheckMetaInᚄ(ctx context.Context, v interface{}) ([]*model.GithubComKloudliteOperatorToolkitReconcilerCheckMetaIn, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.GithubComKloudliteOperatorToolkitReconcilerCheckMetaIn, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGithub__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerCheckMetaIn(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + func (ec *executionContext) marshalOGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRef2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRefᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.GithubComKloudliteOperatorToolkitReconcilerResourceRef) graphql.Marshaler { if v == nil { return graphql.Null @@ -70685,6 +79343,26 @@ func (ec *executionContext) marshalOGithub__com___kloudlite___operator___toolkit return ret } +func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRefInᚄ(ctx context.Context, v interface{}) ([]*model.GithubComKloudliteOperatorToolkitReconcilerResourceRefIn, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.GithubComKloudliteOperatorToolkitReconcilerResourceRefIn, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGithub__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerResourceRefIn(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___toolkit___reconciler__State2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerState(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorToolkitReconcilerState, error) { if v == nil { return nil, nil @@ -70705,6 +79383,21 @@ func (ec *executionContext) marshalOGithub__com___kloudlite___operator___toolkit return ec._Github__com___kloudlite___operator___toolkit___reconciler__Status(ctx, sel, &v) } +func (ec *executionContext) marshalOGithub__com___kloudlite___operator___toolkit___reconciler__Status2ᚖgithubᚗcomᚋkloudliteᚋoperatorᚋtoolkitᚋreconcilerᚐStatus(ctx context.Context, sel ast.SelectionSet, v *reconciler.Status) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___operator___toolkit___reconciler__Status(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOGithub__com___kloudlite___operator___toolkit___reconciler__StatusIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorToolkitReconcilerStatusIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorToolkitReconcilerStatusIn, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGithub__com___kloudlite___operator___toolkit___reconciler__StatusIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) marshalOGlobalVPN2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐGlobalVPN(ctx context.Context, sel ast.SelectionSet, v *entities.GlobalVPN) graphql.Marshaler { if v == nil { return graphql.Null @@ -71536,6 +80229,22 @@ func (ec *executionContext) marshalOK8s__io___api___core___v1__Taint2ᚕᚖgithu return ret } +func (ec *executionContext) unmarshalOK8s__io___api___core___v1__TaintEffect2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TaintEffect(ctx context.Context, v interface{}) (*model.K8sIoAPICoreV1TaintEffect, error) { + if v == nil { + return nil, nil + } + var res = new(model.K8sIoAPICoreV1TaintEffect) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOK8s__io___api___core___v1__TaintEffect2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TaintEffect(ctx context.Context, sel ast.SelectionSet, v *model.K8sIoAPICoreV1TaintEffect) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return v +} + func (ec *executionContext) unmarshalOK8s__io___api___core___v1__TaintIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TaintInᚄ(ctx context.Context, v interface{}) ([]*model.K8sIoAPICoreV1TaintIn, error) { if v == nil { return nil, nil @@ -71556,6 +80265,89 @@ func (ec *executionContext) unmarshalOK8s__io___api___core___v1__TaintIn2ᚕᚖg return res, nil } +func (ec *executionContext) marshalOK8s__io___api___core___v1__Toleration2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1Tolerationᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.K8sIoAPICoreV1Toleration) 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.marshalNK8s__io___api___core___v1__Toleration2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1Toleration(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) unmarshalOK8s__io___api___core___v1__TolerationIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TolerationInᚄ(ctx context.Context, v interface{}) ([]*model.K8sIoAPICoreV1TolerationIn, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.K8sIoAPICoreV1TolerationIn, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNK8s__io___api___core___v1__TolerationIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TolerationIn(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOK8s__io___api___core___v1__TolerationOperator2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TolerationOperator(ctx context.Context, v interface{}) (*model.K8sIoAPICoreV1TolerationOperator, error) { + if v == nil { + return nil, nil + } + var res = new(model.K8sIoAPICoreV1TolerationOperator) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOK8s__io___api___core___v1__TolerationOperator2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TolerationOperator(ctx context.Context, sel ast.SelectionSet, v *model.K8sIoAPICoreV1TolerationOperator) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return v +} + func (ec *executionContext) marshalOK8s__io___api___core___v1__TypedLocalObjectReference2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TypedLocalObjectReference(ctx context.Context, sel ast.SelectionSet, v *model.K8sIoAPICoreV1TypedLocalObjectReference) graphql.Marshaler { if v == nil { return graphql.Null @@ -71962,6 +80754,14 @@ func (ec *executionContext) unmarshalOSearchVolumeAttachments2ᚖgithubᚗcomᚋ return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) unmarshalOSearchWorkspaces2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐSearchWorkspaces(ctx context.Context, v interface{}) (*model.SearchWorkspaces, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputSearchWorkspaces(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) @@ -72040,6 +80840,27 @@ func (ec *executionContext) marshalOVolumeAttachmentPaginatedRecords2ᚖgithub return ec._VolumeAttachmentPaginatedRecords(ctx, sel, v) } +func (ec *executionContext) marshalOWorkmachine2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkmachine(ctx context.Context, sel ast.SelectionSet, v *entities.Workmachine) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Workmachine(ctx, sel, v) +} + +func (ec *executionContext) marshalOWorkspace2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐWorkspace(ctx context.Context, sel ast.SelectionSet, v *entities.Workspace) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Workspace(ctx, sel, v) +} + +func (ec *executionContext) marshalOWorkspacePaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐWorkspacePaginatedRecords(ctx context.Context, sel ast.SelectionSet, v *model.WorkspacePaginatedRecords) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._WorkspacePaginatedRecords(ctx, sel, v) +} + func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler { if v == nil { return graphql.Null diff --git a/apps/infra/internal/app/graph/model/models_gen.go b/apps/infra/internal/app/graph/model/models_gen.go index 4c87e09ad..ab124da4e 100644 --- a/apps/infra/internal/app/graph/model/models_gen.go +++ b/apps/infra/internal/app/graph/model/models_gen.go @@ -10,6 +10,7 @@ import ( "github.com/kloudlite/api/apps/infra/internal/entities" "github.com/kloudlite/api/pkg/repos" "github.com/kloudlite/operator/pkg/operator" + "github.com/kloudlite/operator/toolkit/reconciler" "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -227,11 +228,13 @@ type GithubComKloudliteOperatorApisClustersV1AWSCredentialsIn struct { } type GithubComKloudliteOperatorApisClustersV1AWSEC2PoolConfig struct { + Ami string `json:"ami"` InstanceType string `json:"instanceType"` Nodes map[string]interface{} `json:"nodes,omitempty"` } type GithubComKloudliteOperatorApisClustersV1AWSEC2PoolConfigIn struct { + Ami string `json:"ami"` InstanceType string `json:"instanceType"` Nodes map[string]interface{} `json:"nodes,omitempty"` } @@ -255,6 +258,7 @@ type GithubComKloudliteOperatorApisClustersV1AWSSpotGpuNodeIn struct { } type GithubComKloudliteOperatorApisClustersV1AWSSpotPoolConfig struct { + Ami string `json:"ami"` CPUNode *GithubComKloudliteOperatorApisClustersV1AWSSpotCPUNode `json:"cpuNode,omitempty"` GpuNode *GithubComKloudliteOperatorApisClustersV1AWSSpotGpuNode `json:"gpuNode,omitempty"` Nodes map[string]interface{} `json:"nodes,omitempty"` @@ -262,6 +266,7 @@ type GithubComKloudliteOperatorApisClustersV1AWSSpotPoolConfig struct { } type GithubComKloudliteOperatorApisClustersV1AWSSpotPoolConfigIn struct { + Ami string `json:"ami"` CPUNode *GithubComKloudliteOperatorApisClustersV1AWSSpotCPUNodeIn `json:"cpuNode,omitempty"` GpuNode *GithubComKloudliteOperatorApisClustersV1AWSSpotGpuNodeIn `json:"gpuNode,omitempty"` Nodes map[string]interface{} `json:"nodes,omitempty"` @@ -434,6 +439,79 @@ type GithubComKloudliteOperatorApisCommonTypesSecretRefIn struct { Namespace *string `json:"namespace,omitempty"` } +type GithubComKloudliteOperatorApisCrdsV1AWSMachineConfig struct { + Ami string `json:"ami"` + ExternalVolumeSize int `json:"externalVolumeSize"` + ExternalVolumeType string `json:"externalVolumeType"` + IamInstanceProfileRole *string `json:"iamInstanceProfileRole,omitempty"` + InstanceType string `json:"instanceType"` + RootVolumeSize int `json:"rootVolumeSize"` + RootVolumeType string `json:"rootVolumeType"` +} + +type GithubComKloudliteOperatorApisCrdsV1AWSMachineConfigIn struct { + Ami string `json:"ami"` + ExternalVolumeSize int `json:"externalVolumeSize"` + InstanceType string `json:"instanceType"` +} + +type GithubComKloudliteOperatorApisCrdsV1WorkMachineJobParams struct { + NodeSelector map[string]interface{} `json:"nodeSelector,omitempty"` + Tolerations []*K8sIoAPICoreV1Toleration `json:"tolerations,omitempty"` +} + +type GithubComKloudliteOperatorApisCrdsV1WorkMachineJobParamsIn struct { + NodeSelector map[string]interface{} `json:"nodeSelector,omitempty"` + Tolerations []*K8sIoAPICoreV1TolerationIn `json:"tolerations,omitempty"` +} + +type GithubComKloudliteOperatorApisCrdsV1WorkMachineSpec struct { + AWS *GithubComKloudliteOperatorApisCrdsV1AWSMachineConfig `json:"aws,omitempty"` + JobParams *GithubComKloudliteOperatorApisCrdsV1WorkMachineJobParams `json:"jobParams,omitempty"` + SSHPublicKeys []string `json:"sshPublicKeys"` + State GithubComKloudliteOperatorApisCrdsV1WorkMachineState `json:"state"` + TargetNamespace *string `json:"targetNamespace,omitempty"` +} + +type GithubComKloudliteOperatorApisCrdsV1WorkMachineSpecIn struct { + AWS *GithubComKloudliteOperatorApisCrdsV1AWSMachineConfigIn `json:"aws,omitempty"` + JobParams *GithubComKloudliteOperatorApisCrdsV1WorkMachineJobParamsIn `json:"jobParams,omitempty"` + SSHPublicKeys []string `json:"sshPublicKeys"` + State GithubComKloudliteOperatorApisCrdsV1WorkMachineState `json:"state"` + TargetNamespace *string `json:"targetNamespace,omitempty"` +} + +type GithubComKloudliteOperatorApisCrdsV1WorkMachineStatus struct { + MachineSSHKey *string `json:"machineSSHKey,omitempty"` + Status *reconciler.Status `json:"status,omitempty"` +} + +type GithubComKloudliteOperatorApisCrdsV1WorkMachineStatusIn struct { + MachineSSHKey *string `json:"machineSSHKey,omitempty"` + Status *GithubComKloudliteOperatorToolkitReconcilerStatusIn `json:"status,omitempty"` +} + +type GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec struct { + EnableCodeServer *bool `json:"enableCodeServer,omitempty"` + EnableJupyterNotebook *bool `json:"enableJupyterNotebook,omitempty"` + EnableTtyd *bool `json:"enableTTYD,omitempty"` + EnableVSCodeServer *bool `json:"enableVSCodeServer,omitempty"` + ImagePullPolicy *string `json:"imagePullPolicy,omitempty"` + ServiceAccountName *string `json:"serviceAccountName,omitempty"` + State GithubComKloudliteOperatorApisCrdsV1WorkspaceState `json:"state"` + WorkMachine string `json:"workMachine"` +} + +type GithubComKloudliteOperatorApisCrdsV1WorkspaceSpecIn struct { + EnableCodeServer *bool `json:"enableCodeServer,omitempty"` + EnableJupyterNotebook *bool `json:"enableJupyterNotebook,omitempty"` + EnableTtyd *bool `json:"enableTTYD,omitempty"` + EnableVSCodeServer *bool `json:"enableVSCodeServer,omitempty"` + ImagePullPolicy *string `json:"imagePullPolicy,omitempty"` + ServiceAccountName *string `json:"serviceAccountName,omitempty"` + State GithubComKloudliteOperatorApisCrdsV1WorkspaceState `json:"state"` +} + type GithubComKloudliteOperatorPkgOperatorCheckMeta struct { Debug *bool `json:"debug,omitempty"` Description *string `json:"description,omitempty"` @@ -467,6 +545,17 @@ type GithubComKloudliteOperatorToolkitReconcilerCheck struct { Status bool `json:"status"` } +type GithubComKloudliteOperatorToolkitReconcilerCheckIn struct { + Debug *string `json:"debug,omitempty"` + Error *string `json:"error,omitempty"` + Generation *int `json:"generation,omitempty"` + Info *string `json:"info,omitempty"` + Message *string `json:"message,omitempty"` + StartedAt *string `json:"startedAt,omitempty"` + State *GithubComKloudliteOperatorToolkitReconcilerState `json:"state,omitempty"` + Status bool `json:"status"` +} + type GithubComKloudliteOperatorToolkitReconcilerCheckMeta struct { Debug *bool `json:"debug,omitempty"` Description *string `json:"description,omitempty"` @@ -475,6 +564,14 @@ type GithubComKloudliteOperatorToolkitReconcilerCheckMeta struct { Title string `json:"title"` } +type GithubComKloudliteOperatorToolkitReconcilerCheckMetaIn struct { + Debug *bool `json:"debug,omitempty"` + Description *string `json:"description,omitempty"` + Hide *bool `json:"hide,omitempty"` + Name string `json:"name"` + Title string `json:"title"` +} + type GithubComKloudliteOperatorToolkitReconcilerResourceRef struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` @@ -482,6 +579,22 @@ type GithubComKloudliteOperatorToolkitReconcilerResourceRef struct { Namespace string `json:"namespace"` } +type GithubComKloudliteOperatorToolkitReconcilerResourceRefIn struct { + APIVersion string `json:"apiVersion"` + Kind string `json:"kind"` + Name string `json:"name"` + Namespace string `json:"namespace"` +} + +type GithubComKloudliteOperatorToolkitReconcilerStatusIn struct { + CheckList []*GithubComKloudliteOperatorToolkitReconcilerCheckMetaIn `json:"checkList,omitempty"` + Checks map[string]interface{} `json:"checks,omitempty"` + IsReady bool `json:"isReady"` + LastReadyGeneration *int `json:"lastReadyGeneration,omitempty"` + LastReconcileTime *string `json:"lastReconcileTime,omitempty"` + Resources []*GithubComKloudliteOperatorToolkitReconcilerResourceRefIn `json:"resources,omitempty"` +} + type GlobalVPNDeviceEdge struct { Cursor string `json:"cursor"` Node *entities.GlobalVPNDevice `json:"node"` @@ -1116,6 +1229,22 @@ type K8sIoAPICoreV1TaintIn struct { Value *string `json:"value,omitempty"` } +type K8sIoAPICoreV1Toleration struct { + Effect *K8sIoAPICoreV1TaintEffect `json:"effect,omitempty"` + Key *string `json:"key,omitempty"` + Operator *K8sIoAPICoreV1TolerationOperator `json:"operator,omitempty"` + TolerationSeconds *int `json:"tolerationSeconds,omitempty"` + Value *string `json:"value,omitempty"` +} + +type K8sIoAPICoreV1TolerationIn struct { + Effect *K8sIoAPICoreV1TaintEffect `json:"effect,omitempty"` + Key *string `json:"key,omitempty"` + Operator *K8sIoAPICoreV1TolerationOperator `json:"operator,omitempty"` + TolerationSeconds *int `json:"tolerationSeconds,omitempty"` + Value *string `json:"value,omitempty"` +} + type K8sIoAPICoreV1TypedLocalObjectReference struct { APIGroup *string `json:"apiGroup,omitempty"` Kind string `json:"kind"` @@ -1372,6 +1501,14 @@ type SearchVolumeAttachments struct { Text *repos.MatchFilter `json:"text,omitempty"` } +type SearchWorkmachines struct { + Text *repos.MatchFilter `json:"text,omitempty"` +} + +type SearchWorkspaces struct { + Text *repos.MatchFilter `json:"text,omitempty"` +} + type VolumeAttachmentEdge struct { Cursor string `json:"cursor"` Node *entities.VolumeAttachment `json:"node"` @@ -1383,6 +1520,28 @@ type VolumeAttachmentPaginatedRecords struct { TotalCount int `json:"totalCount"` } +type WorkmachineEdge struct { + Cursor string `json:"cursor"` + Node *entities.Workmachine `json:"node"` +} + +type WorkmachinePaginatedRecords struct { + Edges []*WorkmachineEdge `json:"edges"` + PageInfo *PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +type WorkspaceEdge struct { + Cursor string `json:"cursor"` + Node *entities.Workspace `json:"node"` +} + +type WorkspacePaginatedRecords struct { + Edges []*WorkspaceEdge `json:"edges"` + PageInfo *PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + type GithubComKloudliteAPIAppsInfraInternalEntitiesClusterVisibilityMode string const ( @@ -1595,6 +1754,7 @@ const ( GithubComKloudliteOperatorApisCommonTypesCloudProviderAzure GithubComKloudliteOperatorApisCommonTypesCloudProvider = "azure" GithubComKloudliteOperatorApisCommonTypesCloudProviderDigitalocean GithubComKloudliteOperatorApisCommonTypesCloudProvider = "digitalocean" GithubComKloudliteOperatorApisCommonTypesCloudProviderGCP GithubComKloudliteOperatorApisCommonTypesCloudProvider = "gcp" + GithubComKloudliteOperatorApisCommonTypesCloudProviderUnknown GithubComKloudliteOperatorApisCommonTypesCloudProvider = "unknown" ) var AllGithubComKloudliteOperatorApisCommonTypesCloudProvider = []GithubComKloudliteOperatorApisCommonTypesCloudProvider{ @@ -1602,11 +1762,12 @@ var AllGithubComKloudliteOperatorApisCommonTypesCloudProvider = []GithubComKloud GithubComKloudliteOperatorApisCommonTypesCloudProviderAzure, GithubComKloudliteOperatorApisCommonTypesCloudProviderDigitalocean, GithubComKloudliteOperatorApisCommonTypesCloudProviderGCP, + GithubComKloudliteOperatorApisCommonTypesCloudProviderUnknown, } func (e GithubComKloudliteOperatorApisCommonTypesCloudProvider) IsValid() bool { switch e { - case GithubComKloudliteOperatorApisCommonTypesCloudProviderAWS, GithubComKloudliteOperatorApisCommonTypesCloudProviderAzure, GithubComKloudliteOperatorApisCommonTypesCloudProviderDigitalocean, GithubComKloudliteOperatorApisCommonTypesCloudProviderGCP: + case GithubComKloudliteOperatorApisCommonTypesCloudProviderAWS, GithubComKloudliteOperatorApisCommonTypesCloudProviderAzure, GithubComKloudliteOperatorApisCommonTypesCloudProviderDigitalocean, GithubComKloudliteOperatorApisCommonTypesCloudProviderGCP, GithubComKloudliteOperatorApisCommonTypesCloudProviderUnknown: return true } return false @@ -1633,6 +1794,88 @@ func (e GithubComKloudliteOperatorApisCommonTypesCloudProvider) MarshalGQL(w io. fmt.Fprint(w, strconv.Quote(e.String())) } +type GithubComKloudliteOperatorApisCrdsV1WorkMachineState string + +const ( + GithubComKloudliteOperatorApisCrdsV1WorkMachineStateOff GithubComKloudliteOperatorApisCrdsV1WorkMachineState = "OFF" + GithubComKloudliteOperatorApisCrdsV1WorkMachineStateOn GithubComKloudliteOperatorApisCrdsV1WorkMachineState = "ON" +) + +var AllGithubComKloudliteOperatorApisCrdsV1WorkMachineState = []GithubComKloudliteOperatorApisCrdsV1WorkMachineState{ + GithubComKloudliteOperatorApisCrdsV1WorkMachineStateOff, + GithubComKloudliteOperatorApisCrdsV1WorkMachineStateOn, +} + +func (e GithubComKloudliteOperatorApisCrdsV1WorkMachineState) IsValid() bool { + switch e { + case GithubComKloudliteOperatorApisCrdsV1WorkMachineStateOff, GithubComKloudliteOperatorApisCrdsV1WorkMachineStateOn: + return true + } + return false +} + +func (e GithubComKloudliteOperatorApisCrdsV1WorkMachineState) String() string { + return string(e) +} + +func (e *GithubComKloudliteOperatorApisCrdsV1WorkMachineState) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = GithubComKloudliteOperatorApisCrdsV1WorkMachineState(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid Github__com___kloudlite___operator___apis___crds___v1__WorkMachineState", str) + } + return nil +} + +func (e GithubComKloudliteOperatorApisCrdsV1WorkMachineState) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type GithubComKloudliteOperatorApisCrdsV1WorkspaceState string + +const ( + GithubComKloudliteOperatorApisCrdsV1WorkspaceStateOff GithubComKloudliteOperatorApisCrdsV1WorkspaceState = "OFF" + GithubComKloudliteOperatorApisCrdsV1WorkspaceStateOn GithubComKloudliteOperatorApisCrdsV1WorkspaceState = "ON" +) + +var AllGithubComKloudliteOperatorApisCrdsV1WorkspaceState = []GithubComKloudliteOperatorApisCrdsV1WorkspaceState{ + GithubComKloudliteOperatorApisCrdsV1WorkspaceStateOff, + GithubComKloudliteOperatorApisCrdsV1WorkspaceStateOn, +} + +func (e GithubComKloudliteOperatorApisCrdsV1WorkspaceState) IsValid() bool { + switch e { + case GithubComKloudliteOperatorApisCrdsV1WorkspaceStateOff, GithubComKloudliteOperatorApisCrdsV1WorkspaceStateOn: + return true + } + return false +} + +func (e GithubComKloudliteOperatorApisCrdsV1WorkspaceState) String() string { + return string(e) +} + +func (e *GithubComKloudliteOperatorApisCrdsV1WorkspaceState) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = GithubComKloudliteOperatorApisCrdsV1WorkspaceState(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid Github__com___kloudlite___operator___apis___crds___v1__WorkspaceState", str) + } + return nil +} + +func (e GithubComKloudliteOperatorApisCrdsV1WorkspaceState) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + type GithubComKloudliteOperatorPkgOperatorState string const ( @@ -2171,6 +2414,47 @@ func (e K8sIoAPICoreV1TaintEffect) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +type K8sIoAPICoreV1TolerationOperator string + +const ( + K8sIoAPICoreV1TolerationOperatorEqual K8sIoAPICoreV1TolerationOperator = "Equal" + K8sIoAPICoreV1TolerationOperatorExists K8sIoAPICoreV1TolerationOperator = "Exists" +) + +var AllK8sIoAPICoreV1TolerationOperator = []K8sIoAPICoreV1TolerationOperator{ + K8sIoAPICoreV1TolerationOperatorEqual, + K8sIoAPICoreV1TolerationOperatorExists, +} + +func (e K8sIoAPICoreV1TolerationOperator) IsValid() bool { + switch e { + case K8sIoAPICoreV1TolerationOperatorEqual, K8sIoAPICoreV1TolerationOperatorExists: + return true + } + return false +} + +func (e K8sIoAPICoreV1TolerationOperator) String() string { + return string(e) +} + +func (e *K8sIoAPICoreV1TolerationOperator) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = K8sIoAPICoreV1TolerationOperator(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid K8s__io___api___core___v1__TolerationOperator", str) + } + return nil +} + +func (e K8sIoAPICoreV1TolerationOperator) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + type K8sIoApimachineryPkgAPIResourceFormat string const ( diff --git a/apps/infra/internal/app/graph/node.resolvers.go b/apps/infra/internal/app/graph/node.resolvers.go index 03b8871cb..d8d5db86e 100644 --- a/apps/infra/internal/app/graph/node.resolvers.go +++ b/apps/infra/internal/app/graph/node.resolvers.go @@ -6,7 +6,6 @@ package graph import ( "context" - "fmt" "github.com/kloudlite/api/pkg/errors" "time" @@ -42,11 +41,6 @@ func (r *nodeResolver) Spec(ctx context.Context, obj *entities.Node) (*model.Git return &m, nil } -// Status is the resolver for the status field. -func (r *nodeResolver) Status(ctx context.Context, obj *entities.Node) (*model.GithubComKloudliteOperatorPkgOperatorStatus, error) { - panic(fmt.Errorf("not implemented: Status - status")) -} - // UpdateTime is the resolver for the updateTime field. func (r *nodeResolver) UpdateTime(ctx context.Context, obj *entities.Node) (string, error) { if obj == nil || obj.UpdateTime.IsZero() { diff --git a/apps/infra/internal/app/graph/schema.graphqls b/apps/infra/internal/app/graph/schema.graphqls index 58ab2e01c..593a0d86f 100644 --- a/apps/infra/internal/app/graph/schema.graphqls +++ b/apps/infra/internal/app/graph/schema.graphqls @@ -71,6 +71,14 @@ input SearchVolumeAttachments { text: MatchFilterIn } +input SearchWorkspaces { + text: MatchFilterIn +} + +input SearchWorkmachines { + text: MatchFilterIn +} + type CheckAwsAccessOutput { result: Boolean! installationUrl: String @@ -129,6 +137,13 @@ type Query { infra_listVolumeAttachments(clusterName: String!, search: SearchVolumeAttachments, pq: CursorPaginationIn): VolumeAttachmentPaginatedRecords @isLoggedInAndVerified @hasAccount infra_getVolumeAttachment(clusterName: String!, name: String!): VolumeAttachment @isLoggedInAndVerified @hasAccount + + # Workspaces + infra_listWorkspaces(workmachineName: String!, clusterName: String!,search: SearchWorkspaces, pagination: CursorPaginationIn): WorkspacePaginatedRecords @isLoggedInAndVerified @hasAccount + infra_getWorkspace(workmachineName: String!,clusterName: String!,name: String!): Workspace @isLoggedInAndVerified @hasAccount + + # Workmachine + infra_getWorkmachine(clusterName: String!, name: String!): Workmachine @isLoggedInAndVerified @hasAccount } type Mutation { @@ -169,6 +184,17 @@ type Mutation { # infra_deleteHelmRelease(clusterName: String!, releaseName: String!): Boolean! @isLoggedInAndVerified @hasAccount infra_deletePV(clusterName: String!, pvName: String!): Boolean! @isLoggedInAndVerified @hasAccount + + # Workspaces + infra_createWorkspace(workmachineName: String!, clusterName: String!, workspace: WorkspaceIn!): Workspace @isLoggedInAndVerified @hasAccount + infra_updateWorkspace(workmachineName: String!, clusterName: String!, workspace: WorkspaceIn!): Workspace @isLoggedInAndVerified @hasAccount + infra_deleteWorkspace(workmachineName: String!, clusterName: String!, name: String!): Boolean! @isLoggedInAndVerified @hasAccount + infra_updateWorkspaceStatus(workmachineName: String!, clusterName: String!, status: Boolean!, name: String!): Boolean! @isLoggedInAndVerified @hasAccount + + # Workmachine + infra_createWorkMachine(clusterName: String!, workmachine: WorkmachineIn!): Workmachine @isLoggedInAndVerified @hasAccount + infra_updateWorkMachine(clusterName: String!, workmachine: WorkmachineIn!): Workmachine @isLoggedInAndVerified @hasAccount + infra_updateWorkMachineStatus(clusterName: String!, status: Boolean!, name: String!): Boolean! @isLoggedInAndVerified @hasAccount } type EncodedValue { diff --git a/apps/infra/internal/app/graph/schema.resolvers.go b/apps/infra/internal/app/graph/schema.resolvers.go index e5e7fda95..8843313d7 100644 --- a/apps/infra/internal/app/graph/schema.resolvers.go +++ b/apps/infra/internal/app/graph/schema.resolvers.go @@ -7,7 +7,9 @@ package graph import ( "context" "encoding/base64" + "encoding/json" "fmt" + "github.com/kloudlite/api/pkg/errors" "github.com/kloudlite/api/apps/infra/internal/app/graph/generated" @@ -301,6 +303,76 @@ func (r *mutationResolver) InfraDeletePv(ctx context.Context, clusterName string return true, nil } +// InfraCreateWorkspace is the resolver for the infra_createWorkspace field. +func (r *mutationResolver) InfraCreateWorkspace(ctx context.Context, workmachineName string, clusterName string, workspace entities.Workspace) (*entities.Workspace, error) { + ictx, err := toInfraContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } + return r.Domain.CreateWorkspace(ictx, workmachineName, clusterName, workspace) +} + +// InfraUpdateWorkspace is the resolver for the infra_updateWorkspace field. +func (r *mutationResolver) InfraUpdateWorkspace(ctx context.Context, workmachineName string, clusterName string, workspace entities.Workspace) (*entities.Workspace, error) { + ictx, err := toInfraContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } + + return r.Domain.UpdateWorkspace(ictx, workmachineName, clusterName, workspace) +} + +// InfraDeleteWorkspace is the resolver for the infra_deleteWorkspace field. +func (r *mutationResolver) InfraDeleteWorkspace(ctx context.Context, workmachineName string, clusterName string, name string) (bool, error) { + ictx, err := toInfraContext(ctx) + if err != nil { + return false, errors.NewE(err) + } + if err := r.Domain.DeleteWorkspace(ictx, workmachineName, clusterName, name); err != nil { + return false, errors.NewE(err) + } + return true, nil +} + +// InfraUpdateWorkspaceStatus is the resolver for the infra_updateWorkspaceStatus field. +func (r *mutationResolver) InfraUpdateWorkspaceStatus(ctx context.Context, workmachineName string, clusterName string, status bool, name string) (bool, error) { + ictx, err := toInfraContext(ctx) + if err != nil { + return false, errors.NewE(err) + } + return r.Domain.UpdateWorkspaceStatus(ictx, workmachineName, clusterName, status, name) +} + +// InfraCreateWorkMachine is the resolver for the infra_createWorkMachine field. +func (r *mutationResolver) InfraCreateWorkMachine(ctx context.Context, clusterName string, workmachine entities.Workmachine) (*entities.Workmachine, error) { + ictx, err := toInfraContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } + // For temporary purpose, we are hardcoding the cluster name + workmachine.ClusterName = "tenant-cluster" + return r.Domain.CreateWorkMachine(ictx, clusterName, workmachine) +} + +// InfraUpdateWorkMachine is the resolver for the infra_updateWorkMachine field. +func (r *mutationResolver) InfraUpdateWorkMachine(ctx context.Context, clusterName string, workmachine entities.Workmachine) (*entities.Workmachine, error) { + ictx, err := toInfraContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } + + return r.Domain.UpdateWorkMachine(ictx, clusterName, workmachine) +} + +// InfraUpdateWorkMachineStatus is the resolver for the infra_updateWorkMachineStatus field. +func (r *mutationResolver) InfraUpdateWorkMachineStatus(ctx context.Context, clusterName string, status bool, name string) (bool, error) { + ictx, err := toInfraContext(ctx) + if err != nil { + return false, errors.NewE(err) + } + return r.Domain.UpdateWorkmachineStatus(ictx, clusterName, status, name) +} + // InfraCheckNameAvailability is the resolver for the infra_checkNameAvailability field. func (r *queryResolver) InfraCheckNameAvailability(ctx context.Context, resType domain.ResType, clusterName *string, name string) (*domain.CheckNameAvailabilityOutput, error) { ictx, err := toInfraContext(ctx) @@ -403,8 +475,8 @@ func (r *queryResolver) InfraListBYOKClusters(ctx context.Context, search *model if err != nil { return nil, errors.NewE(err) } - - return fn.JsonConvertP[model.BYOKClusterPaginatedRecords](globalVPNs) + res, err := fn.JsonConvertP[model.BYOKClusterPaginatedRecords](globalVPNs) + return res, err } // InfraGetBYOKCluster is the resolver for the infra_getBYOKCluster field. @@ -639,7 +711,8 @@ func (r *queryResolver) InfraCheckAWSAccess(ctx context.Context, cloudproviderNa // InfraListManagedServiceTemplates is the resolver for the infra_listManagedServiceTemplates field. func (r *queryResolver) InfraListManagedServiceTemplates(ctx context.Context) ([]*entities.MsvcTemplate, error) { - return r.Domain.ListManagedSvcTemplates() + data, err := r.Domain.ListManagedSvcTemplates() + return data, err } // InfraGetManagedServiceTemplate is the resolver for the infra_getManagedServiceTemplate field. @@ -772,6 +845,55 @@ func (r *queryResolver) InfraGetVolumeAttachment(ctx context.Context, clusterNam return r.Domain.GetVolumeAttachment(cc, clusterName, name) } +// InfraListWorkspaces is the resolver for the infra_listWorkspaces field. +func (r *queryResolver) InfraListWorkspaces(ctx context.Context, workmachineName string, clusterName string, search *model.SearchWorkspaces, pagination *repos.CursorPagination) (*model.WorkspacePaginatedRecords, error) { + ictx, err := toInfraContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } + + if pagination == nil { + pagination = &repos.DefaultCursorPagination + } + + filter := map[string]repos.MatchFilter{} + + if search != nil { + if search.Text != nil { + filter["name"] = *search.Text + } + } + + pWorkspaces, err := r.Domain.ListWorkspaces(ictx, workmachineName, clusterName, filter, *pagination) + if err != nil { + return nil, errors.NewE(err) + } + d, _ := fn.JsonConvertP[model.WorkspacePaginatedRecords](pWorkspaces) + data, err := json.Marshal(d) + fmt.Println("pWorkspaces", string(data)) + return d, err +} + +// InfraGetWorkspace is the resolver for the infra_getWorkspace field. +func (r *queryResolver) InfraGetWorkspace(ctx context.Context, workmachineName string, clusterName string, name string) (*entities.Workspace, error) { + ictx, err := toInfraContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } + + return r.Domain.GetWorkspace(ictx, workmachineName, clusterName, name) +} + +// InfraGetWorkmachine is the resolver for the infra_getWorkmachine field. +func (r *queryResolver) InfraGetWorkmachine(ctx context.Context, clusterName string, name string) (*entities.Workmachine, error) { + fmt.Println("HERE") + ictx, err := toInfraContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } + return r.Domain.GetWorkmachine(ictx, "tenant-cluster", name) +} + // Mutation returns generated.MutationResolver implementation. func (r *Resolver) Mutation() generated.MutationResolver { return &mutationResolver{r} } diff --git a/apps/infra/internal/app/graph/struct-to-graphql/common-types.graphqls b/apps/infra/internal/app/graph/struct-to-graphql/common-types.graphqls index 132cb455d..ff14b8867 100644 --- a/apps/infra/internal/app/graph/struct-to-graphql/common-types.graphqls +++ b/apps/infra/internal/app/graph/struct-to-graphql/common-types.graphqls @@ -129,6 +129,7 @@ type Github__com___kloudlite___operator___apis___clusters___v1__AwsCredentials @ } type Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig @shareable { + ami: String! instanceType: String! nodes: Map } @@ -143,6 +144,7 @@ type Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNode @ } type Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig @shareable { + ami: String! cpuNode: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotCpuNode gpuNode: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNode nodes: Map @@ -269,6 +271,45 @@ type Github__com___kloudlite___operator___apis___common____types__SecretRef @sha namespace: String } +type Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig @shareable { + ami: String! + externalVolumeSize: Int! + externalVolumeType: String! + iamInstanceProfileRole: String + instanceType: String! + rootVolumeSize: Int! + rootVolumeType: String! +} + +type Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams @shareable { + nodeSelector: Map + tolerations: [K8s__io___api___core___v1__Toleration!] +} + +type Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec @shareable { + aws: Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfig + jobParams: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParams + sshPublicKeys: [String!]! + state: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineState! + targetNamespace: String +} + +type Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus @shareable { + machineSSHKey: String + status: Github__com___kloudlite___operator___toolkit___reconciler__Status +} + +type Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec @shareable { + enableCodeServer: Boolean + enableJupyterNotebook: Boolean + enableTTYD: Boolean + enableVSCodeServer: Boolean + imagePullPolicy: String + serviceAccountName: String + state: Github__com___kloudlite___operator___apis___crds___v1__WorkspaceState! + workMachine: String! +} + type Github__com___kloudlite___operator___pkg___operator__Check @shareable { debug: String error: String @@ -645,6 +686,14 @@ type K8s__io___api___core___v1__Taint @shareable { value: String } +type K8s__io___api___core___v1__Toleration @shareable { + effect: K8s__io___api___core___v1__TaintEffect + key: String + operator: K8s__io___api___core___v1__TolerationOperator + tolerationSeconds: Int + value: String +} + type K8s__io___api___core___v1__TypedLocalObjectReference @shareable { apiGroup: String kind: String! @@ -777,6 +826,7 @@ input Github__com___kloudlite___operator___apis___clusters___v1__AwsCredentialsI } input Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfigIn { + ami: String! instanceType: String! nodes: Map } @@ -791,6 +841,7 @@ input Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNodeI } input Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfigIn { + ami: String! cpuNode: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotCpuNodeIn gpuNode: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNodeIn nodes: Map @@ -843,6 +894,75 @@ input Github__com___kloudlite___operator___apis___common____types__SecretRefIn { namespace: String } +input Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfigIn { + ami: String! + externalVolumeSize: Int! + instanceType: String! +} + +input Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParamsIn { + nodeSelector: Map + tolerations: [K8s__io___api___core___v1__TolerationIn!] +} + +input Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpecIn { + aws: Github__com___kloudlite___operator___apis___crds___v1__AWSMachineConfigIn + jobParams: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineJobParamsIn + sshPublicKeys: [String!]! + state: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineState! + targetNamespace: String +} + +input Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatusIn { + machineSSHKey: String + status: Github__com___kloudlite___operator___toolkit___reconciler__StatusIn +} + +input Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpecIn { + enableCodeServer: Boolean + enableJupyterNotebook: Boolean + enableTTYD: Boolean + enableVSCodeServer: Boolean + imagePullPolicy: String + serviceAccountName: String + state: Github__com___kloudlite___operator___apis___crds___v1__WorkspaceState! +} + +input Github__com___kloudlite___operator___toolkit___reconciler__CheckIn { + debug: String + error: String + generation: Int + info: String + message: String + startedAt: Date + state: Github__com___kloudlite___operator___toolkit___reconciler__State + status: Boolean! +} + +input Github__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn { + debug: Boolean + description: String + hide: Boolean + name: String! + title: String! +} + +input Github__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn { + apiVersion: String! + kind: String! + name: String! + namespace: String! +} + +input Github__com___kloudlite___operator___toolkit___reconciler__StatusIn { + checkList: [Github__com___kloudlite___operator___toolkit___reconciler__CheckMetaIn!] + checks: Map + isReady: Boolean! + lastReadyGeneration: Int + lastReconcileTime: Date + resources: [Github__com___kloudlite___operator___toolkit___reconciler__ResourceRefIn!] +} + input K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSourceIn { fsType: String partition: Int @@ -1144,6 +1264,14 @@ input K8s__io___api___core___v1__TaintIn { value: String } +input K8s__io___api___core___v1__TolerationIn { + 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__TypedLocalObjectReferenceIn { apiGroup: String kind: String! @@ -1270,6 +1398,17 @@ enum Github__com___kloudlite___operator___apis___common____types__CloudProvider azure digitalocean gcp + unknown +} + +enum Github__com___kloudlite___operator___apis___crds___v1__WorkMachineState { + OFF + ON +} + +enum Github__com___kloudlite___operator___apis___crds___v1__WorkspaceState { + OFF + ON } enum Github__com___kloudlite___operator___pkg___operator__State { @@ -1355,6 +1494,11 @@ enum K8s__io___api___core___v1__TaintEffect { PreferNoSchedule } +enum K8s__io___api___core___v1__TolerationOperator { + Equal + Exists +} + enum K8s__io___apimachinery___pkg___api___resource__Format { BinarySI DecimalExponent diff --git a/apps/infra/internal/app/graph/struct-to-graphql/node.graphqls b/apps/infra/internal/app/graph/struct-to-graphql/node.graphqls index 5d85f4427..7dc1eb151 100644 --- a/apps/infra/internal/app/graph/struct-to-graphql/node.graphqls +++ b/apps/infra/internal/app/graph/struct-to-graphql/node.graphqls @@ -9,7 +9,7 @@ type Node @shareable { metadata: Metadata @goField(name: "objectMeta") recordVersion: Int! spec: Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec! - status: Github__com___kloudlite___operator___pkg___operator__Status + status: Github__com___kloudlite___operator___toolkit___reconciler__Status syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! updateTime: Date! } diff --git a/apps/infra/internal/app/graph/struct-to-graphql/workmachine.graphqls b/apps/infra/internal/app/graph/struct-to-graphql/workmachine.graphqls new file mode 100644 index 000000000..1fd8852d1 --- /dev/null +++ b/apps/infra/internal/app/graph/struct-to-graphql/workmachine.graphqls @@ -0,0 +1,40 @@ +type Workmachine @shareable { + accountName: String! + apiVersion: String + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + dispatchAddr: Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata @goField(name: "objectMeta") + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpec + status: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatus + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type WorkmachineEdge @shareable { + cursor: String! + node: Workmachine! +} + +type WorkmachinePaginatedRecords @shareable { + edges: [WorkmachineEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +input WorkmachineIn { + apiVersion: String + displayName: String! + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineSpecIn + status: Github__com___kloudlite___operator___apis___crds___v1__WorkMachineStatusIn +} + diff --git a/apps/infra/internal/app/graph/struct-to-graphql/workspace.graphqls b/apps/infra/internal/app/graph/struct-to-graphql/workspace.graphqls new file mode 100644 index 000000000..a9de842bd --- /dev/null +++ b/apps/infra/internal/app/graph/struct-to-graphql/workspace.graphqls @@ -0,0 +1,41 @@ +type Workspace @shareable { + accountName: String! + apiVersion: String + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + dispatchAddr: Github__com___kloudlite___api___apps___infra___internal___entities__DispatchAddr + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata @goField(name: "objectMeta") + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpec + status: Github__com___kloudlite___operator___toolkit___reconciler__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! + workmachineName: String! +} + +type WorkspaceEdge @shareable { + cursor: String! + node: Workspace! +} + +type WorkspacePaginatedRecords @shareable { + edges: [WorkspaceEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +input WorkspaceIn { + apiVersion: String + displayName: String! + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___crds___v1__WorkspaceSpecIn + status: Github__com___kloudlite___operator___toolkit___reconciler__StatusIn +} + diff --git a/apps/infra/internal/app/graph/workmachine.resolvers.go b/apps/infra/internal/app/graph/workmachine.resolvers.go new file mode 100644 index 000000000..2d0884eb6 --- /dev/null +++ b/apps/infra/internal/app/graph/workmachine.resolvers.go @@ -0,0 +1,99 @@ +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.55 + +import ( + "context" + "fmt" + "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" +) + +// CreationTime is the resolver for the creationTime field. +func (r *workmachineResolver) CreationTime(ctx context.Context, obj *entities.Workmachine) (string, error) { + if obj == nil { + return "", errors.Newf("workmachine obj is nil") + } + return obj.CreationTime.Format(time.RFC3339), nil +} + +// DispatchAddr is the resolver for the dispatchAddr field. +func (r *workmachineResolver) DispatchAddr(ctx context.Context, obj *entities.Workmachine) (*model.GithubComKloudliteAPIAppsInfraInternalEntitiesDispatchAddr, error) { + panic(fmt.Errorf("not implemented: DispatchAddr - dispatchAddr")) +} + +// ID is the resolver for the id field. +func (r *workmachineResolver) ID(ctx context.Context, obj *entities.Workmachine) (repos.ID, error) { + if obj == nil { + return "", errors.Newf("workmachine obj is nil") + } + return obj.Id, nil +} + +// Spec is the resolver for the spec field. +func (r *workmachineResolver) Spec(ctx context.Context, obj *entities.Workmachine) (*model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpec, error) { + var m model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpec + if err := fn.JsonConversion(obj.Spec, &m); err != nil { + return nil, errors.NewE(err) + } + return &m, nil +} + +// Status is the resolver for the status field. +func (r *workmachineResolver) Status(ctx context.Context, obj *entities.Workmachine) (*model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatus, error) { + var m model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatus + if err := fn.JsonConversion(obj.Status, &m); err != nil { + return nil, errors.NewE(err) + } + return &m, nil +} + +// UpdateTime is the resolver for the updateTime field. +func (r *workmachineResolver) UpdateTime(ctx context.Context, obj *entities.Workmachine) (string, error) { + if obj == nil || obj.UpdateTime.IsZero() { + return "", errors.Newf("workmachine is nil") + } + return obj.UpdateTime.Format(time.RFC3339), nil +} + +// Metadata is the resolver for the metadata field. +func (r *workmachineInResolver) Metadata(ctx context.Context, obj *entities.Workmachine, data *v1.ObjectMeta) error { + if obj == nil { + return errors.Newf("workmachine is nil") + } + return fn.JsonConversion(data, &obj.ObjectMeta) +} + +// Spec is the resolver for the spec field. +func (r *workmachineInResolver) Spec(ctx context.Context, obj *entities.Workmachine, data *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineSpecIn) error { + if obj == nil { + return nil + } + return fn.JsonConversion(data, &obj.Spec) +} + +// Status is the resolver for the status field. +func (r *workmachineInResolver) Status(ctx context.Context, obj *entities.Workmachine, data *model.GithubComKloudliteOperatorApisCrdsV1WorkMachineStatusIn) error { + if obj == nil { + return errors.Newf("workmachine is nil") + } + return fn.JsonConversion(data, &obj.Status) +} + +// Workmachine returns generated.WorkmachineResolver implementation. +func (r *Resolver) Workmachine() generated.WorkmachineResolver { return &workmachineResolver{r} } + +// WorkmachineIn returns generated.WorkmachineInResolver implementation. +func (r *Resolver) WorkmachineIn() generated.WorkmachineInResolver { return &workmachineInResolver{r} } + +type workmachineResolver struct{ *Resolver } +type workmachineInResolver struct{ *Resolver } diff --git a/apps/infra/internal/app/graph/workspace.resolvers.go b/apps/infra/internal/app/graph/workspace.resolvers.go new file mode 100644 index 000000000..22a9cad0f --- /dev/null +++ b/apps/infra/internal/app/graph/workspace.resolvers.go @@ -0,0 +1,95 @@ +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.55 + +import ( + "context" + "fmt" + "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" +) + +// CreationTime is the resolver for the creationTime field. +func (r *workspaceResolver) CreationTime(ctx context.Context, obj *entities.Workspace) (string, error) { + if obj == nil { + return "", errors.Newf("workspace obj is nil") + } + return obj.CreationTime.Format(time.RFC3339), nil +} + +// DispatchAddr is the resolver for the dispatchAddr field. +func (r *workspaceResolver) DispatchAddr(ctx context.Context, obj *entities.Workspace) (*model.GithubComKloudliteAPIAppsInfraInternalEntitiesDispatchAddr, error) { + panic(fmt.Errorf("not implemented: DispatchAddr - dispatchAddr")) +} + +// ID is the resolver for the id field. +func (r *workspaceResolver) ID(ctx context.Context, obj *entities.Workspace) (repos.ID, error) { + if obj == nil { + return "", errors.Newf("workspace obj is nil") + } + return obj.Id, nil +} + +// Spec is the resolver for the spec field. +func (r *workspaceResolver) Spec(ctx context.Context, obj *entities.Workspace) (*model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec, error) { + var m model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpec + if err := fn.JsonConversion(obj.Spec, &m); err != nil { + return nil, errors.NewE(err) + } + return &m, nil +} + +// UpdateTime is the resolver for the updateTime field. +func (r *workspaceResolver) UpdateTime(ctx context.Context, obj *entities.Workspace) (string, error) { + if obj == nil || obj.UpdateTime.IsZero() { + return "", errors.Newf("workspace is nil") + } + return obj.UpdateTime.Format(time.RFC3339), nil +} + +// WorkmachineName is the resolver for the workmachineName field. +func (r *workspaceResolver) WorkmachineName(ctx context.Context, obj *entities.Workspace) (string, error) { + panic(fmt.Errorf("not implemented: WorkmachineName - workmachineName")) +} + +// Metadata is the resolver for the metadata field. +func (r *workspaceInResolver) Metadata(ctx context.Context, obj *entities.Workspace, data *v1.ObjectMeta) error { + if obj == nil { + return errors.Newf("workspace is nil") + } + return fn.JsonConversion(data, &obj.ObjectMeta) +} + +// Spec is the resolver for the spec field. +func (r *workspaceInResolver) Spec(ctx context.Context, obj *entities.Workspace, data *model.GithubComKloudliteOperatorApisCrdsV1WorkspaceSpecIn) error { + if obj == nil { + return nil + } + return fn.JsonConversion(data, &obj.Spec) +} + +// Status is the resolver for the status field. +func (r *workspaceInResolver) Status(ctx context.Context, obj *entities.Workspace, data *model.GithubComKloudliteOperatorToolkitReconcilerStatusIn) error { + if obj == nil { + return errors.Newf("workspace is nil") + } + return fn.JsonConversion(data, &obj.Status) +} + +// Workspace returns generated.WorkspaceResolver implementation. +func (r *Resolver) Workspace() generated.WorkspaceResolver { return &workspaceResolver{r} } + +// WorkspaceIn returns generated.WorkspaceInResolver implementation. +func (r *Resolver) WorkspaceIn() generated.WorkspaceInResolver { return &workspaceInResolver{r} } + +type workspaceResolver struct{ *Resolver } +type workspaceInResolver struct{ *Resolver } diff --git a/apps/infra/internal/app/process-resource-updates.go b/apps/infra/internal/app/process-resource-updates.go index bc00b1bd3..cd4481520 100644 --- a/apps/infra/internal/app/process-resource-updates.go +++ b/apps/infra/internal/app/process-resource-updates.go @@ -45,6 +45,8 @@ var ( namespaceGVK = fn.GVK("v1", "Namespace") ingressGVK = fn.GVK("networking.k8s.io/v1", "Ingress") secretGVK = fn.GVK("v1", "Secret") + workspaceGVK = fn.GVK("crds.kloudlite.io/v1", "Workspace") + workmachineGVK = fn.GVK("crds.kloudlite.io/v1", "WorkMachine") ) func processResourceUpdates(consumer ReceiveResourceUpdatesConsumer, d domain.Domain, logger *slog.Logger) { @@ -222,6 +224,32 @@ func processResourceUpdates(consumer ReceiveResourceUpdatesConsumer, d domain.Do return d.OnVolumeAttachmentUpdateMessage(dctx, ru.ClusterName, volatt, resStatus, domain.UpdateAndDeleteOpts{MessageTimestamp: msg.Timestamp}) } + case workspaceGVK.String(): + { + var ws entities.Workspace + if err := fn.JsonConversion(su.Object, &ws); err != nil { + return errors.NewE(err) + } + + if resStatus == types.ResourceStatusDeleted { + return d.OnWorkspaceDeleteMessage(dctx, ru.ClusterName, ws) + } + return d.OnWorkspaceUpdateMessage(dctx, ru.ClusterName, ws, resStatus, domain.UpdateAndDeleteOpts{MessageTimestamp: msg.Timestamp}) + } + + case workmachineGVK.String(): + { + var wm entities.Workmachine + if err := fn.JsonConversion(su.Object, &wm); err != nil { + return errors.NewE(err) + } + + if resStatus == types.ResourceStatusDeleted { + return d.OnWorkmachineDeleteMessage(dctx, ru.ClusterName, wm) + } + return d.OnWorkmachineUpdateMessage(dctx, ru.ClusterName, wm, resStatus, domain.UpdateAndDeleteOpts{MessageTimestamp: msg.Timestamp}) + } + case namespaceGVK.String(): { var ns entities.Namespace diff --git a/apps/infra/internal/domain/api.go b/apps/infra/internal/domain/api.go index b2e180641..f87387070 100644 --- a/apps/infra/internal/domain/api.go +++ b/apps/infra/internal/domain/api.go @@ -49,6 +49,8 @@ const ( ResourceTypePVC ResourceType = "persistance_volume_claim" ResourceTypePV ResourceType = "persistance_volume" ResourceTypeVolumeAttachment ResourceType = "volume_attachment" + ResourceTypeWorkspace ResourceType = "workspace" + ResourceTypeWorkmachine ResourceType = "workmachine" ) type Domain interface { @@ -164,4 +166,24 @@ type Domain interface { GetVolumeAttachment(ctx InfraContext, clusterName string, volAttachmentName string) (*entities.VolumeAttachment, error) OnVolumeAttachmentUpdateMessage(ctx InfraContext, clusterName string, volumeAttachment entities.VolumeAttachment, status types.ResourceStatus, opts UpdateAndDeleteOpts) error OnVolumeAttachmentDeleteMessage(ctx InfraContext, clusterName string, volumeAttachment entities.VolumeAttachment) error + + // Workspace + ListWorkspaces(ctx InfraContext, workmachineName string, clusterName string, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.Workspace], error) + GetWorkspace(ctx InfraContext, workmachineName string, clusterName string, name string) (*entities.Workspace, error) + OnWorkspaceUpdateMessage(ctx InfraContext, clusterName string, workspace entities.Workspace, status types.ResourceStatus, opts UpdateAndDeleteOpts) error + OnWorkspaceDeleteMessage(ctx InfraContext, clusterName string, workspace entities.Workspace) error + + CreateWorkspace(ctx InfraContext, workmachineName string, clusterName string, workspace entities.Workspace) (*entities.Workspace, error) + UpdateWorkspace(ctx InfraContext, workmachineName string, clusterName string, workspace entities.Workspace) (*entities.Workspace, error) + DeleteWorkspace(ctx InfraContext, workmachineName string, clusterName string, name string) error + UpdateWorkspaceStatus(ctx InfraContext, workmachineName string, clusterName string, status bool, name string) (bool, error) + + // Workmachine + GetWorkmachine(ctx InfraContext, clusterName string, name string) (*entities.Workmachine, error) + OnWorkmachineUpdateMessage(ctx InfraContext, clusterName string, workmachine entities.Workmachine, status types.ResourceStatus, opts UpdateAndDeleteOpts) error + OnWorkmachineDeleteMessage(ctx InfraContext, clusterName string, workmachine entities.Workmachine) error + + CreateWorkMachine(ctx InfraContext, clusterName string, workmachine entities.Workmachine) (*entities.Workmachine, error) + UpdateWorkMachine(ctx InfraContext, clusterName string, workmachine entities.Workmachine) (*entities.Workmachine, error) + UpdateWorkmachineStatus(ctx InfraContext, clusterName string, status bool, name string) (bool, error) } diff --git a/apps/infra/internal/domain/domain.go b/apps/infra/internal/domain/domain.go index 3bda99566..0e5cde503 100644 --- a/apps/infra/internal/domain/domain.go +++ b/apps/infra/internal/domain/domain.go @@ -7,6 +7,7 @@ import ( "os" "strconv" + "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/auth" "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/console" "sigs.k8s.io/yaml" @@ -56,9 +57,12 @@ type domain struct { namespaceRepo repos.DbRepo[*entities.Namespace] pvRepo repos.DbRepo[*entities.PersistentVolume] volumeAttachmentRepo repos.DbRepo[*entities.VolumeAttachment] + workspaceRepo repos.DbRepo[*entities.Workspace] + workmachineRepo repos.DbRepo[*entities.Workmachine] iamClient iam.IAMClient consoleClient console.ConsoleClient + authClient auth.AuthClient accountsSvc AccountsSvc moSvc ports.MessageOfficeService resDispatcher ResourceDispatcher @@ -195,10 +199,13 @@ var Module = fx.Module("domain", pvRepo repos.DbRepo[*entities.PersistentVolume], namespaceRepo repos.DbRepo[*entities.Namespace], volumeAttachmentRepo repos.DbRepo[*entities.VolumeAttachment], + workspaceRepo repos.DbRepo[*entities.Workspace], + workmachineRepo repos.DbRepo[*entities.Workmachine], k8sClient k8s.Client, iamClient iam.IAMClient, + authClient auth.AuthClient, consoleClient console.ConsoleClient, accountsSvc AccountsSvc, moSvc ports.MessageOfficeService, @@ -260,6 +267,7 @@ var Module = fx.Module("domain", k8sClient: k8sClient, iamClient: iamClient, consoleClient: consoleClient, + authClient: authClient, accountsSvc: accountsSvc, moSvc: moSvc, resourceEventPublisher: resourceEventPublisher, @@ -268,6 +276,8 @@ var Module = fx.Module("domain", volumeAttachmentRepo: volumeAttachmentRepo, pvRepo: pvRepo, namespaceRepo: namespaceRepo, + workspaceRepo: workspaceRepo, + workmachineRepo: workmachineRepo, helmClient: helmClient, }, nil diff --git a/apps/infra/internal/domain/workmachine.go b/apps/infra/internal/domain/workmachine.go new file mode 100644 index 000000000..dc0bf5efe --- /dev/null +++ b/apps/infra/internal/domain/workmachine.go @@ -0,0 +1,253 @@ +package domain + +import ( + "github.com/kloudlite/api/apps/infra/internal/entities" + fc "github.com/kloudlite/api/apps/infra/internal/entities/field-constants" + "github.com/kloudlite/api/common" + "github.com/kloudlite/api/common/fields" + "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/auth" + "github.com/kloudlite/api/pkg/errors" + "github.com/kloudlite/api/pkg/repos" + klv1 "github.com/kloudlite/operator/apis/crds/v1" + "github.com/kloudlite/operator/operators/resource-watcher/types" + v1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +func (d *domain) applyWorkmachine(ctx InfraContext, wm *entities.Workmachine) error { + addTrackingId(&wm.WorkMachine, wm.Id) + err := d.resDispatcher.ApplyToTargetCluster(ctx, wm.DispatchAddr, &v1.Namespace{ + TypeMeta: metav1.TypeMeta{ + Kind: "Namespace", + APIVersion: "v1", + }, + ObjectMeta: metav1.ObjectMeta{ + Name: wm.Spec.TargetNamespace, + }, + }, wm.RecordVersion) + if err != nil { + return errors.NewE(err) + } + err = d.resDispatcher.ApplyToTargetCluster(ctx, wm.DispatchAddr, &v1.Secret{ + TypeMeta: metav1.TypeMeta{ + Kind: "Secret", + APIVersion: "v1", + }, + ObjectMeta: metav1.ObjectMeta{ + Name: "kl-session", + Namespace: wm.Spec.TargetNamespace, + }, + Data: map[string][]byte{ + "session-id": []byte(wm.SessionId), + }, + }, wm.RecordVersion) + if err != nil { + return errors.NewE(err) + } + return d.resDispatcher.ApplyToTargetCluster(ctx, wm.DispatchAddr, &wm.WorkMachine, wm.RecordVersion) +} + +func (d *domain) findWorkmachine(ctx InfraContext, clusterName string, name string) (*entities.Workmachine, error) { + wm, err := d.workmachineRepo.FindOne(ctx, repos.Filter{ + fc.AccountName: ctx.AccountName, + fc.MetadataName: name, + fc.ClusterName: clusterName, + }) + if err != nil { + return nil, errors.NewE(err) + } + // if wm == nil { + // return nil, errors.Newf("no workmachine for account=%q found", ctx.AccountName) + // } + return wm, nil +} + +func (d *domain) CreateWorkMachine(ctx InfraContext, clusterName string, workmachine entities.Workmachine) (*entities.Workmachine, error) { + workmachine.AccountName = ctx.AccountName + workmachine.ClusterName = clusterName + + workmachine.DispatchAddr = &entities.DispatchAddr{ + AccountName: ctx.AccountName, + ClusterName: clusterName, + } + + workmachine.CreatedBy = common.CreatedOrUpdatedBy{ + UserId: ctx.UserId, + UserName: ctx.UserName, + UserEmail: ctx.UserEmail, + } + + workmachine.LastUpdatedBy = workmachine.CreatedBy + + workmachine.EnsureGVK() + if err := d.k8sClient.ValidateObject(ctx, &workmachine.WorkMachine); err != nil { + return nil, errors.NewE(err) + } + + out, err := d.authClient.GenerateMachineSession(ctx, &auth.GenerateMachineSessionIn{ + UserId: string(ctx.UserId), + MachineId: workmachine.Name, + Cluster: workmachine.ClusterName, + }) + if err != nil { + return nil, errors.NewE(err) + } + workmachine.SessionId = out.SessionId + workmachine.Spec.JobParams = klv1.WorkMachineJobParams{ + NodeSelector: map[string]string{}, + Tolerations: []v1.Toleration{}, + } + workmachine.Spec.AWSMachineConfig.RootVolumeSize = 100 + workmachine.Spec.AWSMachineConfig.RootVolumeType = "gp2" + + wm, err := d.workmachineRepo.Create(ctx, &workmachine) + if err != nil { + return nil, errors.NewE(err) + } + + d.resourceEventPublisher.PublishResourceEvent(ctx, clusterName, ResourceTypeWorkmachine, wm.Name, PublishAdd) + + if err := d.applyWorkmachine(ctx, wm); err != nil { + return nil, errors.NewE(err) + } + + return wm, nil +} + +func (d *domain) UpdateWorkMachine(ctx InfraContext, clusterName string, workmachine entities.Workmachine) (*entities.Workmachine, error) { + patchForUpdate := repos.Document{ + fc.DisplayName: workmachine.DisplayName, + fc.WorkmachineSpecAwsAmi: workmachine.Spec.AWSMachineConfig.AMI, + fc.WorkmachineSpecAwsExternalVolumeSize: workmachine.Spec.AWSMachineConfig.ExternalVolumeSize, + fc.WorkmachineSpecAwsInstanceType: workmachine.Spec.AWSMachineConfig.InstanceType, + fc.WorkmachineSpecSshPublicKeys: workmachine.Spec.SSHPublicKeys, + fc.WorkmachineSpecState: workmachine.Spec.State, + fc.LastUpdatedBy: common.CreatedOrUpdatedBy{ + UserId: ctx.UserId, + UserName: ctx.UserName, + UserEmail: ctx.UserEmail, + }, + } + + upWorkmachine, err := d.workmachineRepo.Patch( + ctx, + repos.Filter{ + fc.AccountName: ctx.AccountName, + fc.MetadataName: workmachine.Name, + fields.ClusterName: clusterName, + }, + patchForUpdate, + ) + if err != nil { + return nil, errors.NewE(err) + } + + d.resourceEventPublisher.PublishResourceEvent(ctx, workmachine.ClusterName, ResourceTypeWorkmachine, upWorkmachine.Name, PublishUpdate) + + if err := d.applyWorkmachine(ctx, upWorkmachine); err != nil { + return nil, errors.NewE(err) + } + + return upWorkmachine, nil +} + +func (d *domain) UpdateWorkmachineStatus(ctx InfraContext, clusterName string, status bool, name string) (bool, error) { + machineStatus := "OFF" + if status { + machineStatus = "ON" + } + + patchForUpdate := repos.Document{ + fc.WorkmachineSpecState: machineStatus, + // fc.WorkmachineMachineStatus: status, + fc.LastUpdatedBy: common.CreatedOrUpdatedBy{ + UserId: ctx.UserId, + UserName: ctx.UserName, + UserEmail: ctx.UserEmail, + }, + } + + upWorkmachine, err := d.workmachineRepo.Patch( + ctx, + repos.Filter{ + fc.AccountName: ctx.AccountName, + fc.MetadataName: name, + fields.ClusterName: clusterName, + }, + patchForUpdate, + ) + if err != nil { + return false, errors.NewE(err) + } + + d.resourceEventPublisher.PublishResourceEvent(ctx, clusterName, ResourceTypeWorkmachine, upWorkmachine.Name, PublishUpdate) + + if err := d.applyWorkmachine(ctx, upWorkmachine); err != nil { + return false, errors.NewE(err) + } + + return true, nil +} + +func (d *domain) GetWorkmachine(ctx InfraContext, clusterName string, name string) (*entities.Workmachine, error) { + return d.findWorkmachine(ctx, clusterName, name) +} + +func (d *domain) OnWorkmachineDeleteMessage(ctx InfraContext, clusterName string, workmachine entities.Workmachine) error { + err := d.workmachineRepo.DeleteOne( + ctx, + repos.Filter{ + fields.AccountName: ctx.AccountName, + fields.ClusterName: clusterName, + fields.MetadataName: workmachine.Name, + }, + ) + if err != nil { + return errors.NewE(err) + } + d.resourceEventPublisher.PublishResourceEvent(ctx, clusterName, ResourceTypeWorkmachine, workmachine.Name, PublishDelete) + return nil +} + +func (d *domain) OnWorkmachineUpdateMessage(ctx InfraContext, clusterName string, workmachine entities.Workmachine, status types.ResourceStatus, opts UpdateAndDeleteOpts) error { + wm, err := d.findWorkmachine(ctx, clusterName, workmachine.Name) + if err != nil { + return errors.NewE(err) + } + + if wm == nil { + workmachine.AccountName = ctx.AccountName + workmachine.ClusterName = clusterName + + workmachine.CreatedBy = common.CreatedOrUpdatedBy{ + UserId: ctx.UserId, + UserName: ctx.UserName, + UserEmail: ctx.UserEmail, + } + + workmachine.LastUpdatedBy = workmachine.CreatedBy + + wm, err = d.workmachineRepo.Create(ctx, &workmachine) + if err != nil { + return errors.NewE(err) + } + } + patch := common.PatchForSyncFromAgent( + &workmachine, + workmachine.RecordVersion, + status, + common.PatchOpts{ + MessageTimestamp: opts.MessageTimestamp, + }) + patch[fc.Status] = workmachine.Status + upWm, err := d.workmachineRepo.PatchById( + ctx, + wm.Id, + patch, + ) + if err != nil { + return errors.NewE(err) + } + d.resourceEventPublisher.PublishResourceEvent(ctx, clusterName, ResourceTypeWorkmachine, upWm.Name, PublishUpdate) + return nil +} diff --git a/apps/infra/internal/domain/workspace.go b/apps/infra/internal/domain/workspace.go new file mode 100644 index 000000000..a9b6df8a2 --- /dev/null +++ b/apps/infra/internal/domain/workspace.go @@ -0,0 +1,228 @@ +package domain + +import ( + "github.com/kloudlite/api/apps/infra/internal/entities" + fc "github.com/kloudlite/api/apps/infra/internal/entities/field-constants" + "github.com/kloudlite/api/common" + "github.com/kloudlite/api/common/fields" + "github.com/kloudlite/api/pkg/errors" + "github.com/kloudlite/api/pkg/repos" + "github.com/kloudlite/operator/operators/resource-watcher/types" +) + +func (d *domain) applyWorkspace(ctx InfraContext, ws *entities.Workspace) error { + addTrackingId(&ws.Workspace, ws.Id) + return d.resDispatcher.ApplyToTargetCluster(ctx, ws.DispatchAddr, &ws.Workspace, ws.RecordVersion) +} + +func (d *domain) findWorkspace(ctx InfraContext, workmachineName string, clusterName string, name string) (*entities.Workspace, error) { + ws, err := d.workspaceRepo.FindOne(ctx, repos.Filter{ + fc.AccountName: ctx.AccountName, + fc.MetadataName: name, + fc.ClusterName: clusterName, + fc.WorkspaceSpecWorkMachine: workmachineName, + }) + if err != nil { + return nil, errors.NewE(err) + } + if ws == nil { + return nil, errors.Newf("no workspace with name=%q found", name) + } + return ws, nil +} + +func (d *domain) CreateWorkspace(ctx InfraContext, workmachineName string, clusterName string, workspace entities.Workspace) (*entities.Workspace, error) { + workspace.AccountName = ctx.AccountName + workspace.ClusterName = clusterName + + workspace.DispatchAddr = &entities.DispatchAddr{ + AccountName: ctx.AccountName, + ClusterName: clusterName} + + workspace.CreatedBy = common.CreatedOrUpdatedBy{ + UserId: ctx.UserId, + UserName: ctx.UserName, + UserEmail: ctx.UserEmail, + } + + workspace.LastUpdatedBy = workspace.CreatedBy + workspace.Spec.WorkMachine = workmachineName + workspace.EnsureGVK() + if err := d.k8sClient.ValidateObject(ctx, &workspace.Workspace); err != nil { + return nil, errors.NewE(err) + } + + ws, err := d.workspaceRepo.Create(ctx, &workspace) + if err != nil { + return nil, errors.NewE(err) + } + + d.resourceEventPublisher.PublishResourceEvent(ctx, workspace.ClusterName, ResourceTypeWorkspace, ws.Name, PublishAdd) + + if err := d.applyWorkspace(ctx, ws); err != nil { + return nil, errors.NewE(err) + } + + return ws, nil +} + +func (d *domain) UpdateWorkspace(ctx InfraContext, workmachineName string, clusterName string, workspace entities.Workspace) (*entities.Workspace, error) { + patchForUpdate := repos.Document{ + fc.DisplayName: workspace.DisplayName, + fc.LastUpdatedBy: common.CreatedOrUpdatedBy{ + UserId: ctx.UserId, + UserName: ctx.UserName, + UserEmail: ctx.UserEmail, + }, + } + + upWorkspace, err := d.workspaceRepo.Patch( + ctx, + repos.Filter{ + fc.AccountName: ctx.AccountName, + fc.MetadataName: workspace.Name, + fields.ClusterName: clusterName, + fc.WorkspaceSpecWorkMachine: workmachineName, + }, + patchForUpdate, + ) + if err != nil { + return nil, errors.NewE(err) + } + + d.resourceEventPublisher.PublishResourceEvent(ctx, workspace.ClusterName, ResourceTypeWorkspace, upWorkspace.Name, PublishUpdate) + + if err := d.applyWorkspace(ctx, upWorkspace); err != nil { + return nil, errors.NewE(err) + } + + return upWorkspace, nil +} + +func (d *domain) UpdateWorkspaceStatus(ctx InfraContext, workmachineName string, clusterName string, status bool, name string) (bool, error) { + workspaceStatus := "OFF" + if status { + workspaceStatus = "ON" + } + + patchForUpdate := repos.Document{ + fc.WorkspaceSpecState: workspaceStatus, + fc.LastUpdatedBy: common.CreatedOrUpdatedBy{ + UserId: ctx.UserId, + UserName: ctx.UserName, + UserEmail: ctx.UserEmail, + }, + } + + upWorkspace, err := d.workspaceRepo.Patch( + ctx, + repos.Filter{ + fc.AccountName: ctx.AccountName, + fc.MetadataName: name, + fields.ClusterName: clusterName, + fc.WorkspaceSpecWorkMachine: workmachineName, + }, + patchForUpdate, + ) + + if err != nil { + return false, errors.NewE(err) + } + + d.resourceEventPublisher.PublishResourceEvent(ctx, clusterName, ResourceTypeWorkspace, upWorkspace.Name, PublishUpdate) + + if err := d.applyWorkspace(ctx, upWorkspace); err != nil { + return false, errors.NewE(err) + } + + return true, nil +} + +func (d *domain) DeleteWorkspace(ctx InfraContext, workmachineName string, clusterName string, name string) error { + uws, err := d.workspaceRepo.Patch( + ctx, + repos.Filter{ + fields.ClusterName: clusterName, + fields.AccountName: ctx.AccountName, + fields.MetadataName: name, + fc.WorkspaceSpecWorkMachine: workmachineName, + }, + common.PatchForMarkDeletion(), + ) + + if err != nil { + return errors.NewE(err) + } + d.resourceEventPublisher.PublishResourceEvent(ctx, clusterName, ResourceTypeWorkspace, uws.Name, PublishUpdate) + return d.resDispatcher.DeleteFromTargetCluster(ctx, uws.DispatchAddr, &uws.Workspace) +} + +func (d *domain) GetWorkspace(ctx InfraContext, workmachineName string, clusterName string, name string) (*entities.Workspace, error) { + return d.findWorkspace(ctx, workmachineName, clusterName, name) +} + +func (d *domain) ListWorkspaces(ctx InfraContext, workmachineName string, clusterName string, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.Workspace], error) { + filter := repos.Filter{ + fc.AccountName: ctx.AccountName, + fc.WorkspaceSpecWorkMachine: workmachineName, + fc.ClusterName: clusterName, + } + return d.workspaceRepo.FindPaginated(ctx, d.workspaceRepo.MergeMatchFilters(filter, search), pagination) +} + +func (d *domain) OnWorkspaceDeleteMessage(ctx InfraContext, clusterName string, workspace entities.Workspace) error { + err := d.workspaceRepo.DeleteOne( + ctx, + repos.Filter{ + fields.AccountName: ctx.AccountName, + fields.ClusterName: clusterName, + fc.MetadataName: workspace.Name, + fc.WorkspaceSpecWorkMachine: workspace.Spec.WorkMachine, + }, + ) + if err != nil { + return errors.NewE(err) + } + d.resourceEventPublisher.PublishResourceEvent(ctx, clusterName, ResourceTypeWorkspace, workspace.Name, PublishDelete) + return nil +} + +func (d *domain) OnWorkspaceUpdateMessage(ctx InfraContext, clusterName string, workspace entities.Workspace, status types.ResourceStatus, opts UpdateAndDeleteOpts) error { + ws, err := d.findWorkspace(ctx, workspace.Spec.WorkMachine, clusterName, workspace.Name) + if err != nil { + return errors.NewE(err) + } + + if ws == nil { + workspace.AccountName = ctx.AccountName + workspace.ClusterName = clusterName + + workspace.CreatedBy = common.CreatedOrUpdatedBy{ + UserId: ctx.UserId, + UserName: ctx.UserName, + UserEmail: ctx.UserEmail, + } + workspace.LastUpdatedBy = workspace.CreatedBy + + ws, err = d.workspaceRepo.Create(ctx, &workspace) + if err != nil { + return errors.NewE(err) + } + } + + upWs, err := d.workspaceRepo.PatchById( + ctx, + ws.Id, + common.PatchForSyncFromAgent( + &workspace, + workspace.RecordVersion, + status, + common.PatchOpts{ + MessageTimestamp: opts.MessageTimestamp, + })) + if err != nil { + return errors.NewE(err) + } + d.resourceEventPublisher.PublishResourceEvent(ctx, clusterName, ResourceTypeWorkspace, upWs.Name, PublishUpdate) + return nil +} diff --git a/apps/infra/internal/entities/field-constants/generated_constants.go b/apps/infra/internal/entities/field-constants/generated_constants.go index 6aaa92493..69d8dc064 100644 --- a/apps/infra/internal/entities/field-constants/generated_constants.go +++ b/apps/infra/internal/entities/field-constants/generated_constants.go @@ -313,6 +313,7 @@ const ( NodePoolSpecAws = "spec.aws" NodePoolSpecAwsAvailabilityZone = "spec.aws.availabilityZone" NodePoolSpecAwsEc2Pool = "spec.aws.ec2Pool" + NodePoolSpecAwsEc2PoolAmi = "spec.aws.ec2Pool.ami" NodePoolSpecAwsEc2PoolInstanceType = "spec.aws.ec2Pool.instanceType" NodePoolSpecAwsEc2PoolNodes = "spec.aws.ec2Pool.nodes" NodePoolSpecAwsIamInstanceProfileRole = "spec.aws.iamInstanceProfileRole" @@ -322,6 +323,7 @@ const ( NodePoolSpecAwsRootVolumeSize = "spec.aws.rootVolumeSize" NodePoolSpecAwsRootVolumeType = "spec.aws.rootVolumeType" NodePoolSpecAwsSpotPool = "spec.aws.spotPool" + NodePoolSpecAwsSpotPoolAmi = "spec.aws.spotPool.ami" NodePoolSpecAwsSpotPoolCpuNode = "spec.aws.spotPool.cpuNode" NodePoolSpecAwsSpotPoolCpuNodeMemoryPerVcpu = "spec.aws.spotPool.cpuNode.memoryPerVcpu" NodePoolSpecAwsSpotPoolCpuNodeMemoryPerVcpuMax = "spec.aws.spotPool.cpuNode.memoryPerVcpu.max" @@ -782,6 +784,45 @@ const ( WgParamsWgPublicKey = "wg_public_key" ) +// constant vars generated for struct Workmachine +const ( + WorkmachineDispatchAddr = "dispatchAddr" + WorkmachineDispatchAddrAccountName = "dispatchAddr.accountName" + WorkmachineDispatchAddrClusterName = "dispatchAddr.clusterName" + WorkmachineSessionId = "sessionId" + WorkmachineSpec = "spec" + WorkmachineSpecAws = "spec.aws" + WorkmachineSpecAwsAmi = "spec.aws.ami" + WorkmachineSpecAwsExternalVolumeSize = "spec.aws.externalVolumeSize" + WorkmachineSpecAwsExternalVolumeType = "spec.aws.externalVolumeType" + WorkmachineSpecAwsIamInstanceProfileRole = "spec.aws.iamInstanceProfileRole" + WorkmachineSpecAwsInstanceType = "spec.aws.instanceType" + WorkmachineSpecAwsRootVolumeSize = "spec.aws.rootVolumeSize" + WorkmachineSpecAwsRootVolumeType = "spec.aws.rootVolumeType" + WorkmachineSpecJobParams = "spec.jobParams" + WorkmachineSpecJobParamsNodeSelector = "spec.jobParams.nodeSelector" + WorkmachineSpecJobParamsTolerations = "spec.jobParams.tolerations" + WorkmachineSpecSshPublicKeys = "spec.sshPublicKeys" + WorkmachineSpecState = "spec.state" + WorkmachineSpecTargetNamespace = "spec.targetNamespace" +) + +// constant vars generated for struct Workspace +const ( + WorkspaceDispatchAddr = "dispatchAddr" + WorkspaceDispatchAddrAccountName = "dispatchAddr.accountName" + WorkspaceDispatchAddrClusterName = "dispatchAddr.clusterName" + WorkspaceSpec = "spec" + WorkspaceSpecEnableCodeServer = "spec.enableCodeServer" + WorkspaceSpecEnableJupyterNotebook = "spec.enableJupyterNotebook" + WorkspaceSpecEnableTTYD = "spec.enableTTYD" + WorkspaceSpecEnableVSCodeServer = "spec.enableVSCodeServer" + WorkspaceSpecImagePullPolicy = "spec.imagePullPolicy" + WorkspaceSpecServiceAccountName = "spec.serviceAccountName" + WorkspaceSpecState = "spec.state" + WorkspaceSpecWorkMachine = "spec.workMachine" +) + // constant vars generated for struct const ( AccountName = "accountName" @@ -838,6 +879,7 @@ const ( StatusLastPhaseTransitionTime = "status.lastPhaseTransitionTime" StatusLastReadyGeneration = "status.lastReadyGeneration" StatusLastReconcileTime = "status.lastReconcileTime" + StatusMachineSSHKey = "status.machineSSHKey" StatusMessage = "status.message" StatusMessageItems = "status.message.items" StatusModifyVolumeStatus = "status.modifyVolumeStatus" @@ -846,6 +888,13 @@ const ( StatusPhase = "status.phase" StatusReason = "status.reason" StatusResources = "status.resources" + StatusStatus = "status.status" + StatusStatusCheckList = "status.status.checkList" + StatusStatusChecks = "status.status.checks" + StatusStatusIsReady = "status.status.isReady" + StatusStatusLastReadyGeneration = "status.status.lastReadyGeneration" + StatusStatusLastReconcileTime = "status.status.lastReconcileTime" + StatusStatusResources = "status.status.resources" SyncStatus = "syncStatus" SyncStatusAction = "syncStatus.action" SyncStatusError = "syncStatus.error" diff --git a/apps/infra/internal/entities/workmachine.go b/apps/infra/internal/entities/workmachine.go new file mode 100644 index 000000000..796cccc3c --- /dev/null +++ b/apps/infra/internal/entities/workmachine.go @@ -0,0 +1,58 @@ +package entities + +import ( + "github.com/kloudlite/api/common" + "github.com/kloudlite/api/common/fields" + "github.com/kloudlite/api/pkg/repos" + "github.com/kloudlite/api/pkg/types" + crdsv1 "github.com/kloudlite/operator/apis/crds/v1" + "github.com/kloudlite/operator/toolkit/reconciler" +) + +type Workmachine struct { + repos.BaseEntity `json:",inline" graphql:"noinput"` + common.ResourceMetadata `json:",inline"` + crdsv1.WorkMachine `json:",inline"` + + AccountName string `json:"accountName" graphql:"noinput"` + ClusterName string `json:"clusterName" graphql:"noinput"` + SessionId string `json:"sessionId" graphql:"ignore"` + + DispatchAddr *DispatchAddr `json:"dispatchAddr" graphql:"noinput"` + + SyncStatus types.SyncStatus `json:"syncStatus" graphql:"noinput"` +} + +func (v *Workmachine) GetDisplayName() string { + return v.ResourceMetadata.DisplayName +} + +func (v *Workmachine) GetStatus() reconciler.Status { + return v.WorkMachine.Status.Status +} + +var WorkmachineIndexes = []repos.IndexField{ + { + Field: []repos.IndexKey{ + {Key: fields.Id, Value: repos.IndexAsc}, + }, + Unique: true, + }, + { + Field: []repos.IndexKey{ + { + Key: fields.MetadataName, + Value: repos.IndexAsc, + }, + { + Key: fields.AccountName, + Value: repos.IndexAsc, + }, + { + Key: fields.ClusterName, + Value: repos.IndexAsc, + }, + }, + Unique: true, + }, +} diff --git a/apps/infra/internal/entities/workspace.go b/apps/infra/internal/entities/workspace.go new file mode 100644 index 000000000..55219f080 --- /dev/null +++ b/apps/infra/internal/entities/workspace.go @@ -0,0 +1,58 @@ +package entities + +import ( + "github.com/kloudlite/api/common" + "github.com/kloudlite/api/common/fields" + "github.com/kloudlite/api/pkg/repos" + "github.com/kloudlite/api/pkg/types" + crdsv1 "github.com/kloudlite/operator/apis/crds/v1" + "github.com/kloudlite/operator/toolkit/reconciler" +) + +type Workspace struct { + repos.BaseEntity `json:",inline" graphql:"noinput"` + common.ResourceMetadata `json:",inline"` + + crdsv1.Workspace `json:",inline"` + + AccountName string `json:"accountName" graphql:"noinput"` + ClusterName string `json:"clusterName" graphql:"noinput"` + + DispatchAddr *DispatchAddr `json:"dispatchAddr" graphql:"noinput"` + + SyncStatus types.SyncStatus `json:"syncStatus" graphql:"noinput"` +} + +func (v *Workspace) GetDisplayName() string { + return v.ResourceMetadata.DisplayName +} + +func (v *Workspace) GetStatus() reconciler.Status { + return v.Status +} + +var WorkspaceIndexes = []repos.IndexField{ + { + Field: []repos.IndexKey{ + {Key: fields.Id, Value: repos.IndexAsc}, + }, + Unique: true, + }, + { + Field: []repos.IndexKey{ + { + Key: fields.MetadataName, + Value: repos.IndexAsc, + }, + { + Key: fields.AccountName, + Value: repos.IndexAsc, + }, + { + Key: fields.ClusterName, + Value: repos.IndexAsc, + }, + }, + Unique: true, + }, +} diff --git a/apps/infra/internal/env/env.go b/apps/infra/internal/env/env.go index 6f643cdc8..ad76a07dc 100644 --- a/apps/infra/internal/env/env.go +++ b/apps/infra/internal/env/env.go @@ -31,6 +31,7 @@ type infraEnv struct { IAMGrpcAddr string `env:"IAM_GRPC_ADDR" required:"true"` AccountsGrpcAddr string `env:"ACCOUNTS_GRPC_ADDR" required:"true"` ConsoleGrpcAddr string `env:"CONSOLE_GRPC_ADDR" required:"true"` + AuthGrpcAddr string `env:"AUTH_GRPC_ADDR" required:"true"` MessageOfficeInternalGrpcAddr string `env:"MESSAGE_OFFICE_INTERNAL_GRPC_ADDR" required:"true"` MessageOfficeExternalGrpcAddr string `env:"MESSAGE_OFFICE_EXTERNAL_GRPC_ADDR" required:"true"` diff --git a/apps/infra/internal/framework/framework.go b/apps/infra/internal/framework/framework.go index adee446e2..b8a500803 100644 --- a/apps/infra/internal/framework/framework.go +++ b/apps/infra/internal/framework/framework.go @@ -77,6 +77,10 @@ var Module = fx.Module("framework", return grpc.NewGrpcClient(ev.ConsoleGrpcAddr) }), + fx.Provide(func(ev *env.Env) (app.AuthGrpcClient, error) { + return grpc.NewGrpcClient(ev.AuthGrpcAddr) + }), + fx.Invoke(func(lf fx.Lifecycle, c1 app.IAMGrpcClient) { lf.Append(fx.Hook{ OnStop: func(context.Context) error { diff --git a/apps/infra/protobufs/infra/infra.pb.go b/apps/infra/protobufs/infra/infra.pb.go index b66bee2b5..85cb3dd8a 100644 --- a/apps/infra/protobufs/infra/infra.pb.go +++ b/apps/infra/protobufs/infra/infra.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 -// protoc v4.25.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: infra.proto package infra @@ -12,6 +12,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,24 +23,21 @@ const ( ) type GetClusterIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` + UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` + AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` - UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` - AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetClusterIn) Reset() { *x = GetClusterIn{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetClusterIn) String() string { @@ -50,7 +48,7 @@ func (*GetClusterIn) ProtoMessage() {} func (x *GetClusterIn) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -101,24 +99,21 @@ func (x *GetClusterIn) GetClusterName() string { } type GetClusterOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MessageQueueTopic string `protobuf:"bytes,1,opt,name=messageQueueTopic,proto3" json:"messageQueueTopic,omitempty"` - DnsHost string `protobuf:"bytes,2,opt,name=dnsHost,proto3" json:"dnsHost,omitempty"` - IACJobName string `protobuf:"bytes,3,opt,name=IACJobName,proto3" json:"IACJobName,omitempty"` - IACJobNamespace string `protobuf:"bytes,4,opt,name=IACJobNamespace,proto3" json:"IACJobNamespace,omitempty"` - OwnedBy string `protobuf:"bytes,5,opt,name=OwnedBy,proto3" json:"OwnedBy,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MessageQueueTopic string `protobuf:"bytes,1,opt,name=messageQueueTopic,proto3" json:"messageQueueTopic,omitempty"` + DnsHost string `protobuf:"bytes,2,opt,name=dnsHost,proto3" json:"dnsHost,omitempty"` + IACJobName string `protobuf:"bytes,3,opt,name=IACJobName,proto3" json:"IACJobName,omitempty"` + IACJobNamespace string `protobuf:"bytes,4,opt,name=IACJobNamespace,proto3" json:"IACJobNamespace,omitempty"` + OwnedBy string `protobuf:"bytes,5,opt,name=OwnedBy,proto3" json:"OwnedBy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetClusterOut) Reset() { *x = GetClusterOut{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetClusterOut) String() string { @@ -129,7 +124,7 @@ func (*GetClusterOut) ProtoMessage() {} func (x *GetClusterOut) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -180,25 +175,22 @@ func (x *GetClusterOut) GetOwnedBy() string { } type GetNodepoolIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` + UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` + AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + NodepoolName string `protobuf:"bytes,6,opt,name=nodepoolName,proto3" json:"nodepoolName,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` - UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` - AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - NodepoolName string `protobuf:"bytes,6,opt,name=nodepoolName,proto3" json:"nodepoolName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetNodepoolIn) Reset() { *x = GetNodepoolIn{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetNodepoolIn) String() string { @@ -209,7 +201,7 @@ func (*GetNodepoolIn) ProtoMessage() {} func (x *GetNodepoolIn) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -267,21 +259,18 @@ func (x *GetNodepoolIn) GetNodepoolName() string { } type GetNodepoolOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IACJobName string `protobuf:"bytes,1,opt,name=IACJobName,proto3" json:"IACJobName,omitempty"` - IACJobNamespace string `protobuf:"bytes,2,opt,name=IACJobNamespace,proto3" json:"IACJobNamespace,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + IACJobName string `protobuf:"bytes,1,opt,name=IACJobName,proto3" json:"IACJobName,omitempty"` + IACJobNamespace string `protobuf:"bytes,2,opt,name=IACJobNamespace,proto3" json:"IACJobNamespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetNodepoolOut) Reset() { *x = GetNodepoolOut{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetNodepoolOut) String() string { @@ -292,7 +281,7 @@ func (*GetNodepoolOut) ProtoMessage() {} func (x *GetNodepoolOut) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -322,24 +311,21 @@ func (x *GetNodepoolOut) GetIACJobNamespace() string { } type ClusterExistsIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` + UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` + AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` - UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` - AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ClusterExistsIn) Reset() { *x = ClusterExistsIn{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterExistsIn) String() string { @@ -350,7 +336,7 @@ func (*ClusterExistsIn) ProtoMessage() {} func (x *ClusterExistsIn) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -401,20 +387,17 @@ func (x *ClusterExistsIn) GetClusterName() string { } type ClusterExistsOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` unknownFields protoimpl.UnknownFields - - Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ClusterExistsOut) Reset() { *x = ClusterExistsOut{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterExistsOut) String() string { @@ -425,7 +408,7 @@ func (*ClusterExistsOut) ProtoMessage() {} func (x *ClusterExistsOut) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -448,20 +431,17 @@ func (x *ClusterExistsOut) GetExists() bool { } type GetClusterKubeconfigOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Kubeconfig []byte `protobuf:"bytes,1,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"` unknownFields protoimpl.UnknownFields - - Kubeconfig []byte `protobuf:"bytes,1,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"` + sizeCache protoimpl.SizeCache } 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) - } + mi := &file_infra_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetClusterKubeconfigOut) String() string { @@ -472,7 +452,7 @@ func (*GetClusterKubeconfigOut) ProtoMessage() {} func (x *GetClusterKubeconfigOut) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -495,22 +475,19 @@ func (x *GetClusterKubeconfigOut) GetKubeconfig() []byte { } type MarkClusterOnlineAtIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MarkClusterOnlineAtIn) Reset() { *x = MarkClusterOnlineAtIn{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarkClusterOnlineAtIn) String() string { @@ -521,7 +498,7 @@ func (*MarkClusterOnlineAtIn) ProtoMessage() {} func (x *MarkClusterOnlineAtIn) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -558,18 +535,16 @@ func (x *MarkClusterOnlineAtIn) GetTimestamp() *timestamppb.Timestamp { } type MarkClusterOnlineAtOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MarkClusterOnlineAtOut) Reset() { *x = MarkClusterOnlineAtOut{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarkClusterOnlineAtOut) String() string { @@ -580,7 +555,7 @@ func (*MarkClusterOnlineAtOut) ProtoMessage() {} func (x *MarkClusterOnlineAtOut) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -596,27 +571,24 @@ func (*MarkClusterOnlineAtOut) Descriptor() ([]byte, []int) { } type EnsureGlobalVPNConnectionIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` - UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` - AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - GlobalVPNName string `protobuf:"bytes,6,opt,name=globalVPNName,proto3" json:"globalVPNName,omitempty"` - DispatchAddr_AccountName string `protobuf:"bytes,7,opt,name=dispatchAddr_AccountName,json=dispatchAddrAccountName,proto3" json:"dispatchAddr_AccountName,omitempty"` - DispatchAddr_ClusterName string `protobuf:"bytes,8,opt,name=dispatchAddr_ClusterName,json=dispatchAddrClusterName,proto3" json:"dispatchAddr_ClusterName,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` + UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` + AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + GlobalVPNName string `protobuf:"bytes,6,opt,name=globalVPNName,proto3" json:"globalVPNName,omitempty"` + DispatchAddr_AccountName string `protobuf:"bytes,7,opt,name=dispatchAddr_AccountName,json=dispatchAddrAccountName,proto3" json:"dispatchAddr_AccountName,omitempty"` + DispatchAddr_ClusterName string `protobuf:"bytes,8,opt,name=dispatchAddr_ClusterName,json=dispatchAddrClusterName,proto3" json:"dispatchAddr_ClusterName,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EnsureGlobalVPNConnectionIn) Reset() { *x = EnsureGlobalVPNConnectionIn{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnsureGlobalVPNConnectionIn) String() string { @@ -627,7 +599,7 @@ func (*EnsureGlobalVPNConnectionIn) ProtoMessage() {} func (x *EnsureGlobalVPNConnectionIn) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -699,18 +671,16 @@ func (x *EnsureGlobalVPNConnectionIn) GetDispatchAddr_ClusterName() string { } type EnsureGlobalVPNConnectionOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EnsureGlobalVPNConnectionOut) Reset() { *x = EnsureGlobalVPNConnectionOut{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnsureGlobalVPNConnectionOut) String() string { @@ -721,7 +691,7 @@ func (*EnsureGlobalVPNConnectionOut) ProtoMessage() {} func (x *EnsureGlobalVPNConnectionOut) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -737,21 +707,18 @@ func (*EnsureGlobalVPNConnectionOut) Descriptor() ([]byte, []int) { } type GetClusterGatewayResourceIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` unknownFields protoimpl.UnknownFields - - AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetClusterGatewayResourceIn) Reset() { *x = GetClusterGatewayResourceIn{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetClusterGatewayResourceIn) String() string { @@ -762,7 +729,7 @@ func (*GetClusterGatewayResourceIn) ProtoMessage() {} func (x *GetClusterGatewayResourceIn) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -792,20 +759,17 @@ func (x *GetClusterGatewayResourceIn) GetClusterName() string { } type GetClusterGatewayResourceOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Gateway []byte `protobuf:"bytes,1,opt,name=gateway,proto3" json:"gateway,omitempty"` unknownFields protoimpl.UnknownFields - - Gateway []byte `protobuf:"bytes,1,opt,name=gateway,proto3" json:"gateway,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetClusterGatewayResourceOut) Reset() { *x = GetClusterGatewayResourceOut{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetClusterGatewayResourceOut) String() string { @@ -816,7 +780,7 @@ func (*GetClusterGatewayResourceOut) ProtoMessage() {} func (x *GetClusterGatewayResourceOut) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -840,156 +804,86 @@ func (x *GetClusterGatewayResourceOut) GetGateway() []byte { var File_infra_proto protoreflect.FileDescriptor -var file_infra_proto_rawDesc = []byte{ - 0x0a, 0x0b, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa4, - 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x12, - 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, - 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, - 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xbb, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x12, 0x2c, 0x0a, 0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, - 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6e, 0x73, 0x48, 0x6f, 0x73, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6e, 0x73, 0x48, 0x6f, 0x73, 0x74, 0x12, - 0x1e, 0x0a, 0x0a, 0x49, 0x41, 0x43, 0x4a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x49, 0x41, 0x43, 0x4a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x28, 0x0a, 0x0f, 0x49, 0x41, 0x43, 0x4a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x49, 0x41, 0x43, 0x4a, 0x6f, 0x62, - 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x77, 0x6e, - 0x65, 0x64, 0x42, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x77, 0x6e, 0x65, - 0x64, 0x42, 0x79, 0x22, 0xc9, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x70, - 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, - 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, - 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, - 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6e, - 0x6f, 0x64, 0x65, 0x70, 0x6f, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x70, 0x6f, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x22, - 0x5a, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x70, 0x6f, 0x6f, 0x6c, 0x4f, 0x75, - 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x49, 0x41, 0x43, 0x4a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x49, 0x41, 0x43, 0x4a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x49, 0x41, 0x43, 0x4a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x49, 0x41, 0x43, 0x4a, - 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x0f, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x49, 0x6e, 0x12, - 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, - 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, - 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 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, 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, 0x22, 0x95, 0x01, 0x0a, - 0x15, 0x4d, 0x61, 0x72, 0x6b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x6e, 0x6c, 0x69, - 0x6e, 0x65, 0x41, 0x74, 0x49, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x61, 0x72, 0x6b, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x41, 0x74, 0x4f, 0x75, 0x74, 0x22, 0xcf, - 0x02, 0x0a, 0x1b, 0x45, 0x6e, 0x73, 0x75, 0x72, 0x65, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x56, - 0x50, 0x4e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x12, 0x16, - 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, - 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x56, 0x50, - 0x4e, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x6c, 0x6f, - 0x62, 0x61, 0x6c, 0x56, 0x50, 0x4e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x18, 0x64, 0x69, - 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x41, 0x64, 0x64, 0x72, 0x5f, 0x41, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x64, 0x69, - 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x41, 0x64, 0x64, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, - 0x68, 0x41, 0x64, 0x64, 0x72, 0x5f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, - 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, - 0x68, 0x41, 0x64, 0x64, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, - 0x22, 0x1e, 0x0a, 0x1c, 0x45, 0x6e, 0x73, 0x75, 0x72, 0x65, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x56, 0x50, 0x4e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, - 0x22, 0x61, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x47, 0x61, - 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x12, - 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x22, 0x38, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x4f, 0x75, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x32, 0x88, 0x04, - 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, 0x2f, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x42, 0x79, 0x6f, 0x6b, 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, 0x12, 0x46, 0x0a, 0x13, - 0x4d, 0x61, 0x72, 0x6b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, - 0x65, 0x41, 0x74, 0x12, 0x16, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x41, 0x74, 0x49, 0x6e, 0x1a, 0x17, 0x2e, 0x4d, 0x61, - 0x72, 0x6b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x41, - 0x74, 0x4f, 0x75, 0x74, 0x12, 0x58, 0x0a, 0x19, 0x45, 0x6e, 0x73, 0x75, 0x72, 0x65, 0x47, 0x6c, - 0x6f, 0x62, 0x61, 0x6c, 0x56, 0x50, 0x4e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x1c, 0x2e, 0x45, 0x6e, 0x73, 0x75, 0x72, 0x65, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x56, 0x50, 0x4e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x1a, - 0x1d, 0x2e, 0x45, 0x6e, 0x73, 0x75, 0x72, 0x65, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x56, 0x50, - 0x4e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x12, 0x58, - 0x0a, 0x19, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x47, 0x61, 0x74, 0x65, - 0x77, 0x61, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1c, 0x2e, 0x47, 0x65, - 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x1a, 0x1d, 0x2e, 0x47, 0x65, 0x74, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x75, 0x74, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2f, 0x69, 0x6e, - 0x66, 0x72, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_infra_proto_rawDesc = "" + + "\n" + + "\vinfra.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa4\x01\n" + + "\fGetClusterIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + + "\buserName\x18\x02 \x01(\tR\buserName\x12\x1c\n" + + "\tuserEmail\x18\x03 \x01(\tR\tuserEmail\x12 \n" + + "\vaccountName\x18\x04 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x05 \x01(\tR\vclusterName\"\xbb\x01\n" + + "\rGetClusterOut\x12,\n" + + "\x11messageQueueTopic\x18\x01 \x01(\tR\x11messageQueueTopic\x12\x18\n" + + "\adnsHost\x18\x02 \x01(\tR\adnsHost\x12\x1e\n" + + "\n" + + "IACJobName\x18\x03 \x01(\tR\n" + + "IACJobName\x12(\n" + + "\x0fIACJobNamespace\x18\x04 \x01(\tR\x0fIACJobNamespace\x12\x18\n" + + "\aOwnedBy\x18\x05 \x01(\tR\aOwnedBy\"\xc9\x01\n" + + "\rGetNodepoolIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + + "\buserName\x18\x02 \x01(\tR\buserName\x12\x1c\n" + + "\tuserEmail\x18\x03 \x01(\tR\tuserEmail\x12 \n" + + "\vaccountName\x18\x04 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x05 \x01(\tR\vclusterName\x12\"\n" + + "\fnodepoolName\x18\x06 \x01(\tR\fnodepoolName\"Z\n" + + "\x0eGetNodepoolOut\x12\x1e\n" + + "\n" + + "IACJobName\x18\x01 \x01(\tR\n" + + "IACJobName\x12(\n" + + "\x0fIACJobNamespace\x18\x02 \x01(\tR\x0fIACJobNamespace\"\xa7\x01\n" + + "\x0fClusterExistsIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + + "\buserName\x18\x02 \x01(\tR\buserName\x12\x1c\n" + + "\tuserEmail\x18\x03 \x01(\tR\tuserEmail\x12 \n" + + "\vaccountName\x18\x04 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x05 \x01(\tR\vclusterName\"*\n" + + "\x10ClusterExistsOut\x12\x16\n" + + "\x06exists\x18\x01 \x01(\bR\x06exists\"9\n" + + "\x17GetClusterKubeconfigOut\x12\x1e\n" + + "\n" + + "kubeconfig\x18\x01 \x01(\fR\n" + + "kubeconfig\"\x95\x01\n" + + "\x15MarkClusterOnlineAtIn\x12 \n" + + "\vaccountName\x18\x01 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x02 \x01(\tR\vclusterName\x128\n" + + "\ttimestamp\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\"\x18\n" + + "\x16MarkClusterOnlineAtOut\"\xcf\x02\n" + + "\x1bEnsureGlobalVPNConnectionIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + + "\buserName\x18\x02 \x01(\tR\buserName\x12\x1c\n" + + "\tuserEmail\x18\x03 \x01(\tR\tuserEmail\x12 \n" + + "\vaccountName\x18\x04 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x05 \x01(\tR\vclusterName\x12$\n" + + "\rglobalVPNName\x18\x06 \x01(\tR\rglobalVPNName\x129\n" + + "\x18dispatchAddr_AccountName\x18\a \x01(\tR\x17dispatchAddrAccountName\x129\n" + + "\x18dispatchAddr_ClusterName\x18\b \x01(\tR\x17dispatchAddrClusterName\"\x1e\n" + + "\x1cEnsureGlobalVPNConnectionOut\"a\n" + + "\x1bGetClusterGatewayResourceIn\x12 \n" + + "\vaccountName\x18\x01 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x02 \x01(\tR\vclusterName\"8\n" + + "\x1cGetClusterGatewayResourceOut\x12\x18\n" + + "\agateway\x18\x01 \x01(\fR\agateway2\x88\x04\n" + + "\x05Infra\x12+\n" + + "\n" + + "GetCluster\x12\r.GetClusterIn\x1a\x0e.GetClusterOut\x12/\n" + + "\x0eGetByokCluster\x12\r.GetClusterIn\x1a\x0e.GetClusterOut\x12.\n" + + "\vGetNodepool\x12\x0e.GetNodepoolIn\x1a\x0f.GetNodepoolOut\x124\n" + + "\rClusterExists\x12\x10.ClusterExistsIn\x1a\x11.ClusterExistsOut\x12?\n" + + "\x14GetClusterKubeconfig\x12\r.GetClusterIn\x1a\x18.GetClusterKubeconfigOut\x12F\n" + + "\x13MarkClusterOnlineAt\x12\x16.MarkClusterOnlineAtIn\x1a\x17.MarkClusterOnlineAtOut\x12X\n" + + "\x19EnsureGlobalVPNConnection\x12\x1c.EnsureGlobalVPNConnectionIn\x1a\x1d.EnsureGlobalVPNConnectionOut\x12X\n" + + "\x19GetClusterGatewayResource\x12\x1c.GetClusterGatewayResourceIn\x1a\x1d.GetClusterGatewayResourceOutB\tZ\a./infrab\x06proto3" var ( file_infra_proto_rawDescOnce sync.Once - file_infra_proto_rawDescData = file_infra_proto_rawDesc + file_infra_proto_rawDescData []byte ) func file_infra_proto_rawDescGZIP() []byte { file_infra_proto_rawDescOnce.Do(func() { - file_infra_proto_rawDescData = protoimpl.X.CompressGZIP(file_infra_proto_rawDescData) + file_infra_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_infra_proto_rawDesc), len(file_infra_proto_rawDesc))) }) return file_infra_proto_rawDescData } @@ -1041,169 +935,11 @@ func file_infra_proto_init() { if File_infra_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_infra_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*GetClusterIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*GetClusterOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*GetNodepoolIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*GetNodepoolOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ClusterExistsIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*ClusterExistsOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*GetClusterKubeconfigOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*MarkClusterOnlineAtIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*MarkClusterOnlineAtOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*EnsureGlobalVPNConnectionIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*EnsureGlobalVPNConnectionOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*GetClusterGatewayResourceIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*GetClusterGatewayResourceOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_infra_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_infra_proto_rawDesc), len(file_infra_proto_rawDesc)), NumEnums: 0, NumMessages: 13, NumExtensions: 0, @@ -1214,7 +950,6 @@ func file_infra_proto_init() { MessageInfos: file_infra_proto_msgTypes, }.Build() File_infra_proto = out.File - file_infra_proto_rawDesc = nil file_infra_proto_goTypes = nil file_infra_proto_depIdxs = nil } diff --git a/apps/infra/protobufs/infra/infra_grpc.pb.go b/apps/infra/protobufs/infra/infra_grpc.pb.go index 195b1ac26..a5f6ed031 100644 --- a/apps/infra/protobufs/infra/infra_grpc.pb.go +++ b/apps/infra/protobufs/infra/infra_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: infra.proto package infra @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Infra_GetCluster_FullMethodName = "/Infra/GetCluster" @@ -52,8 +52,9 @@ func NewInfraClient(cc grpc.ClientConnInterface) InfraClient { } func (c *infraClient) GetCluster(ctx context.Context, in *GetClusterIn, opts ...grpc.CallOption) (*GetClusterOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetClusterOut) - err := c.cc.Invoke(ctx, Infra_GetCluster_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_GetCluster_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +62,9 @@ func (c *infraClient) GetCluster(ctx context.Context, in *GetClusterIn, opts ... } func (c *infraClient) GetByokCluster(ctx context.Context, in *GetClusterIn, opts ...grpc.CallOption) (*GetClusterOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetClusterOut) - err := c.cc.Invoke(ctx, Infra_GetByokCluster_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_GetByokCluster_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,8 +72,9 @@ func (c *infraClient) GetByokCluster(ctx context.Context, in *GetClusterIn, opts } func (c *infraClient) GetNodepool(ctx context.Context, in *GetNodepoolIn, opts ...grpc.CallOption) (*GetNodepoolOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetNodepoolOut) - err := c.cc.Invoke(ctx, Infra_GetNodepool_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_GetNodepool_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -79,8 +82,9 @@ func (c *infraClient) GetNodepool(ctx context.Context, in *GetNodepoolIn, opts . } func (c *infraClient) ClusterExists(ctx context.Context, in *ClusterExistsIn, opts ...grpc.CallOption) (*ClusterExistsOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ClusterExistsOut) - err := c.cc.Invoke(ctx, Infra_ClusterExists_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_ClusterExists_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -88,8 +92,9 @@ func (c *infraClient) ClusterExists(ctx context.Context, in *ClusterExistsIn, op } func (c *infraClient) GetClusterKubeconfig(ctx context.Context, in *GetClusterIn, opts ...grpc.CallOption) (*GetClusterKubeconfigOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetClusterKubeconfigOut) - err := c.cc.Invoke(ctx, Infra_GetClusterKubeconfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_GetClusterKubeconfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -97,8 +102,9 @@ func (c *infraClient) GetClusterKubeconfig(ctx context.Context, in *GetClusterIn } func (c *infraClient) MarkClusterOnlineAt(ctx context.Context, in *MarkClusterOnlineAtIn, opts ...grpc.CallOption) (*MarkClusterOnlineAtOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MarkClusterOnlineAtOut) - err := c.cc.Invoke(ctx, Infra_MarkClusterOnlineAt_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_MarkClusterOnlineAt_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -106,8 +112,9 @@ func (c *infraClient) MarkClusterOnlineAt(ctx context.Context, in *MarkClusterOn } func (c *infraClient) EnsureGlobalVPNConnection(ctx context.Context, in *EnsureGlobalVPNConnectionIn, opts ...grpc.CallOption) (*EnsureGlobalVPNConnectionOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EnsureGlobalVPNConnectionOut) - err := c.cc.Invoke(ctx, Infra_EnsureGlobalVPNConnection_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_EnsureGlobalVPNConnection_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -115,8 +122,9 @@ func (c *infraClient) EnsureGlobalVPNConnection(ctx context.Context, in *EnsureG } func (c *infraClient) GetClusterGatewayResource(ctx context.Context, in *GetClusterGatewayResourceIn, opts ...grpc.CallOption) (*GetClusterGatewayResourceOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetClusterGatewayResourceOut) - err := c.cc.Invoke(ctx, Infra_GetClusterGatewayResource_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_GetClusterGatewayResource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -125,7 +133,7 @@ func (c *infraClient) GetClusterGatewayResource(ctx context.Context, in *GetClus // InfraServer is the server API for Infra service. // All implementations must embed UnimplementedInfraServer -// for forward compatibility +// for forward compatibility. type InfraServer interface { GetCluster(context.Context, *GetClusterIn) (*GetClusterOut, error) GetByokCluster(context.Context, *GetClusterIn) (*GetClusterOut, error) @@ -138,9 +146,12 @@ type InfraServer interface { mustEmbedUnimplementedInfraServer() } -// UnimplementedInfraServer must be embedded to have forward compatible implementations. -type UnimplementedInfraServer struct { -} +// UnimplementedInfraServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInfraServer struct{} func (UnimplementedInfraServer) GetCluster(context.Context, *GetClusterIn) (*GetClusterOut, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCluster not implemented") @@ -167,6 +178,7 @@ func (UnimplementedInfraServer) GetClusterGatewayResource(context.Context, *GetC return nil, status.Errorf(codes.Unimplemented, "method GetClusterGatewayResource not implemented") } func (UnimplementedInfraServer) mustEmbedUnimplementedInfraServer() {} +func (UnimplementedInfraServer) testEmbeddedByValue() {} // UnsafeInfraServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to InfraServer will @@ -176,6 +188,13 @@ type UnsafeInfraServer interface { } func RegisterInfraServer(s grpc.ServiceRegistrar, srv InfraServer) { + // If the following call pancis, it indicates UnimplementedInfraServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Infra_ServiceDesc, srv) } diff --git a/common/session.go b/common/session.go index f925c8a76..571deecf5 100644 --- a/common/session.go +++ b/common/session.go @@ -4,6 +4,11 @@ import ( "github.com/kloudlite/api/pkg/repos" ) +const ( + MACHINE_ID_KEY = "machine_id" + CLUSTER_KEY = "cluster" +) + type AuthSession struct { repos.BaseEntity `json:",inline"` UserId repos.ID `json:"user_id"` @@ -11,6 +16,7 @@ type AuthSession struct { UserName string `json:"user_name"` UserVerified bool `json:"user_verified"` LoginMethod string `json:"login_method"` + Extras Json `json:"extras"` } type Json map[string]any diff --git a/common/workmachine-sessions/main.go b/common/workmachine-sessions/main.go new file mode 100644 index 000000000..7f882458a --- /dev/null +++ b/common/workmachine-sessions/main.go @@ -0,0 +1,19 @@ +package workmachinesessions + +type WMSessionManager struct { + secret string +} + +func NewWMSessionManager(secret string) *WMSessionManager { + return &WMSessionManager{ + secret: secret, + } +} + +func (wm *WMSessionManager) CreateWMSession(machineName string, cluster string, user string) { + +} + +func (wm *WMSessionManager) ValidateWMSession(machineName string, cluster string, user string) { + +} diff --git a/flake.nix b/flake.nix index 66843a3e3..21502c961 100644 --- a/flake.nix +++ b/flake.nix @@ -15,6 +15,8 @@ packages.nats-manager = pkgs.writeScriptBin "nats-manager" '' $PROJECT_ROOT/cmd/nats-manager/bin/nats-manager --url "nats://nats.kloudlite.svc.cluster.local:4222" --stream "resource-sync" "$@" ''; + defaultPackage = self.packages.${system}.mocki; + devShells.default = pkgs.mkShell { packages = [ self.packages.${system}.mocki diff --git a/go.mod b/go.mod index a1824d944..790cc55a8 100644 --- a/go.mod +++ b/go.mod @@ -48,8 +48,9 @@ require ( github.com/go-chi/chi/v5 v5.2.0 github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 github.com/kloudlite/container-registry-authorizer v0.0.0-20231021122509-161dc30fde55 - github.com/kloudlite/operator v1.1.2-0.20250316093242-493e9b587c10 + github.com/kloudlite/operator v1.1.2-0.20250417111723-79b058b419db github.com/kloudlite/operator/toolkit v0.0.0-20250316093242-493e9b587c10 + github.com/kloudlite/plugin-helm-chart v0.0.0-20250317052100-fef043b111a2 github.com/miekg/dns v1.1.62 github.com/mittwald/go-helm-client v0.12.14 github.com/nats-io/nats.go v1.38.0 diff --git a/go.sum b/go.sum index 19018edda..2219912cf 100644 --- a/go.sum +++ b/go.sum @@ -336,12 +336,12 @@ github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IX github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= 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.1.2-0.20250316093242-493e9b587c10 h1:JApPLyqigVe4NfpmKp3sM7QBcj4NS5A4hal3OSZAVLY= -github.com/kloudlite/operator v1.1.2-0.20250316093242-493e9b587c10/go.mod h1:BhtpCE1yn9D5FJRpuI/IzgIGmRTn/WK+gScDAALCnqM= -github.com/kloudlite/operator/toolkit v0.0.0-20241218081328-3effe5238e85 h1:bGSKSZkDDnbbk1lQYG4GQrg7dSAFCIb9fGHhYMEVBKg= -github.com/kloudlite/operator/toolkit v0.0.0-20241218081328-3effe5238e85/go.mod h1:xnrBiZSs9nC5rgyZMf55OsLhvx7Lo7A4+eSq7ezEEm0= +github.com/kloudlite/operator v1.1.2-0.20250417111723-79b058b419db h1:Li+Z2I6fQdQ7jTFkFIdADBt5PndVLWdExbZbTKugUFI= +github.com/kloudlite/operator v1.1.2-0.20250417111723-79b058b419db/go.mod h1:hKBHOdG7FQpwyRMiuk5Dc6cacTxEkNIK5BY6B45mXso= github.com/kloudlite/operator/toolkit v0.0.0-20250316093242-493e9b587c10 h1:VjNyjNEzyTuvcJowzdWyTgoGj6gawxPd4q30qTihKYg= github.com/kloudlite/operator/toolkit v0.0.0-20250316093242-493e9b587c10/go.mod h1:iqOsr4qQ4fbM4pkiBhExA2lb6cvlc7g9O93qkx0TRAs= +github.com/kloudlite/plugin-helm-chart v0.0.0-20250317052100-fef043b111a2 h1:4DoLvbPEjYVBMnNpVmeR9OoI6Q9kebd6HnDpkwFts+Y= +github.com/kloudlite/plugin-helm-chart v0.0.0-20250317052100-fef043b111a2/go.mod h1:TZUQ5mREV+UjGVJhPsgmHMS67Mlf2Guit4905Pi/5sc= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= diff --git a/grpc-interfaces/auth.proto b/grpc-interfaces/auth.proto index c97c965cf..86a204df5 100644 --- a/grpc-interfaces/auth.proto +++ b/grpc-interfaces/auth.proto @@ -6,6 +6,10 @@ service Auth { rpc GetAccessToken(GetAccessTokenRequest) returns (AccessTokenOut); rpc EnsureUserByEmail(GetUserByEmailRequest) returns (GetUserByEmailOut); rpc GetUser(GetUserIn) returns (GetUserOut); + rpc GenerateMachineSession(GenerateMachineSessionIn) returns (GenerateMachineSessionOut); + rpc ClearMachineSessionByMachine(ClearMachineSessionByMachineIn) returns (ClearMachineSessionByMachineOut); + rpc ClearMachineSessionByUser(ClearMachineSessionByUserIn) returns (ClearMachineSessionByUserOut); + rpc ClearMachineSessionByTeam(ClearMachineSessionByTeamIn) returns (ClearMachineSessionByTeamOut); } message GetUserByEmailRequest { @@ -47,3 +51,33 @@ message GetUserOut { string email = 2; string name = 3; } + + +message GenerateMachineSessionIn { + string userId = 1; + string machine_id = 2; + string cluster = 3; +} + +message GenerateMachineSessionOut { + string sessionId = 1; +} + +message ClearMachineSessionByMachineIn { + string machineId = 1; +} +message ClearMachineSessionByMachineOut { + bool done = 1; +} +message ClearMachineSessionByUserIn { + string userId = 1; +} +message ClearMachineSessionByUserOut { + bool done = 1; +} +message ClearMachineSessionByTeamIn { + string teamId = 1; +} +message ClearMachineSessionByTeamOut { + bool done = 1; +} \ No newline at end of file diff --git a/grpc-interfaces/container_registry/container-registry.pb.go b/grpc-interfaces/container_registry/container-registry.pb.go index 70749cf56..6bddf03c7 100644 --- a/grpc-interfaces/container_registry/container-registry.pb.go +++ b/grpc-interfaces/container_registry/container-registry.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: container-registry.proto package container_registry @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,23 +22,20 @@ const ( ) type CreateReadOnlyCredentialIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` - CredentialName string `protobuf:"bytes,3,opt,name=credentialName,proto3" json:"credentialName,omitempty"` - RegistryUsername string `protobuf:"bytes,4,opt,name=registryUsername,proto3" json:"registryUsername,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` + CredentialName string `protobuf:"bytes,3,opt,name=credentialName,proto3" json:"credentialName,omitempty"` + RegistryUsername string `protobuf:"bytes,4,opt,name=registryUsername,proto3" json:"registryUsername,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateReadOnlyCredentialIn) Reset() { *x = CreateReadOnlyCredentialIn{} - if protoimpl.UnsafeEnabled { - mi := &file_container_registry_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_container_registry_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateReadOnlyCredentialIn) String() string { @@ -48,7 +46,7 @@ func (*CreateReadOnlyCredentialIn) ProtoMessage() {} func (x *CreateReadOnlyCredentialIn) ProtoReflect() protoreflect.Message { mi := &file_container_registry_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -92,21 +90,18 @@ func (x *CreateReadOnlyCredentialIn) GetRegistryUsername() string { } type CreateReadOnlyCredentialOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // dcokerconfigjson is as per format: https://kubernetes.io/docs/concepts/configuration/secret/#docker-config-secrets DockerConfigJson []byte `protobuf:"bytes,1,opt,name=dockerConfigJson,proto3" json:"dockerConfigJson,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateReadOnlyCredentialOut) Reset() { *x = CreateReadOnlyCredentialOut{} - if protoimpl.UnsafeEnabled { - mi := &file_container_registry_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_container_registry_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateReadOnlyCredentialOut) String() string { @@ -117,7 +112,7 @@ func (*CreateReadOnlyCredentialOut) ProtoMessage() {} func (x *CreateReadOnlyCredentialOut) ProtoReflect() protoreflect.Message { mi := &file_container_registry_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -141,49 +136,33 @@ func (x *CreateReadOnlyCredentialOut) GetDockerConfigJson() []byte { var File_container_registry_proto protoreflect.FileDescriptor -var file_container_registry_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x2d, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaa, 0x01, 0x0a, 0x1a, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x43, 0x72, 0x65, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x49, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x75, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, - 0x72, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, - 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x72, 0x65, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x55, - 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x49, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x61, 0x6c, 0x4f, 0x75, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x10, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x73, - 0x6f, 0x6e, 0x32, 0x6a, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x55, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x61, 0x6c, 0x12, 0x1b, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x64, - 0x4f, 0x6e, 0x6c, 0x79, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x49, 0x6e, - 0x1a, 0x1c, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, - 0x79, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x75, 0x74, 0x42, 0x16, - 0x5a, 0x14, 0x2e, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_container_registry_proto_rawDesc = "" + + "\n" + + "\x18container-registry.proto\"\xaa\x01\n" + + "\x1aCreateReadOnlyCredentialIn\x12 \n" + + "\vaccountName\x18\x01 \x01(\tR\vaccountName\x12\x16\n" + + "\x06userId\x18\x02 \x01(\tR\x06userId\x12&\n" + + "\x0ecredentialName\x18\x03 \x01(\tR\x0ecredentialName\x12*\n" + + "\x10registryUsername\x18\x04 \x01(\tR\x10registryUsername\"I\n" + + "\x1bCreateReadOnlyCredentialOut\x12*\n" + + "\x10dockerConfigJson\x18\x01 \x01(\fR\x10dockerConfigJson2j\n" + + "\x11ContainerRegistry\x12U\n" + + "\x18CreateReadOnlyCredential\x12\x1b.CreateReadOnlyCredentialIn\x1a\x1c.CreateReadOnlyCredentialOutB\x16Z\x14./container_registryb\x06proto3" var ( file_container_registry_proto_rawDescOnce sync.Once - file_container_registry_proto_rawDescData = file_container_registry_proto_rawDesc + file_container_registry_proto_rawDescData []byte ) func file_container_registry_proto_rawDescGZIP() []byte { file_container_registry_proto_rawDescOnce.Do(func() { - file_container_registry_proto_rawDescData = protoimpl.X.CompressGZIP(file_container_registry_proto_rawDescData) + file_container_registry_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_container_registry_proto_rawDesc), len(file_container_registry_proto_rawDesc))) }) return file_container_registry_proto_rawDescData } var file_container_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_container_registry_proto_goTypes = []interface{}{ +var file_container_registry_proto_goTypes = []any{ (*CreateReadOnlyCredentialIn)(nil), // 0: CreateReadOnlyCredentialIn (*CreateReadOnlyCredentialOut)(nil), // 1: CreateReadOnlyCredentialOut } @@ -202,37 +181,11 @@ func file_container_registry_proto_init() { if File_container_registry_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_container_registry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateReadOnlyCredentialIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_container_registry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateReadOnlyCredentialOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_container_registry_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_container_registry_proto_rawDesc), len(file_container_registry_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -243,7 +196,6 @@ func file_container_registry_proto_init() { MessageInfos: file_container_registry_proto_msgTypes, }.Build() File_container_registry_proto = out.File - file_container_registry_proto_rawDesc = nil file_container_registry_proto_goTypes = nil file_container_registry_proto_depIdxs = nil } diff --git a/grpc-interfaces/container_registry/container-registry_grpc.pb.go b/grpc-interfaces/container_registry/container-registry_grpc.pb.go index 5c0d88f1b..58d1e6864 100644 --- a/grpc-interfaces/container_registry/container-registry_grpc.pb.go +++ b/grpc-interfaces/container_registry/container-registry_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: container-registry.proto package container_registry @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ContainerRegistry_CreateReadOnlyCredential_FullMethodName = "/ContainerRegistry/CreateReadOnlyCredential" @@ -40,8 +40,9 @@ func NewContainerRegistryClient(cc grpc.ClientConnInterface) ContainerRegistryCl } func (c *containerRegistryClient) CreateReadOnlyCredential(ctx context.Context, in *CreateReadOnlyCredentialIn, opts ...grpc.CallOption) (*CreateReadOnlyCredentialOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateReadOnlyCredentialOut) - err := c.cc.Invoke(ctx, ContainerRegistry_CreateReadOnlyCredential_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContainerRegistry_CreateReadOnlyCredential_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -50,7 +51,7 @@ func (c *containerRegistryClient) CreateReadOnlyCredential(ctx context.Context, // ContainerRegistryServer is the server API for ContainerRegistry service. // All implementations must embed UnimplementedContainerRegistryServer -// for forward compatibility +// for forward compatibility. type ContainerRegistryServer interface { // rpc CreateProjectForAccount(CreateProjectIn) returns (CreateProjectOut); // rpc GetSvcCredentials(GetSvcCredentialsIn) returns (GetSvcCredentialsOut); @@ -58,14 +59,18 @@ type ContainerRegistryServer interface { mustEmbedUnimplementedContainerRegistryServer() } -// UnimplementedContainerRegistryServer must be embedded to have forward compatible implementations. -type UnimplementedContainerRegistryServer struct { -} +// UnimplementedContainerRegistryServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedContainerRegistryServer struct{} func (UnimplementedContainerRegistryServer) CreateReadOnlyCredential(context.Context, *CreateReadOnlyCredentialIn) (*CreateReadOnlyCredentialOut, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateReadOnlyCredential not implemented") } func (UnimplementedContainerRegistryServer) mustEmbedUnimplementedContainerRegistryServer() {} +func (UnimplementedContainerRegistryServer) testEmbeddedByValue() {} // UnsafeContainerRegistryServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ContainerRegistryServer will @@ -75,6 +80,13 @@ type UnsafeContainerRegistryServer interface { } func RegisterContainerRegistryServer(s grpc.ServiceRegistrar, srv ContainerRegistryServer) { + // If the following call pancis, it indicates UnimplementedContainerRegistryServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ContainerRegistry_ServiceDesc, srv) } diff --git a/grpc-interfaces/infra/infra.pb.go b/grpc-interfaces/infra/infra.pb.go index f33718582..ac00bdab4 100644 --- a/grpc-interfaces/infra/infra.pb.go +++ b/grpc-interfaces/infra/infra.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: infra.proto package infra @@ -12,6 +12,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,24 +23,21 @@ const ( ) type GetClusterIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` + UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` + AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` - UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` - AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetClusterIn) Reset() { *x = GetClusterIn{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetClusterIn) String() string { @@ -50,7 +48,7 @@ func (*GetClusterIn) ProtoMessage() {} func (x *GetClusterIn) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -101,23 +99,20 @@ func (x *GetClusterIn) GetClusterName() string { } type GetClusterOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MessageQueueTopic string `protobuf:"bytes,1,opt,name=messageQueueTopic,proto3" json:"messageQueueTopic,omitempty"` - DnsHost string `protobuf:"bytes,2,opt,name=dnsHost,proto3" json:"dnsHost,omitempty"` - IACJobName string `protobuf:"bytes,3,opt,name=IACJobName,proto3" json:"IACJobName,omitempty"` - IACJobNamespace string `protobuf:"bytes,4,opt,name=IACJobNamespace,proto3" json:"IACJobNamespace,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MessageQueueTopic string `protobuf:"bytes,1,opt,name=messageQueueTopic,proto3" json:"messageQueueTopic,omitempty"` + DnsHost string `protobuf:"bytes,2,opt,name=dnsHost,proto3" json:"dnsHost,omitempty"` + IACJobName string `protobuf:"bytes,3,opt,name=IACJobName,proto3" json:"IACJobName,omitempty"` + IACJobNamespace string `protobuf:"bytes,4,opt,name=IACJobNamespace,proto3" json:"IACJobNamespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetClusterOut) Reset() { *x = GetClusterOut{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetClusterOut) String() string { @@ -128,7 +123,7 @@ func (*GetClusterOut) ProtoMessage() {} func (x *GetClusterOut) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -172,25 +167,22 @@ func (x *GetClusterOut) GetIACJobNamespace() string { } type GetNodepoolIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` + UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` + AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + NodepoolName string `protobuf:"bytes,6,opt,name=nodepoolName,proto3" json:"nodepoolName,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` - UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` - AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - NodepoolName string `protobuf:"bytes,6,opt,name=nodepoolName,proto3" json:"nodepoolName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetNodepoolIn) Reset() { *x = GetNodepoolIn{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetNodepoolIn) String() string { @@ -201,7 +193,7 @@ func (*GetNodepoolIn) ProtoMessage() {} func (x *GetNodepoolIn) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -259,21 +251,18 @@ func (x *GetNodepoolIn) GetNodepoolName() string { } type GetNodepoolOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IACJobName string `protobuf:"bytes,1,opt,name=IACJobName,proto3" json:"IACJobName,omitempty"` - IACJobNamespace string `protobuf:"bytes,2,opt,name=IACJobNamespace,proto3" json:"IACJobNamespace,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + IACJobName string `protobuf:"bytes,1,opt,name=IACJobName,proto3" json:"IACJobName,omitempty"` + IACJobNamespace string `protobuf:"bytes,2,opt,name=IACJobNamespace,proto3" json:"IACJobNamespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetNodepoolOut) Reset() { *x = GetNodepoolOut{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetNodepoolOut) String() string { @@ -284,7 +273,7 @@ func (*GetNodepoolOut) ProtoMessage() {} func (x *GetNodepoolOut) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -314,24 +303,21 @@ func (x *GetNodepoolOut) GetIACJobNamespace() string { } type ClusterExistsIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` + UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` + AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` - UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` - AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ClusterExistsIn) Reset() { *x = ClusterExistsIn{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterExistsIn) String() string { @@ -342,7 +328,7 @@ func (*ClusterExistsIn) ProtoMessage() {} func (x *ClusterExistsIn) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -393,20 +379,17 @@ func (x *ClusterExistsIn) GetClusterName() string { } type ClusterExistsOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` unknownFields protoimpl.UnknownFields - - Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ClusterExistsOut) Reset() { *x = ClusterExistsOut{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterExistsOut) String() string { @@ -417,7 +400,7 @@ func (*ClusterExistsOut) ProtoMessage() {} func (x *ClusterExistsOut) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -440,20 +423,17 @@ func (x *ClusterExistsOut) GetExists() bool { } type GetClusterKubeconfigOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Kubeconfig []byte `protobuf:"bytes,1,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"` unknownFields protoimpl.UnknownFields - - Kubeconfig []byte `protobuf:"bytes,1,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"` + sizeCache protoimpl.SizeCache } 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) - } + mi := &file_infra_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetClusterKubeconfigOut) String() string { @@ -464,7 +444,7 @@ func (*GetClusterKubeconfigOut) ProtoMessage() {} func (x *GetClusterKubeconfigOut) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -487,22 +467,19 @@ func (x *GetClusterKubeconfigOut) GetKubeconfig() []byte { } type MarkClusterOnlineAtIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MarkClusterOnlineAtIn) Reset() { *x = MarkClusterOnlineAtIn{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarkClusterOnlineAtIn) String() string { @@ -513,7 +490,7 @@ func (*MarkClusterOnlineAtIn) ProtoMessage() {} func (x *MarkClusterOnlineAtIn) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -550,18 +527,16 @@ func (x *MarkClusterOnlineAtIn) GetTimestamp() *timestamppb.Timestamp { } type MarkClusterOnlineAtOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MarkClusterOnlineAtOut) Reset() { *x = MarkClusterOnlineAtOut{} - if protoimpl.UnsafeEnabled { - mi := &file_infra_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_infra_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarkClusterOnlineAtOut) String() string { @@ -572,7 +547,7 @@ func (*MarkClusterOnlineAtOut) ProtoMessage() {} func (x *MarkClusterOnlineAtOut) ProtoReflect() protoreflect.Message { mi := &file_infra_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -589,113 +564,73 @@ func (*MarkClusterOnlineAtOut) Descriptor() ([]byte, []int) { var File_infra_proto protoreflect.FileDescriptor -var file_infra_proto_rawDesc = []byte{ - 0x0a, 0x0b, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa4, - 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x12, - 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, - 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, - 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x12, 0x2c, 0x0a, 0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, - 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6e, 0x73, 0x48, 0x6f, 0x73, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6e, 0x73, 0x48, 0x6f, 0x73, 0x74, 0x12, - 0x1e, 0x0a, 0x0a, 0x49, 0x41, 0x43, 0x4a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x49, 0x41, 0x43, 0x4a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x28, 0x0a, 0x0f, 0x49, 0x41, 0x43, 0x4a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x49, 0x41, 0x43, 0x4a, 0x6f, 0x62, - 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xc9, 0x01, 0x0a, 0x0d, 0x47, 0x65, - 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x70, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, - 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x20, 0x0a, - 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x70, 0x6f, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x70, 0x6f, 0x6f, - 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x5a, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, - 0x70, 0x6f, 0x6f, 0x6c, 0x4f, 0x75, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x49, 0x41, 0x43, 0x4a, 0x6f, - 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x49, 0x41, 0x43, - 0x4a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x49, 0x41, 0x43, 0x4a, 0x6f, - 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0f, 0x49, 0x41, 0x43, 0x4a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x0f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, - 0x73, 0x74, 0x73, 0x49, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, - 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, - 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, - 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x63, 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, 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, 0x22, 0x95, 0x01, 0x0a, 0x15, 0x4d, 0x61, 0x72, 0x6b, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x41, 0x74, 0x49, 0x6e, 0x12, 0x20, 0x0a, 0x0b, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, - 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x61, - 0x72, 0x6b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x41, - 0x74, 0x4f, 0x75, 0x74, 0x32, 0xa3, 0x02, 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, 0x12, 0x46, 0x0a, 0x13, 0x4d, 0x61, 0x72, 0x6b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x41, 0x74, 0x12, 0x16, 0x2e, 0x4d, 0x61, 0x72, 0x6b, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x41, 0x74, 0x49, - 0x6e, 0x1a, 0x17, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, - 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x41, 0x74, 0x4f, 0x75, 0x74, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2f, - 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_infra_proto_rawDesc = "" + + "\n" + + "\vinfra.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa4\x01\n" + + "\fGetClusterIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + + "\buserName\x18\x02 \x01(\tR\buserName\x12\x1c\n" + + "\tuserEmail\x18\x03 \x01(\tR\tuserEmail\x12 \n" + + "\vaccountName\x18\x04 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x05 \x01(\tR\vclusterName\"\xa1\x01\n" + + "\rGetClusterOut\x12,\n" + + "\x11messageQueueTopic\x18\x01 \x01(\tR\x11messageQueueTopic\x12\x18\n" + + "\adnsHost\x18\x02 \x01(\tR\adnsHost\x12\x1e\n" + + "\n" + + "IACJobName\x18\x03 \x01(\tR\n" + + "IACJobName\x12(\n" + + "\x0fIACJobNamespace\x18\x04 \x01(\tR\x0fIACJobNamespace\"\xc9\x01\n" + + "\rGetNodepoolIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + + "\buserName\x18\x02 \x01(\tR\buserName\x12\x1c\n" + + "\tuserEmail\x18\x03 \x01(\tR\tuserEmail\x12 \n" + + "\vaccountName\x18\x04 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x05 \x01(\tR\vclusterName\x12\"\n" + + "\fnodepoolName\x18\x06 \x01(\tR\fnodepoolName\"Z\n" + + "\x0eGetNodepoolOut\x12\x1e\n" + + "\n" + + "IACJobName\x18\x01 \x01(\tR\n" + + "IACJobName\x12(\n" + + "\x0fIACJobNamespace\x18\x02 \x01(\tR\x0fIACJobNamespace\"\xa7\x01\n" + + "\x0fClusterExistsIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + + "\buserName\x18\x02 \x01(\tR\buserName\x12\x1c\n" + + "\tuserEmail\x18\x03 \x01(\tR\tuserEmail\x12 \n" + + "\vaccountName\x18\x04 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x05 \x01(\tR\vclusterName\"*\n" + + "\x10ClusterExistsOut\x12\x16\n" + + "\x06exists\x18\x01 \x01(\bR\x06exists\"9\n" + + "\x17GetClusterKubeconfigOut\x12\x1e\n" + + "\n" + + "kubeconfig\x18\x01 \x01(\fR\n" + + "kubeconfig\"\x95\x01\n" + + "\x15MarkClusterOnlineAtIn\x12 \n" + + "\vaccountName\x18\x01 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x02 \x01(\tR\vclusterName\x128\n" + + "\ttimestamp\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\"\x18\n" + + "\x16MarkClusterOnlineAtOut2\xa3\x02\n" + + "\x05Infra\x12+\n" + + "\n" + + "GetCluster\x12\r.GetClusterIn\x1a\x0e.GetClusterOut\x12.\n" + + "\vGetNodepool\x12\x0e.GetNodepoolIn\x1a\x0f.GetNodepoolOut\x124\n" + + "\rClusterExists\x12\x10.ClusterExistsIn\x1a\x11.ClusterExistsOut\x12?\n" + + "\x14GetClusterKubeconfig\x12\r.GetClusterIn\x1a\x18.GetClusterKubeconfigOut\x12F\n" + + "\x13MarkClusterOnlineAt\x12\x16.MarkClusterOnlineAtIn\x1a\x17.MarkClusterOnlineAtOutB\tZ\a./infrab\x06proto3" var ( file_infra_proto_rawDescOnce sync.Once - file_infra_proto_rawDescData = file_infra_proto_rawDesc + file_infra_proto_rawDescData []byte ) func file_infra_proto_rawDescGZIP() []byte { file_infra_proto_rawDescOnce.Do(func() { - file_infra_proto_rawDescData = protoimpl.X.CompressGZIP(file_infra_proto_rawDescData) + file_infra_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_infra_proto_rawDesc), len(file_infra_proto_rawDesc))) }) return file_infra_proto_rawDescData } var file_infra_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_infra_proto_goTypes = []interface{}{ +var file_infra_proto_goTypes = []any{ (*GetClusterIn)(nil), // 0: GetClusterIn (*GetClusterOut)(nil), // 1: GetClusterOut (*GetNodepoolIn)(nil), // 2: GetNodepoolIn @@ -731,121 +666,11 @@ func file_infra_proto_init() { if File_infra_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_infra_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetClusterIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetClusterOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetNodepoolIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetNodepoolOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterExistsIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterExistsOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - 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 - } - } - file_infra_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarkClusterOnlineAtIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_infra_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarkClusterOnlineAtOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_infra_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_infra_proto_rawDesc), len(file_infra_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, @@ -856,7 +681,6 @@ func file_infra_proto_init() { MessageInfos: file_infra_proto_msgTypes, }.Build() File_infra_proto = out.File - file_infra_proto_rawDesc = nil file_infra_proto_goTypes = nil file_infra_proto_depIdxs = nil } diff --git a/grpc-interfaces/infra/infra_grpc.pb.go b/grpc-interfaces/infra/infra_grpc.pb.go index a772207ad..9877c4cdb 100644 --- a/grpc-interfaces/infra/infra_grpc.pb.go +++ b/grpc-interfaces/infra/infra_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: infra.proto package infra @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Infra_GetCluster_FullMethodName = "/Infra/GetCluster" @@ -46,8 +46,9 @@ func NewInfraClient(cc grpc.ClientConnInterface) InfraClient { } func (c *infraClient) GetCluster(ctx context.Context, in *GetClusterIn, opts ...grpc.CallOption) (*GetClusterOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetClusterOut) - err := c.cc.Invoke(ctx, Infra_GetCluster_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_GetCluster_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +56,9 @@ func (c *infraClient) GetCluster(ctx context.Context, in *GetClusterIn, opts ... } func (c *infraClient) GetNodepool(ctx context.Context, in *GetNodepoolIn, opts ...grpc.CallOption) (*GetNodepoolOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetNodepoolOut) - err := c.cc.Invoke(ctx, Infra_GetNodepool_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_GetNodepool_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +66,9 @@ func (c *infraClient) GetNodepool(ctx context.Context, in *GetNodepoolIn, opts . } func (c *infraClient) ClusterExists(ctx context.Context, in *ClusterExistsIn, opts ...grpc.CallOption) (*ClusterExistsOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ClusterExistsOut) - err := c.cc.Invoke(ctx, Infra_ClusterExists_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_ClusterExists_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +76,9 @@ func (c *infraClient) ClusterExists(ctx context.Context, in *ClusterExistsIn, op } func (c *infraClient) GetClusterKubeconfig(ctx context.Context, in *GetClusterIn, opts ...grpc.CallOption) (*GetClusterKubeconfigOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetClusterKubeconfigOut) - err := c.cc.Invoke(ctx, Infra_GetClusterKubeconfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_GetClusterKubeconfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,8 +86,9 @@ func (c *infraClient) GetClusterKubeconfig(ctx context.Context, in *GetClusterIn } func (c *infraClient) MarkClusterOnlineAt(ctx context.Context, in *MarkClusterOnlineAtIn, opts ...grpc.CallOption) (*MarkClusterOnlineAtOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MarkClusterOnlineAtOut) - err := c.cc.Invoke(ctx, Infra_MarkClusterOnlineAt_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Infra_MarkClusterOnlineAt_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func (c *infraClient) MarkClusterOnlineAt(ctx context.Context, in *MarkClusterOn // InfraServer is the server API for Infra service. // All implementations must embed UnimplementedInfraServer -// for forward compatibility +// for forward compatibility. type InfraServer interface { GetCluster(context.Context, *GetClusterIn) (*GetClusterOut, error) GetNodepool(context.Context, *GetNodepoolIn) (*GetNodepoolOut, error) @@ -102,9 +107,12 @@ type InfraServer interface { mustEmbedUnimplementedInfraServer() } -// UnimplementedInfraServer must be embedded to have forward compatible implementations. -type UnimplementedInfraServer struct { -} +// UnimplementedInfraServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInfraServer struct{} func (UnimplementedInfraServer) GetCluster(context.Context, *GetClusterIn) (*GetClusterOut, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCluster not implemented") @@ -122,6 +130,7 @@ func (UnimplementedInfraServer) MarkClusterOnlineAt(context.Context, *MarkCluste return nil, status.Errorf(codes.Unimplemented, "method MarkClusterOnlineAt not implemented") } func (UnimplementedInfraServer) mustEmbedUnimplementedInfraServer() {} +func (UnimplementedInfraServer) testEmbeddedByValue() {} // UnsafeInfraServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to InfraServer will @@ -131,6 +140,13 @@ type UnsafeInfraServer interface { } func RegisterInfraServer(s grpc.ServiceRegistrar, srv InfraServer) { + // If the following call pancis, it indicates UnimplementedInfraServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Infra_ServiceDesc, srv) } diff --git a/grpc-interfaces/kloudlite.io/rpc/accounts/accounts.pb.go b/grpc-interfaces/kloudlite.io/rpc/accounts/accounts.pb.go index 04ccb3a95..10ed3da39 100644 --- a/grpc-interfaces/kloudlite.io/rpc/accounts/accounts.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/accounts/accounts.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: accounts.proto package accounts @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,21 +22,18 @@ const ( ) type GetAccountIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + AccountName string `protobuf:"bytes,2,opt,name=accountName,proto3" json:"accountName,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - AccountName string `protobuf:"bytes,2,opt,name=accountName,proto3" json:"accountName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAccountIn) Reset() { *x = GetAccountIn{} - if protoimpl.UnsafeEnabled { - mi := &file_accounts_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_accounts_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAccountIn) String() string { @@ -46,7 +44,7 @@ func (*GetAccountIn) ProtoMessage() {} func (x *GetAccountIn) ProtoReflect() protoreflect.Message { mi := &file_accounts_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -76,23 +74,20 @@ func (x *GetAccountIn) GetAccountName() string { } type GetAccountOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IsActive bool `protobuf:"varint,1,opt,name=isActive,proto3" json:"isActive,omitempty"` - TargetNamespace string `protobuf:"bytes,2,opt,name=targetNamespace,proto3" json:"targetNamespace,omitempty"` - AccountId string `protobuf:"bytes,3,opt,name=accountId,proto3" json:"accountId,omitempty"` - KloudliteGatewayRegion string `protobuf:"bytes,4,opt,name=kloudliteGatewayRegion,proto3" json:"kloudliteGatewayRegion,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + IsActive bool `protobuf:"varint,1,opt,name=isActive,proto3" json:"isActive,omitempty"` + TargetNamespace string `protobuf:"bytes,2,opt,name=targetNamespace,proto3" json:"targetNamespace,omitempty"` + AccountId string `protobuf:"bytes,3,opt,name=accountId,proto3" json:"accountId,omitempty"` + KloudliteGatewayRegion string `protobuf:"bytes,4,opt,name=kloudliteGatewayRegion,proto3" json:"kloudliteGatewayRegion,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetAccountOut) Reset() { *x = GetAccountOut{} - if protoimpl.UnsafeEnabled { - mi := &file_accounts_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_accounts_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAccountOut) String() string { @@ -103,7 +98,7 @@ func (*GetAccountOut) ProtoMessage() {} func (x *GetAccountOut) ProtoReflect() protoreflect.Message { mi := &file_accounts_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -148,46 +143,35 @@ func (x *GetAccountOut) GetKloudliteGatewayRegion() string { var File_accounts_proto protoreflect.FileDescriptor -var file_accounts_proto_rawDesc = []byte{ - 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x48, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, - 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xab, 0x01, 0x0a, 0x0d, 0x47, - 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4f, 0x75, 0x74, 0x12, 0x1a, 0x0a, 0x08, - 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, - 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, - 0x12, 0x36, 0x0a, 0x16, 0x6b, 0x6c, 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, 0x47, 0x61, 0x74, - 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x16, 0x6b, 0x6c, 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, - 0x61, 0x79, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x32, 0x37, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x0d, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, - 0x6e, 0x1a, 0x0e, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4f, 0x75, - 0x74, 0x42, 0x1b, 0x5a, 0x19, 0x6b, 0x6c, 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69, - 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_accounts_proto_rawDesc = "" + + "\n" + + "\x0eaccounts.proto\"H\n" + + "\fGetAccountIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12 \n" + + "\vaccountName\x18\x02 \x01(\tR\vaccountName\"\xab\x01\n" + + "\rGetAccountOut\x12\x1a\n" + + "\bisActive\x18\x01 \x01(\bR\bisActive\x12(\n" + + "\x0ftargetNamespace\x18\x02 \x01(\tR\x0ftargetNamespace\x12\x1c\n" + + "\taccountId\x18\x03 \x01(\tR\taccountId\x126\n" + + "\x16kloudliteGatewayRegion\x18\x04 \x01(\tR\x16kloudliteGatewayRegion27\n" + + "\bAccounts\x12+\n" + + "\n" + + "GetAccount\x12\r.GetAccountIn\x1a\x0e.GetAccountOutB\x1bZ\x19kloudlite.io/rpc/accountsb\x06proto3" var ( file_accounts_proto_rawDescOnce sync.Once - file_accounts_proto_rawDescData = file_accounts_proto_rawDesc + file_accounts_proto_rawDescData []byte ) func file_accounts_proto_rawDescGZIP() []byte { file_accounts_proto_rawDescOnce.Do(func() { - file_accounts_proto_rawDescData = protoimpl.X.CompressGZIP(file_accounts_proto_rawDescData) + file_accounts_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_accounts_proto_rawDesc), len(file_accounts_proto_rawDesc))) }) return file_accounts_proto_rawDescData } var file_accounts_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_accounts_proto_goTypes = []interface{}{ +var file_accounts_proto_goTypes = []any{ (*GetAccountIn)(nil), // 0: GetAccountIn (*GetAccountOut)(nil), // 1: GetAccountOut } @@ -206,37 +190,11 @@ func file_accounts_proto_init() { if File_accounts_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_accounts_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAccountIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_accounts_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAccountOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_accounts_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_accounts_proto_rawDesc), len(file_accounts_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -247,7 +205,6 @@ func file_accounts_proto_init() { MessageInfos: file_accounts_proto_msgTypes, }.Build() File_accounts_proto = out.File - file_accounts_proto_rawDesc = nil file_accounts_proto_goTypes = nil file_accounts_proto_depIdxs = nil } diff --git a/grpc-interfaces/kloudlite.io/rpc/accounts/accounts_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/accounts/accounts_grpc.pb.go index 91b0b817c..e0f958273 100644 --- a/grpc-interfaces/kloudlite.io/rpc/accounts/accounts_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/accounts/accounts_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: accounts.proto package accounts @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Accounts_GetAccount_FullMethodName = "/Accounts/GetAccount" @@ -38,8 +38,9 @@ func NewAccountsClient(cc grpc.ClientConnInterface) AccountsClient { } func (c *accountsClient) GetAccount(ctx context.Context, in *GetAccountIn, opts ...grpc.CallOption) (*GetAccountOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAccountOut) - err := c.cc.Invoke(ctx, Accounts_GetAccount_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Accounts_GetAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *accountsClient) GetAccount(ctx context.Context, in *GetAccountIn, opts // AccountsServer is the server API for Accounts service. // All implementations must embed UnimplementedAccountsServer -// for forward compatibility +// for forward compatibility. type AccountsServer interface { GetAccount(context.Context, *GetAccountIn) (*GetAccountOut, error) mustEmbedUnimplementedAccountsServer() } -// UnimplementedAccountsServer must be embedded to have forward compatible implementations. -type UnimplementedAccountsServer struct { -} +// UnimplementedAccountsServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAccountsServer struct{} func (UnimplementedAccountsServer) GetAccount(context.Context, *GetAccountIn) (*GetAccountOut, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented") } func (UnimplementedAccountsServer) mustEmbedUnimplementedAccountsServer() {} +func (UnimplementedAccountsServer) testEmbeddedByValue() {} // UnsafeAccountsServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AccountsServer will @@ -71,6 +76,13 @@ type UnsafeAccountsServer interface { } func RegisterAccountsServer(s grpc.ServiceRegistrar, srv AccountsServer) { + // If the following call pancis, it indicates UnimplementedAccountsServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Accounts_ServiceDesc, srv) } diff --git a/grpc-interfaces/kloudlite.io/rpc/agent/kubeagent.pb.go b/grpc-interfaces/kloudlite.io/rpc/agent/kubeagent.pb.go index df0445227..cffd9cae0 100644 --- a/grpc-interfaces/kloudlite.io/rpc/agent/kubeagent.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/agent/kubeagent.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: kubeagent.proto package agent @@ -12,6 +12,7 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,23 +23,20 @@ const ( ) type PayloadIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Action string `protobuf:"bytes,1,opt,name=Action,proto3" json:"Action,omitempty"` + Payload map[string]*anypb.Any `protobuf:"bytes,2,rep,name=payload,proto3" json:"payload,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + AccountId string `protobuf:"bytes,3,opt,name=accountId,proto3" json:"accountId,omitempty"` + ResourceRef string `protobuf:"bytes,4,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` unknownFields protoimpl.UnknownFields - - Action string `protobuf:"bytes,1,opt,name=Action,proto3" json:"Action,omitempty"` - Payload map[string]*anypb.Any `protobuf:"bytes,2,rep,name=payload,proto3" json:"payload,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - AccountId string `protobuf:"bytes,3,opt,name=accountId,proto3" json:"accountId,omitempty"` - ResourceRef string `protobuf:"bytes,4,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PayloadIn) Reset() { *x = PayloadIn{} - if protoimpl.UnsafeEnabled { - mi := &file_kubeagent_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kubeagent_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PayloadIn) String() string { @@ -49,7 +47,7 @@ func (*PayloadIn) ProtoMessage() {} func (x *PayloadIn) ProtoReflect() protoreflect.Message { mi := &file_kubeagent_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -93,23 +91,20 @@ func (x *PayloadIn) GetResourceRef() string { } type PayloadOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Stdout string `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"` + Stderr string `protobuf:"bytes,3,opt,name=stderr,proto3" json:"stderr,omitempty"` + ExecErr string `protobuf:"bytes,4,opt,name=execErr,proto3" json:"execErr,omitempty"` unknownFields protoimpl.UnknownFields - - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - Stdout string `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"` - Stderr string `protobuf:"bytes,3,opt,name=stderr,proto3" json:"stderr,omitempty"` - ExecErr string `protobuf:"bytes,4,opt,name=execErr,proto3" json:"execErr,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PayloadOut) Reset() { *x = PayloadOut{} - if protoimpl.UnsafeEnabled { - mi := &file_kubeagent_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kubeagent_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PayloadOut) String() string { @@ -120,7 +115,7 @@ func (*PayloadOut) ProtoMessage() {} func (x *PayloadOut) ProtoReflect() protoreflect.Message { mi := &file_kubeagent_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -165,53 +160,41 @@ func (x *PayloadOut) GetExecErr() string { var File_kubeagent_proto protoreflect.FileDescriptor -var file_kubeagent_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6b, 0x75, 0x62, 0x65, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe8, 0x01, 0x0a, - 0x09, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x2e, - 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, - 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, - 0x65, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x52, 0x65, 0x66, 0x1a, 0x50, 0x0a, 0x0c, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x70, 0x0a, 0x0a, 0x50, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x4f, 0x75, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, - 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x12, - 0x18, 0x0a, 0x07, 0x65, 0x78, 0x65, 0x63, 0x45, 0x72, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x65, 0x78, 0x65, 0x63, 0x45, 0x72, 0x72, 0x32, 0x31, 0x0a, 0x09, 0x4b, 0x75, 0x62, - 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x09, 0x4b, 0x75, 0x62, 0x65, 0x41, 0x70, - 0x70, 0x6c, 0x79, 0x12, 0x0a, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x1a, - 0x0b, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x75, 0x74, 0x42, 0x18, 0x5a, 0x16, - 0x6b, 0x6c, 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x70, 0x63, - 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_kubeagent_proto_rawDesc = "" + + "\n" + + "\x0fkubeagent.proto\x1a\x19google/protobuf/any.proto\"\xe8\x01\n" + + "\tPayloadIn\x12\x16\n" + + "\x06Action\x18\x01 \x01(\tR\x06Action\x121\n" + + "\apayload\x18\x02 \x03(\v2\x17.PayloadIn.PayloadEntryR\apayload\x12\x1c\n" + + "\taccountId\x18\x03 \x01(\tR\taccountId\x12 \n" + + "\vResourceRef\x18\x04 \x01(\tR\vResourceRef\x1aP\n" + + "\fPayloadEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12*\n" + + "\x05value\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x05value:\x028\x01\"p\n" + + "\n" + + "PayloadOut\x12\x18\n" + + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x16\n" + + "\x06stdout\x18\x02 \x01(\tR\x06stdout\x12\x16\n" + + "\x06stderr\x18\x03 \x01(\tR\x06stderr\x12\x18\n" + + "\aexecErr\x18\x04 \x01(\tR\aexecErr21\n" + + "\tKubeAgent\x12$\n" + + "\tKubeApply\x12\n" + + ".PayloadIn\x1a\v.PayloadOutB\x18Z\x16kloudlite.io/rpc/agentb\x06proto3" var ( file_kubeagent_proto_rawDescOnce sync.Once - file_kubeagent_proto_rawDescData = file_kubeagent_proto_rawDesc + file_kubeagent_proto_rawDescData []byte ) func file_kubeagent_proto_rawDescGZIP() []byte { file_kubeagent_proto_rawDescOnce.Do(func() { - file_kubeagent_proto_rawDescData = protoimpl.X.CompressGZIP(file_kubeagent_proto_rawDescData) + file_kubeagent_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_kubeagent_proto_rawDesc), len(file_kubeagent_proto_rawDesc))) }) return file_kubeagent_proto_rawDescData } var file_kubeagent_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_kubeagent_proto_goTypes = []interface{}{ +var file_kubeagent_proto_goTypes = []any{ (*PayloadIn)(nil), // 0: PayloadIn (*PayloadOut)(nil), // 1: PayloadOut nil, // 2: PayloadIn.PayloadEntry @@ -234,37 +217,11 @@ func file_kubeagent_proto_init() { if File_kubeagent_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_kubeagent_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PayloadIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kubeagent_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PayloadOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_kubeagent_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_kubeagent_proto_rawDesc), len(file_kubeagent_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, @@ -275,7 +232,6 @@ func file_kubeagent_proto_init() { MessageInfos: file_kubeagent_proto_msgTypes, }.Build() File_kubeagent_proto = out.File - file_kubeagent_proto_rawDesc = nil file_kubeagent_proto_goTypes = nil file_kubeagent_proto_depIdxs = nil } diff --git a/grpc-interfaces/kloudlite.io/rpc/agent/kubeagent_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/agent/kubeagent_grpc.pb.go index 0d761c0bd..23f34a77e 100644 --- a/grpc-interfaces/kloudlite.io/rpc/agent/kubeagent_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/agent/kubeagent_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: kubeagent.proto package agent @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( KubeAgent_KubeApply_FullMethodName = "/KubeAgent/KubeApply" @@ -38,8 +38,9 @@ func NewKubeAgentClient(cc grpc.ClientConnInterface) KubeAgentClient { } func (c *kubeAgentClient) KubeApply(ctx context.Context, in *PayloadIn, opts ...grpc.CallOption) (*PayloadOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PayloadOut) - err := c.cc.Invoke(ctx, KubeAgent_KubeApply_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KubeAgent_KubeApply_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *kubeAgentClient) KubeApply(ctx context.Context, in *PayloadIn, opts ... // KubeAgentServer is the server API for KubeAgent service. // All implementations must embed UnimplementedKubeAgentServer -// for forward compatibility +// for forward compatibility. type KubeAgentServer interface { KubeApply(context.Context, *PayloadIn) (*PayloadOut, error) mustEmbedUnimplementedKubeAgentServer() } -// UnimplementedKubeAgentServer must be embedded to have forward compatible implementations. -type UnimplementedKubeAgentServer struct { -} +// UnimplementedKubeAgentServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedKubeAgentServer struct{} func (UnimplementedKubeAgentServer) KubeApply(context.Context, *PayloadIn) (*PayloadOut, error) { return nil, status.Errorf(codes.Unimplemented, "method KubeApply not implemented") } func (UnimplementedKubeAgentServer) mustEmbedUnimplementedKubeAgentServer() {} +func (UnimplementedKubeAgentServer) testEmbeddedByValue() {} // UnsafeKubeAgentServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to KubeAgentServer will @@ -71,6 +76,13 @@ type UnsafeKubeAgentServer interface { } func RegisterKubeAgentServer(s grpc.ServiceRegistrar, srv KubeAgentServer) { + // If the following call pancis, it indicates UnimplementedKubeAgentServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&KubeAgent_ServiceDesc, srv) } diff --git a/grpc-interfaces/kloudlite.io/rpc/auth/auth.pb.go b/grpc-interfaces/kloudlite.io/rpc/auth/auth.pb.go index bc0102096..caebb41aa 100644 --- a/grpc-interfaces/kloudlite.io/rpc/auth/auth.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/auth/auth.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: auth.proto package auth @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,20 +22,17 @@ const ( ) type GetUserByEmailRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUserByEmailRequest) Reset() { *x = GetUserByEmailRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_auth_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetUserByEmailRequest) String() string { @@ -45,7 +43,7 @@ func (*GetUserByEmailRequest) ProtoMessage() {} func (x *GetUserByEmailRequest) ProtoReflect() protoreflect.Message { mi := &file_auth_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -68,20 +66,17 @@ func (x *GetUserByEmailRequest) GetEmail() string { } type GetUserByEmailOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUserByEmailOut) Reset() { *x = GetUserByEmailOut{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_auth_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetUserByEmailOut) String() string { @@ -92,7 +87,7 @@ func (*GetUserByEmailOut) ProtoMessage() {} func (x *GetUserByEmailOut) ProtoReflect() protoreflect.Message { mi := &file_auth_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -115,22 +110,19 @@ func (x *GetUserByEmailOut) GetUserId() string { } type GetAccessTokenRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` + TokenId string `protobuf:"bytes,3,opt,name=tokenId,proto3" json:"tokenId,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` - TokenId string `protobuf:"bytes,3,opt,name=tokenId,proto3" json:"tokenId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAccessTokenRequest) Reset() { *x = GetAccessTokenRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_auth_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAccessTokenRequest) String() string { @@ -141,7 +133,7 @@ func (*GetAccessTokenRequest) ProtoMessage() {} func (x *GetAccessTokenRequest) ProtoReflect() protoreflect.Message { mi := &file_auth_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -178,24 +170,21 @@ func (x *GetAccessTokenRequest) GetTokenId() string { } type AccessTokenOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` + OauthToken *OauthToken `protobuf:"bytes,4,opt,name=oauthToken,proto3" json:"oauthToken,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` - OauthToken *OauthToken `protobuf:"bytes,4,opt,name=oauthToken,proto3" json:"oauthToken,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AccessTokenOut) Reset() { *x = AccessTokenOut{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_auth_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessTokenOut) String() string { @@ -206,7 +195,7 @@ func (*AccessTokenOut) ProtoMessage() {} func (x *AccessTokenOut) ProtoReflect() protoreflect.Message { mi := &file_auth_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -257,24 +246,21 @@ func (x *AccessTokenOut) GetOauthToken() *OauthToken { } type OauthToken struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` + Expiry int64 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` + Raw string `protobuf:"bytes,5,opt,name=raw,proto3" json:"raw,omitempty"` unknownFields protoimpl.UnknownFields - - AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` - TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` - RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` - Expiry int64 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` - Raw string `protobuf:"bytes,5,opt,name=raw,proto3" json:"raw,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OauthToken) Reset() { *x = OauthToken{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_auth_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OauthToken) String() string { @@ -285,7 +271,7 @@ func (*OauthToken) ProtoMessage() {} func (x *OauthToken) ProtoReflect() protoreflect.Message { mi := &file_auth_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -336,20 +322,17 @@ func (x *OauthToken) GetRaw() string { } type GetUserIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUserIn) Reset() { *x = GetUserIn{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_auth_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetUserIn) String() string { @@ -360,7 +343,7 @@ func (*GetUserIn) ProtoMessage() {} func (x *GetUserIn) ProtoReflect() protoreflect.Message { mi := &file_auth_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -383,22 +366,19 @@ func (x *GetUserIn) GetUserId() string { } type GetUserOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUserOut) Reset() { *x = GetUserOut{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_auth_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetUserOut) String() string { @@ -409,7 +389,7 @@ func (*GetUserOut) ProtoMessage() {} func (x *GetUserOut) ProtoReflect() protoreflect.Message { mi := &file_auth_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -445,98 +425,491 @@ func (x *GetUserOut) GetName() string { return "" } -var File_auth_proto protoreflect.FileDescriptor +type GenerateMachineSessionIn struct { + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + MachineId string `protobuf:"bytes,2,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` + Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GenerateMachineSessionIn) Reset() { + *x = GenerateMachineSessionIn{} + mi := &file_auth_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GenerateMachineSessionIn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateMachineSessionIn) ProtoMessage() {} + +func (x *GenerateMachineSessionIn) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GenerateMachineSessionIn.ProtoReflect.Descriptor instead. +func (*GenerateMachineSessionIn) Descriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{7} +} -var file_auth_proto_rawDesc = []byte{ - 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 0x15, - 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x2b, 0x0a, 0x11, 0x47, - 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4f, 0x75, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x22, - 0x97, 0x01, 0x0a, 0x0e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4f, - 0x75, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, - 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, - 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x0a, - 0x6f, 0x61, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0b, 0x2e, 0x4f, 0x61, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x0a, 0x6f, - 0x61, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x0a, 0x4f, 0x61, - 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, - 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, - 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x61, 0x77, 0x22, 0x23, 0x0a, 0x09, 0x47, 0x65, 0x74, - 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x46, - 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, - 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, - 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xa6, 0x01, 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, - 0x39, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x12, 0x16, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x41, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4f, 0x75, 0x74, 0x12, 0x3f, 0x0a, 0x11, 0x45, 0x6e, - 0x73, 0x75, 0x72, 0x65, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, - 0x16, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, - 0x72, 0x42, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4f, 0x75, 0x74, 0x12, 0x22, 0x0a, 0x07, 0x47, - 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0a, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, - 0x49, 0x6e, 0x1a, 0x0b, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x42, - 0x17, 0x5a, 0x15, 0x6b, 0x6c, 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69, 0x6f, 0x2f, - 0x72, 0x70, 0x63, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func (x *GenerateMachineSessionIn) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *GenerateMachineSessionIn) GetMachineId() string { + if x != nil { + return x.MachineId + } + return "" +} + +func (x *GenerateMachineSessionIn) GetCluster() string { + if x != nil { + return x.Cluster + } + return "" +} + +type GenerateMachineSessionOut struct { + state protoimpl.MessageState `protogen:"open.v1"` + SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GenerateMachineSessionOut) Reset() { + *x = GenerateMachineSessionOut{} + mi := &file_auth_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GenerateMachineSessionOut) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateMachineSessionOut) ProtoMessage() {} + +func (x *GenerateMachineSessionOut) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GenerateMachineSessionOut.ProtoReflect.Descriptor instead. +func (*GenerateMachineSessionOut) Descriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{8} } +func (x *GenerateMachineSessionOut) GetSessionId() string { + if x != nil { + return x.SessionId + } + return "" +} + +type ClearMachineSessionByMachineIn struct { + state protoimpl.MessageState `protogen:"open.v1"` + MachineId string `protobuf:"bytes,1,opt,name=machineId,proto3" json:"machineId,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ClearMachineSessionByMachineIn) Reset() { + *x = ClearMachineSessionByMachineIn{} + mi := &file_auth_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ClearMachineSessionByMachineIn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClearMachineSessionByMachineIn) ProtoMessage() {} + +func (x *ClearMachineSessionByMachineIn) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClearMachineSessionByMachineIn.ProtoReflect.Descriptor instead. +func (*ClearMachineSessionByMachineIn) Descriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{9} +} + +func (x *ClearMachineSessionByMachineIn) GetMachineId() string { + if x != nil { + return x.MachineId + } + return "" +} + +type ClearMachineSessionByMachineOut struct { + state protoimpl.MessageState `protogen:"open.v1"` + Done bool `protobuf:"varint,1,opt,name=done,proto3" json:"done,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ClearMachineSessionByMachineOut) Reset() { + *x = ClearMachineSessionByMachineOut{} + mi := &file_auth_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ClearMachineSessionByMachineOut) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClearMachineSessionByMachineOut) ProtoMessage() {} + +func (x *ClearMachineSessionByMachineOut) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClearMachineSessionByMachineOut.ProtoReflect.Descriptor instead. +func (*ClearMachineSessionByMachineOut) Descriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{10} +} + +func (x *ClearMachineSessionByMachineOut) GetDone() bool { + if x != nil { + return x.Done + } + return false +} + +type ClearMachineSessionByUserIn struct { + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ClearMachineSessionByUserIn) Reset() { + *x = ClearMachineSessionByUserIn{} + mi := &file_auth_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ClearMachineSessionByUserIn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClearMachineSessionByUserIn) ProtoMessage() {} + +func (x *ClearMachineSessionByUserIn) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClearMachineSessionByUserIn.ProtoReflect.Descriptor instead. +func (*ClearMachineSessionByUserIn) Descriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{11} +} + +func (x *ClearMachineSessionByUserIn) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +type ClearMachineSessionByUserOut struct { + state protoimpl.MessageState `protogen:"open.v1"` + Done bool `protobuf:"varint,1,opt,name=done,proto3" json:"done,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ClearMachineSessionByUserOut) Reset() { + *x = ClearMachineSessionByUserOut{} + mi := &file_auth_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ClearMachineSessionByUserOut) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClearMachineSessionByUserOut) ProtoMessage() {} + +func (x *ClearMachineSessionByUserOut) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClearMachineSessionByUserOut.ProtoReflect.Descriptor instead. +func (*ClearMachineSessionByUserOut) Descriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{12} +} + +func (x *ClearMachineSessionByUserOut) GetDone() bool { + if x != nil { + return x.Done + } + return false +} + +type ClearMachineSessionByTeamIn struct { + state protoimpl.MessageState `protogen:"open.v1"` + TeamId string `protobuf:"bytes,1,opt,name=teamId,proto3" json:"teamId,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ClearMachineSessionByTeamIn) Reset() { + *x = ClearMachineSessionByTeamIn{} + mi := &file_auth_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ClearMachineSessionByTeamIn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClearMachineSessionByTeamIn) ProtoMessage() {} + +func (x *ClearMachineSessionByTeamIn) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClearMachineSessionByTeamIn.ProtoReflect.Descriptor instead. +func (*ClearMachineSessionByTeamIn) Descriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{13} +} + +func (x *ClearMachineSessionByTeamIn) GetTeamId() string { + if x != nil { + return x.TeamId + } + return "" +} + +type ClearMachineSessionByTeamOut struct { + state protoimpl.MessageState `protogen:"open.v1"` + Done bool `protobuf:"varint,1,opt,name=done,proto3" json:"done,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ClearMachineSessionByTeamOut) Reset() { + *x = ClearMachineSessionByTeamOut{} + mi := &file_auth_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ClearMachineSessionByTeamOut) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClearMachineSessionByTeamOut) ProtoMessage() {} + +func (x *ClearMachineSessionByTeamOut) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClearMachineSessionByTeamOut.ProtoReflect.Descriptor instead. +func (*ClearMachineSessionByTeamOut) Descriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{14} +} + +func (x *ClearMachineSessionByTeamOut) GetDone() bool { + if x != nil { + return x.Done + } + return false +} + +var File_auth_proto protoreflect.FileDescriptor + +const file_auth_proto_rawDesc = "" + + "\n" + + "\n" + + "auth.proto\"-\n" + + "\x15GetUserByEmailRequest\x12\x14\n" + + "\x05email\x18\x01 \x01(\tR\x05email\"+\n" + + "\x11GetUserByEmailOut\x12\x16\n" + + "\x06UserId\x18\x01 \x01(\tR\x06UserId\"e\n" + + "\x15GetAccessTokenRequest\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + + "\bprovider\x18\x02 \x01(\tR\bprovider\x12\x18\n" + + "\atokenId\x18\x03 \x01(\tR\atokenId\"\x97\x01\n" + + "\x0eAccessTokenOut\x12\x0e\n" + + "\x02id\x18\x05 \x01(\tR\x02id\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x14\n" + + "\x05email\x18\x02 \x01(\tR\x05email\x12\x1a\n" + + "\bprovider\x18\x03 \x01(\tR\bprovider\x12+\n" + + "\n" + + "oauthToken\x18\x04 \x01(\v2\v.OauthTokenR\n" + + "oauthToken\"\x9d\x01\n" + + "\n" + + "OauthToken\x12!\n" + + "\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12\x1d\n" + + "\n" + + "token_type\x18\x02 \x01(\tR\ttokenType\x12#\n" + + "\rrefresh_token\x18\x03 \x01(\tR\frefreshToken\x12\x16\n" + + "\x06expiry\x18\x04 \x01(\x03R\x06expiry\x12\x10\n" + + "\x03raw\x18\x05 \x01(\tR\x03raw\"#\n" + + "\tGetUserIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\"F\n" + + "\n" + + "GetUserOut\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" + + "\x05email\x18\x02 \x01(\tR\x05email\x12\x12\n" + + "\x04name\x18\x03 \x01(\tR\x04name\"k\n" + + "\x18GenerateMachineSessionIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1d\n" + + "\n" + + "machine_id\x18\x02 \x01(\tR\tmachineId\x12\x18\n" + + "\acluster\x18\x03 \x01(\tR\acluster\"9\n" + + "\x19GenerateMachineSessionOut\x12\x1c\n" + + "\tsessionId\x18\x01 \x01(\tR\tsessionId\">\n" + + "\x1eClearMachineSessionByMachineIn\x12\x1c\n" + + "\tmachineId\x18\x01 \x01(\tR\tmachineId\"5\n" + + "\x1fClearMachineSessionByMachineOut\x12\x12\n" + + "\x04done\x18\x01 \x01(\bR\x04done\"5\n" + + "\x1bClearMachineSessionByUserIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\"2\n" + + "\x1cClearMachineSessionByUserOut\x12\x12\n" + + "\x04done\x18\x01 \x01(\bR\x04done\"5\n" + + "\x1bClearMachineSessionByTeamIn\x12\x16\n" + + "\x06teamId\x18\x01 \x01(\tR\x06teamId\"2\n" + + "\x1cClearMachineSessionByTeamOut\x12\x12\n" + + "\x04done\x18\x01 \x01(\bR\x04done2\x8e\x04\n" + + "\x04Auth\x129\n" + + "\x0eGetAccessToken\x12\x16.GetAccessTokenRequest\x1a\x0f.AccessTokenOut\x12?\n" + + "\x11EnsureUserByEmail\x12\x16.GetUserByEmailRequest\x1a\x12.GetUserByEmailOut\x12\"\n" + + "\aGetUser\x12\n" + + ".GetUserIn\x1a\v.GetUserOut\x12O\n" + + "\x16GenerateMachineSession\x12\x19.GenerateMachineSessionIn\x1a\x1a.GenerateMachineSessionOut\x12a\n" + + "\x1cClearMachineSessionByMachine\x12\x1f.ClearMachineSessionByMachineIn\x1a .ClearMachineSessionByMachineOut\x12X\n" + + "\x19ClearMachineSessionByUser\x12\x1c.ClearMachineSessionByUserIn\x1a\x1d.ClearMachineSessionByUserOut\x12X\n" + + "\x19ClearMachineSessionByTeam\x12\x1c.ClearMachineSessionByTeamIn\x1a\x1d.ClearMachineSessionByTeamOutB\x17Z\x15kloudlite.io/rpc/authb\x06proto3" + var ( file_auth_proto_rawDescOnce sync.Once - file_auth_proto_rawDescData = file_auth_proto_rawDesc + file_auth_proto_rawDescData []byte ) func file_auth_proto_rawDescGZIP() []byte { file_auth_proto_rawDescOnce.Do(func() { - file_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth_proto_rawDescData) + file_auth_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_auth_proto_rawDesc), len(file_auth_proto_rawDesc))) }) return file_auth_proto_rawDescData } -var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_auth_proto_goTypes = []interface{}{ - (*GetUserByEmailRequest)(nil), // 0: GetUserByEmailRequest - (*GetUserByEmailOut)(nil), // 1: GetUserByEmailOut - (*GetAccessTokenRequest)(nil), // 2: GetAccessTokenRequest - (*AccessTokenOut)(nil), // 3: AccessTokenOut - (*OauthToken)(nil), // 4: OauthToken - (*GetUserIn)(nil), // 5: GetUserIn - (*GetUserOut)(nil), // 6: GetUserOut +var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_auth_proto_goTypes = []any{ + (*GetUserByEmailRequest)(nil), // 0: GetUserByEmailRequest + (*GetUserByEmailOut)(nil), // 1: GetUserByEmailOut + (*GetAccessTokenRequest)(nil), // 2: GetAccessTokenRequest + (*AccessTokenOut)(nil), // 3: AccessTokenOut + (*OauthToken)(nil), // 4: OauthToken + (*GetUserIn)(nil), // 5: GetUserIn + (*GetUserOut)(nil), // 6: GetUserOut + (*GenerateMachineSessionIn)(nil), // 7: GenerateMachineSessionIn + (*GenerateMachineSessionOut)(nil), // 8: GenerateMachineSessionOut + (*ClearMachineSessionByMachineIn)(nil), // 9: ClearMachineSessionByMachineIn + (*ClearMachineSessionByMachineOut)(nil), // 10: ClearMachineSessionByMachineOut + (*ClearMachineSessionByUserIn)(nil), // 11: ClearMachineSessionByUserIn + (*ClearMachineSessionByUserOut)(nil), // 12: ClearMachineSessionByUserOut + (*ClearMachineSessionByTeamIn)(nil), // 13: ClearMachineSessionByTeamIn + (*ClearMachineSessionByTeamOut)(nil), // 14: ClearMachineSessionByTeamOut } var file_auth_proto_depIdxs = []int32{ - 4, // 0: AccessTokenOut.oauthToken:type_name -> OauthToken - 2, // 1: Auth.GetAccessToken:input_type -> GetAccessTokenRequest - 0, // 2: Auth.EnsureUserByEmail:input_type -> GetUserByEmailRequest - 5, // 3: Auth.GetUser:input_type -> GetUserIn - 3, // 4: Auth.GetAccessToken:output_type -> AccessTokenOut - 1, // 5: Auth.EnsureUserByEmail:output_type -> GetUserByEmailOut - 6, // 6: Auth.GetUser:output_type -> GetUserOut - 4, // [4:7] is the sub-list for method output_type - 1, // [1:4] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name + 4, // 0: AccessTokenOut.oauthToken:type_name -> OauthToken + 2, // 1: Auth.GetAccessToken:input_type -> GetAccessTokenRequest + 0, // 2: Auth.EnsureUserByEmail:input_type -> GetUserByEmailRequest + 5, // 3: Auth.GetUser:input_type -> GetUserIn + 7, // 4: Auth.GenerateMachineSession:input_type -> GenerateMachineSessionIn + 9, // 5: Auth.ClearMachineSessionByMachine:input_type -> ClearMachineSessionByMachineIn + 11, // 6: Auth.ClearMachineSessionByUser:input_type -> ClearMachineSessionByUserIn + 13, // 7: Auth.ClearMachineSessionByTeam:input_type -> ClearMachineSessionByTeamIn + 3, // 8: Auth.GetAccessToken:output_type -> AccessTokenOut + 1, // 9: Auth.EnsureUserByEmail:output_type -> GetUserByEmailOut + 6, // 10: Auth.GetUser:output_type -> GetUserOut + 8, // 11: Auth.GenerateMachineSession:output_type -> GenerateMachineSessionOut + 10, // 12: Auth.ClearMachineSessionByMachine:output_type -> ClearMachineSessionByMachineOut + 12, // 13: Auth.ClearMachineSessionByUser:output_type -> ClearMachineSessionByUserOut + 14, // 14: Auth.ClearMachineSessionByTeam:output_type -> ClearMachineSessionByTeamOut + 8, // [8:15] is the sub-list for method output_type + 1, // [1:8] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } func init() { file_auth_proto_init() } @@ -544,99 +917,13 @@ func file_auth_proto_init() { if File_auth_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserByEmailRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserByEmailOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAccessTokenRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccessTokenOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OauthToken); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_auth_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_auth_proto_rawDesc), len(file_auth_proto_rawDesc)), NumEnums: 0, - NumMessages: 7, + NumMessages: 15, NumExtensions: 0, NumServices: 1, }, @@ -645,7 +932,6 @@ func file_auth_proto_init() { MessageInfos: file_auth_proto_msgTypes, }.Build() File_auth_proto = out.File - file_auth_proto_rawDesc = nil file_auth_proto_goTypes = nil file_auth_proto_depIdxs = nil } diff --git a/grpc-interfaces/kloudlite.io/rpc/auth/auth_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/auth/auth_grpc.pb.go index d7b047468..f1fe9f3b2 100644 --- a/grpc-interfaces/kloudlite.io/rpc/auth/auth_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/auth/auth_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: auth.proto package auth @@ -15,13 +15,17 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( - Auth_GetAccessToken_FullMethodName = "/Auth/GetAccessToken" - Auth_EnsureUserByEmail_FullMethodName = "/Auth/EnsureUserByEmail" - Auth_GetUser_FullMethodName = "/Auth/GetUser" + Auth_GetAccessToken_FullMethodName = "/Auth/GetAccessToken" + Auth_EnsureUserByEmail_FullMethodName = "/Auth/EnsureUserByEmail" + Auth_GetUser_FullMethodName = "/Auth/GetUser" + Auth_GenerateMachineSession_FullMethodName = "/Auth/GenerateMachineSession" + Auth_ClearMachineSessionByMachine_FullMethodName = "/Auth/ClearMachineSessionByMachine" + Auth_ClearMachineSessionByUser_FullMethodName = "/Auth/ClearMachineSessionByUser" + Auth_ClearMachineSessionByTeam_FullMethodName = "/Auth/ClearMachineSessionByTeam" ) // AuthClient is the client API for Auth service. @@ -31,6 +35,10 @@ type AuthClient interface { GetAccessToken(ctx context.Context, in *GetAccessTokenRequest, opts ...grpc.CallOption) (*AccessTokenOut, error) EnsureUserByEmail(ctx context.Context, in *GetUserByEmailRequest, opts ...grpc.CallOption) (*GetUserByEmailOut, error) GetUser(ctx context.Context, in *GetUserIn, opts ...grpc.CallOption) (*GetUserOut, error) + GenerateMachineSession(ctx context.Context, in *GenerateMachineSessionIn, opts ...grpc.CallOption) (*GenerateMachineSessionOut, error) + ClearMachineSessionByMachine(ctx context.Context, in *ClearMachineSessionByMachineIn, opts ...grpc.CallOption) (*ClearMachineSessionByMachineOut, error) + ClearMachineSessionByUser(ctx context.Context, in *ClearMachineSessionByUserIn, opts ...grpc.CallOption) (*ClearMachineSessionByUserOut, error) + ClearMachineSessionByTeam(ctx context.Context, in *ClearMachineSessionByTeamIn, opts ...grpc.CallOption) (*ClearMachineSessionByTeamOut, error) } type authClient struct { @@ -42,8 +50,9 @@ func NewAuthClient(cc grpc.ClientConnInterface) AuthClient { } func (c *authClient) GetAccessToken(ctx context.Context, in *GetAccessTokenRequest, opts ...grpc.CallOption) (*AccessTokenOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AccessTokenOut) - err := c.cc.Invoke(ctx, Auth_GetAccessToken_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Auth_GetAccessToken_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +60,9 @@ func (c *authClient) GetAccessToken(ctx context.Context, in *GetAccessTokenReque } func (c *authClient) EnsureUserByEmail(ctx context.Context, in *GetUserByEmailRequest, opts ...grpc.CallOption) (*GetUserByEmailOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetUserByEmailOut) - err := c.cc.Invoke(ctx, Auth_EnsureUserByEmail_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Auth_EnsureUserByEmail_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +70,49 @@ func (c *authClient) EnsureUserByEmail(ctx context.Context, in *GetUserByEmailRe } func (c *authClient) GetUser(ctx context.Context, in *GetUserIn, opts ...grpc.CallOption) (*GetUserOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetUserOut) - err := c.cc.Invoke(ctx, Auth_GetUser_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Auth_GetUser_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) GenerateMachineSession(ctx context.Context, in *GenerateMachineSessionIn, opts ...grpc.CallOption) (*GenerateMachineSessionOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GenerateMachineSessionOut) + err := c.cc.Invoke(ctx, Auth_GenerateMachineSession_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) ClearMachineSessionByMachine(ctx context.Context, in *ClearMachineSessionByMachineIn, opts ...grpc.CallOption) (*ClearMachineSessionByMachineOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ClearMachineSessionByMachineOut) + err := c.cc.Invoke(ctx, Auth_ClearMachineSessionByMachine_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) ClearMachineSessionByUser(ctx context.Context, in *ClearMachineSessionByUserIn, opts ...grpc.CallOption) (*ClearMachineSessionByUserOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ClearMachineSessionByUserOut) + err := c.cc.Invoke(ctx, Auth_ClearMachineSessionByUser_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) ClearMachineSessionByTeam(ctx context.Context, in *ClearMachineSessionByTeamIn, opts ...grpc.CallOption) (*ClearMachineSessionByTeamOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ClearMachineSessionByTeamOut) + err := c.cc.Invoke(ctx, Auth_ClearMachineSessionByTeam_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,17 +121,24 @@ func (c *authClient) GetUser(ctx context.Context, in *GetUserIn, opts ...grpc.Ca // AuthServer is the server API for Auth service. // All implementations must embed UnimplementedAuthServer -// for forward compatibility +// for forward compatibility. type AuthServer interface { GetAccessToken(context.Context, *GetAccessTokenRequest) (*AccessTokenOut, error) EnsureUserByEmail(context.Context, *GetUserByEmailRequest) (*GetUserByEmailOut, error) GetUser(context.Context, *GetUserIn) (*GetUserOut, error) + GenerateMachineSession(context.Context, *GenerateMachineSessionIn) (*GenerateMachineSessionOut, error) + ClearMachineSessionByMachine(context.Context, *ClearMachineSessionByMachineIn) (*ClearMachineSessionByMachineOut, error) + ClearMachineSessionByUser(context.Context, *ClearMachineSessionByUserIn) (*ClearMachineSessionByUserOut, error) + ClearMachineSessionByTeam(context.Context, *ClearMachineSessionByTeamIn) (*ClearMachineSessionByTeamOut, error) mustEmbedUnimplementedAuthServer() } -// UnimplementedAuthServer must be embedded to have forward compatible implementations. -type UnimplementedAuthServer struct { -} +// UnimplementedAuthServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAuthServer struct{} func (UnimplementedAuthServer) GetAccessToken(context.Context, *GetAccessTokenRequest) (*AccessTokenOut, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAccessToken not implemented") @@ -91,7 +149,20 @@ func (UnimplementedAuthServer) EnsureUserByEmail(context.Context, *GetUserByEmai func (UnimplementedAuthServer) GetUser(context.Context, *GetUserIn) (*GetUserOut, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") } +func (UnimplementedAuthServer) GenerateMachineSession(context.Context, *GenerateMachineSessionIn) (*GenerateMachineSessionOut, error) { + return nil, status.Errorf(codes.Unimplemented, "method GenerateMachineSession not implemented") +} +func (UnimplementedAuthServer) ClearMachineSessionByMachine(context.Context, *ClearMachineSessionByMachineIn) (*ClearMachineSessionByMachineOut, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearMachineSessionByMachine not implemented") +} +func (UnimplementedAuthServer) ClearMachineSessionByUser(context.Context, *ClearMachineSessionByUserIn) (*ClearMachineSessionByUserOut, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearMachineSessionByUser not implemented") +} +func (UnimplementedAuthServer) ClearMachineSessionByTeam(context.Context, *ClearMachineSessionByTeamIn) (*ClearMachineSessionByTeamOut, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearMachineSessionByTeam not implemented") +} func (UnimplementedAuthServer) mustEmbedUnimplementedAuthServer() {} +func (UnimplementedAuthServer) testEmbeddedByValue() {} // UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AuthServer will @@ -101,6 +172,13 @@ type UnsafeAuthServer interface { } func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer) { + // If the following call pancis, it indicates UnimplementedAuthServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Auth_ServiceDesc, srv) } @@ -158,6 +236,78 @@ func _Auth_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } +func _Auth_GenerateMachineSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GenerateMachineSessionIn) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).GenerateMachineSession(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Auth_GenerateMachineSession_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).GenerateMachineSession(ctx, req.(*GenerateMachineSessionIn)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_ClearMachineSessionByMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearMachineSessionByMachineIn) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).ClearMachineSessionByMachine(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Auth_ClearMachineSessionByMachine_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).ClearMachineSessionByMachine(ctx, req.(*ClearMachineSessionByMachineIn)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_ClearMachineSessionByUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearMachineSessionByUserIn) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).ClearMachineSessionByUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Auth_ClearMachineSessionByUser_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).ClearMachineSessionByUser(ctx, req.(*ClearMachineSessionByUserIn)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_ClearMachineSessionByTeam_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearMachineSessionByTeamIn) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).ClearMachineSessionByTeam(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Auth_ClearMachineSessionByTeam_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).ClearMachineSessionByTeam(ctx, req.(*ClearMachineSessionByTeamIn)) + } + return interceptor(ctx, in, info, handler) +} + // Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -177,6 +327,22 @@ var Auth_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetUser", Handler: _Auth_GetUser_Handler, }, + { + MethodName: "GenerateMachineSession", + Handler: _Auth_GenerateMachineSession_Handler, + }, + { + MethodName: "ClearMachineSessionByMachine", + Handler: _Auth_ClearMachineSessionByMachine_Handler, + }, + { + MethodName: "ClearMachineSessionByUser", + Handler: _Auth_ClearMachineSessionByUser_Handler, + }, + { + MethodName: "ClearMachineSessionByTeam", + Handler: _Auth_ClearMachineSessionByTeam_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth.proto", diff --git a/grpc-interfaces/kloudlite.io/rpc/ci/ci.pb.go b/grpc-interfaces/kloudlite.io/rpc/ci/ci.pb.go index 7a6f793b5..3dccbd76e 100644 --- a/grpc-interfaces/kloudlite.io/rpc/ci/ci.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/ci/ci.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: ci.proto package ci @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,26 +22,23 @@ const ( ) type PipelineIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + GitProvider string `protobuf:"bytes,4,opt,name=gitProvider,proto3" json:"gitProvider,omitempty"` + GitRepoUrl string `protobuf:"bytes,5,opt,name=gitRepoUrl,proto3" json:"gitRepoUrl,omitempty"` + GitBranch string `protobuf:"bytes,6,opt,name=gitBranch,proto3" json:"gitBranch,omitempty"` + UserId string `protobuf:"bytes,9,opt,name=userId,proto3" json:"userId,omitempty"` + ProjectId string `protobuf:"bytes,10,opt,name=projectId,proto3" json:"projectId,omitempty"` + Metadata map[string]string `protobuf:"bytes,11,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - GitProvider string `protobuf:"bytes,4,opt,name=gitProvider,proto3" json:"gitProvider,omitempty"` - GitRepoUrl string `protobuf:"bytes,5,opt,name=gitRepoUrl,proto3" json:"gitRepoUrl,omitempty"` - GitBranch string `protobuf:"bytes,6,opt,name=gitBranch,proto3" json:"gitBranch,omitempty"` - UserId string `protobuf:"bytes,9,opt,name=userId,proto3" json:"userId,omitempty"` - ProjectId string `protobuf:"bytes,10,opt,name=projectId,proto3" json:"projectId,omitempty"` - Metadata map[string]string `protobuf:"bytes,11,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *PipelineIn) Reset() { *x = PipelineIn{} - if protoimpl.UnsafeEnabled { - mi := &file_ci_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ci_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PipelineIn) String() string { @@ -51,7 +49,7 @@ func (*PipelineIn) ProtoMessage() {} func (x *PipelineIn) ProtoReflect() protoreflect.Message { mi := &file_ci_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -116,20 +114,17 @@ func (x *PipelineIn) GetMetadata() map[string]string { } type PipelineOutput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + PipelineId string `protobuf:"bytes,1,opt,name=pipelineId,proto3" json:"pipelineId,omitempty"` unknownFields protoimpl.UnknownFields - - PipelineId string `protobuf:"bytes,1,opt,name=pipelineId,proto3" json:"pipelineId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PipelineOutput) Reset() { *x = PipelineOutput{} - if protoimpl.UnsafeEnabled { - mi := &file_ci_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ci_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PipelineOutput) String() string { @@ -140,7 +135,7 @@ func (*PipelineOutput) ProtoMessage() {} func (x *PipelineOutput) ProtoReflect() protoreflect.Message { mi := &file_ci_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -163,20 +158,17 @@ func (x *PipelineOutput) GetPipelineId() string { } type HarborProjectIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *HarborProjectIn) Reset() { *x = HarborProjectIn{} - if protoimpl.UnsafeEnabled { - mi := &file_ci_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ci_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HarborProjectIn) String() string { @@ -187,7 +179,7 @@ func (*HarborProjectIn) ProtoMessage() {} func (x *HarborProjectIn) ProtoReflect() protoreflect.Message { mi := &file_ci_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -210,20 +202,17 @@ func (x *HarborProjectIn) GetName() string { } type HarborProjectOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` unknownFields protoimpl.UnknownFields - - Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` + sizeCache protoimpl.SizeCache } func (x *HarborProjectOut) Reset() { *x = HarborProjectOut{} - if protoimpl.UnsafeEnabled { - mi := &file_ci_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ci_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HarborProjectOut) String() string { @@ -234,7 +223,7 @@ func (*HarborProjectOut) ProtoMessage() {} func (x *HarborProjectOut) ProtoReflect() protoreflect.Message { mi := &file_ci_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -258,61 +247,50 @@ func (x *HarborProjectOut) GetStatus() bool { var File_ci_proto protoreflect.FileDescriptor -var file_ci_proto_rawDesc = []byte{ - 0x0a, 0x08, 0x63, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaa, 0x02, 0x0a, 0x0a, 0x50, - 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, - 0x0b, 0x67, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x67, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, - 0x1e, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x55, 0x72, 0x6c, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x69, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x55, 0x72, 0x6c, 0x12, - 0x1c, 0x0a, 0x09, 0x67, 0x69, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x16, 0x0a, - 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x50, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, - 0x49, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x30, 0x0a, 0x0e, 0x50, 0x69, 0x70, 0x65, 0x6c, - 0x69, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x69, 0x70, - 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, - 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x22, 0x25, 0x0a, 0x0f, 0x48, 0x61, 0x72, - 0x62, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0x2a, 0x0a, 0x10, 0x48, 0x61, 0x72, 0x62, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x4f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0x7c, 0x0a, 0x02, - 0x43, 0x49, 0x12, 0x3a, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x61, 0x72, 0x62, - 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x10, 0x2e, 0x48, 0x61, 0x72, 0x62, - 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x1a, 0x11, 0x2e, 0x48, 0x61, - 0x72, 0x62, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x12, 0x3a, - 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x48, 0x61, 0x72, 0x62, 0x6f, 0x72, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x10, 0x2e, 0x48, 0x61, 0x72, 0x62, 0x6f, 0x72, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x1a, 0x11, 0x2e, 0x48, 0x61, 0x72, 0x62, 0x6f, 0x72, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x42, 0x15, 0x5a, 0x13, 0x6b, 0x6c, - 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, - 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_ci_proto_rawDesc = "" + + "\n" + + "\bci.proto\"\xaa\x02\n" + + "\n" + + "PipelineIn\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + + "\vgitProvider\x18\x04 \x01(\tR\vgitProvider\x12\x1e\n" + + "\n" + + "gitRepoUrl\x18\x05 \x01(\tR\n" + + "gitRepoUrl\x12\x1c\n" + + "\tgitBranch\x18\x06 \x01(\tR\tgitBranch\x12\x16\n" + + "\x06userId\x18\t \x01(\tR\x06userId\x12\x1c\n" + + "\tprojectId\x18\n" + + " \x01(\tR\tprojectId\x125\n" + + "\bmetadata\x18\v \x03(\v2\x19.PipelineIn.MetadataEntryR\bmetadata\x1a;\n" + + "\rMetadataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"0\n" + + "\x0ePipelineOutput\x12\x1e\n" + + "\n" + + "pipelineId\x18\x01 \x01(\tR\n" + + "pipelineId\"%\n" + + "\x0fHarborProjectIn\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"*\n" + + "\x10HarborProjectOut\x12\x16\n" + + "\x06status\x18\x01 \x01(\bR\x06status2|\n" + + "\x02CI\x12:\n" + + "\x13CreateHarborProject\x12\x10.HarborProjectIn\x1a\x11.HarborProjectOut\x12:\n" + + "\x13DeleteHarborProject\x12\x10.HarborProjectIn\x1a\x11.HarborProjectOutB\x15Z\x13kloudlite.io/rpc/cib\x06proto3" var ( file_ci_proto_rawDescOnce sync.Once - file_ci_proto_rawDescData = file_ci_proto_rawDesc + file_ci_proto_rawDescData []byte ) func file_ci_proto_rawDescGZIP() []byte { file_ci_proto_rawDescOnce.Do(func() { - file_ci_proto_rawDescData = protoimpl.X.CompressGZIP(file_ci_proto_rawDescData) + file_ci_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ci_proto_rawDesc), len(file_ci_proto_rawDesc))) }) return file_ci_proto_rawDescData } var file_ci_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_ci_proto_goTypes = []interface{}{ +var file_ci_proto_goTypes = []any{ (*PipelineIn)(nil), // 0: PipelineIn (*PipelineOutput)(nil), // 1: PipelineOutput (*HarborProjectIn)(nil), // 2: HarborProjectIn @@ -337,61 +315,11 @@ func file_ci_proto_init() { if File_ci_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_ci_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PipelineIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ci_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PipelineOutput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ci_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HarborProjectIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ci_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HarborProjectOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_ci_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_ci_proto_rawDesc), len(file_ci_proto_rawDesc)), NumEnums: 0, NumMessages: 5, NumExtensions: 0, @@ -402,7 +330,6 @@ func file_ci_proto_init() { MessageInfos: file_ci_proto_msgTypes, }.Build() File_ci_proto = out.File - file_ci_proto_rawDesc = nil file_ci_proto_goTypes = nil file_ci_proto_depIdxs = nil } diff --git a/grpc-interfaces/kloudlite.io/rpc/ci/ci_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/ci/ci_grpc.pb.go index aa4fbd339..a8435a4f2 100644 --- a/grpc-interfaces/kloudlite.io/rpc/ci/ci_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/ci/ci_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: ci.proto package ci @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CI_CreateHarborProject_FullMethodName = "/CI/CreateHarborProject" @@ -40,8 +40,9 @@ func NewCIClient(cc grpc.ClientConnInterface) CIClient { } func (c *cIClient) CreateHarborProject(ctx context.Context, in *HarborProjectIn, opts ...grpc.CallOption) (*HarborProjectOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HarborProjectOut) - err := c.cc.Invoke(ctx, CI_CreateHarborProject_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CI_CreateHarborProject_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,8 +50,9 @@ func (c *cIClient) CreateHarborProject(ctx context.Context, in *HarborProjectIn, } func (c *cIClient) DeleteHarborProject(ctx context.Context, in *HarborProjectIn, opts ...grpc.CallOption) (*HarborProjectOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HarborProjectOut) - err := c.cc.Invoke(ctx, CI_DeleteHarborProject_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CI_DeleteHarborProject_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,16 +61,19 @@ func (c *cIClient) DeleteHarborProject(ctx context.Context, in *HarborProjectIn, // CIServer is the server API for CI service. // All implementations must embed UnimplementedCIServer -// for forward compatibility +// for forward compatibility. type CIServer interface { CreateHarborProject(context.Context, *HarborProjectIn) (*HarborProjectOut, error) DeleteHarborProject(context.Context, *HarborProjectIn) (*HarborProjectOut, error) mustEmbedUnimplementedCIServer() } -// UnimplementedCIServer must be embedded to have forward compatible implementations. -type UnimplementedCIServer struct { -} +// UnimplementedCIServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCIServer struct{} func (UnimplementedCIServer) CreateHarborProject(context.Context, *HarborProjectIn) (*HarborProjectOut, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateHarborProject not implemented") @@ -77,6 +82,7 @@ func (UnimplementedCIServer) DeleteHarborProject(context.Context, *HarborProject return nil, status.Errorf(codes.Unimplemented, "method DeleteHarborProject not implemented") } func (UnimplementedCIServer) mustEmbedUnimplementedCIServer() {} +func (UnimplementedCIServer) testEmbeddedByValue() {} // UnsafeCIServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CIServer will @@ -86,6 +92,13 @@ type UnsafeCIServer interface { } func RegisterCIServer(s grpc.ServiceRegistrar, srv CIServer) { + // If the following call pancis, it indicates UnimplementedCIServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CI_ServiceDesc, srv) } diff --git a/grpc-interfaces/kloudlite.io/rpc/comms/comms.pb.go b/grpc-interfaces/kloudlite.io/rpc/comms/comms.pb.go index 35c93117b..a7f1c2187 100644 --- a/grpc-interfaces/kloudlite.io/rpc/comms/comms.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/comms/comms.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: comms.proto package comms @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,22 +22,19 @@ const ( ) type VerificationEmailInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - VerificationToken string `protobuf:"bytes,3,opt,name=verificationToken,proto3" json:"verificationToken,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + VerificationToken string `protobuf:"bytes,3,opt,name=verificationToken,proto3" json:"verificationToken,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *VerificationEmailInput) Reset() { *x = VerificationEmailInput{} - if protoimpl.UnsafeEnabled { - mi := &file_comms_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_comms_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VerificationEmailInput) String() string { @@ -47,7 +45,7 @@ func (*VerificationEmailInput) ProtoMessage() {} func (x *VerificationEmailInput) ProtoReflect() protoreflect.Message { mi := &file_comms_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -84,21 +82,18 @@ func (x *VerificationEmailInput) GetVerificationToken() string { } type WelcomeEmailInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *WelcomeEmailInput) Reset() { *x = WelcomeEmailInput{} - if protoimpl.UnsafeEnabled { - mi := &file_comms_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_comms_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WelcomeEmailInput) String() string { @@ -109,7 +104,7 @@ func (*WelcomeEmailInput) ProtoMessage() {} func (x *WelcomeEmailInput) ProtoReflect() protoreflect.Message { mi := &file_comms_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -139,22 +134,19 @@ func (x *WelcomeEmailInput) GetName() string { } type PasswordResetEmailInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + ResetToken string `protobuf:"bytes,3,opt,name=resetToken,proto3" json:"resetToken,omitempty"` unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - ResetToken string `protobuf:"bytes,3,opt,name=resetToken,proto3" json:"resetToken,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PasswordResetEmailInput) Reset() { *x = PasswordResetEmailInput{} - if protoimpl.UnsafeEnabled { - mi := &file_comms_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_comms_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PasswordResetEmailInput) String() string { @@ -165,7 +157,7 @@ func (*PasswordResetEmailInput) ProtoMessage() {} func (x *PasswordResetEmailInput) ProtoReflect() protoreflect.Message { mi := &file_comms_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -202,24 +194,21 @@ func (x *PasswordResetEmailInput) GetResetToken() string { } type AccountMemberInviteEmailInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` - InvitationToken string `protobuf:"bytes,2,opt,name=invitationToken,proto3" json:"invitationToken,omitempty"` - InvitedBy string `protobuf:"bytes,3,opt,name=invitedBy,proto3" json:"invitedBy,omitempty"` - Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` + InvitationToken string `protobuf:"bytes,2,opt,name=invitationToken,proto3" json:"invitationToken,omitempty"` + InvitedBy string `protobuf:"bytes,3,opt,name=invitedBy,proto3" json:"invitedBy,omitempty"` + Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AccountMemberInviteEmailInput) Reset() { *x = AccountMemberInviteEmailInput{} - if protoimpl.UnsafeEnabled { - mi := &file_comms_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_comms_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountMemberInviteEmailInput) String() string { @@ -230,7 +219,7 @@ func (*AccountMemberInviteEmailInput) ProtoMessage() {} func (x *AccountMemberInviteEmailInput) ProtoReflect() protoreflect.Message { mi := &file_comms_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -281,24 +270,21 @@ func (x *AccountMemberInviteEmailInput) GetName() string { } type ProjectMemberInviteEmailInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"` - InvitationToken string `protobuf:"bytes,2,opt,name=invitationToken,proto3" json:"invitationToken,omitempty"` - InvitedBy string `protobuf:"bytes,3,opt,name=invitedBy,proto3" json:"invitedBy,omitempty"` - Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"` + InvitationToken string `protobuf:"bytes,2,opt,name=invitationToken,proto3" json:"invitationToken,omitempty"` + InvitedBy string `protobuf:"bytes,3,opt,name=invitedBy,proto3" json:"invitedBy,omitempty"` + Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ProjectMemberInviteEmailInput) Reset() { *x = ProjectMemberInviteEmailInput{} - if protoimpl.UnsafeEnabled { - mi := &file_comms_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_comms_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProjectMemberInviteEmailInput) String() string { @@ -309,7 +295,7 @@ func (*ProjectMemberInviteEmailInput) ProtoMessage() {} func (x *ProjectMemberInviteEmailInput) ProtoReflect() protoreflect.Message { mi := &file_comms_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -360,25 +346,22 @@ func (x *ProjectMemberInviteEmailInput) GetName() string { } type SendContactUsEmailInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + CompanyName string `protobuf:"bytes,3,opt,name=companyName,proto3" json:"companyName,omitempty"` + Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` + MobileNumber string `protobuf:"bytes,5,opt,name=mobileNumber,proto3" json:"mobileNumber,omitempty"` + Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - CompanyName string `protobuf:"bytes,3,opt,name=companyName,proto3" json:"companyName,omitempty"` - Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` - MobileNumber string `protobuf:"bytes,5,opt,name=mobileNumber,proto3" json:"mobileNumber,omitempty"` - Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SendContactUsEmailInput) Reset() { *x = SendContactUsEmailInput{} - if protoimpl.UnsafeEnabled { - mi := &file_comms_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_comms_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SendContactUsEmailInput) String() string { @@ -389,7 +372,7 @@ func (*SendContactUsEmailInput) ProtoMessage() {} func (x *SendContactUsEmailInput) ProtoReflect() protoreflect.Message { mi := &file_comms_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -447,18 +430,16 @@ func (x *SendContactUsEmailInput) GetMessage() string { } type Void struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Void) Reset() { *x = Void{} - if protoimpl.UnsafeEnabled { - mi := &file_comms_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_comms_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Void) String() string { @@ -469,7 +450,7 @@ func (*Void) ProtoMessage() {} func (x *Void) ProtoReflect() protoreflect.Message { mi := &file_comms_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -486,105 +467,65 @@ func (*Void) Descriptor() ([]byte, []int) { var File_comms_proto protoreflect.FileDescriptor -var file_comms_proto_rawDesc = []byte{ - 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x70, 0x0a, - 0x16, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6d, 0x61, - 0x69, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x76, 0x65, - 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, - 0x3d, 0x0a, 0x11, 0x57, 0x65, 0x6c, 0x63, 0x6f, 0x6d, 0x65, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x49, - 0x6e, 0x70, 0x75, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x63, - 0x0a, 0x17, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x65, 0x74, 0x45, - 0x6d, 0x61, 0x69, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, - 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x73, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x65, 0x74, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0xb3, 0x01, 0x0a, 0x1d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x45, 0x6d, 0x61, 0x69, 0x6c, - 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x69, 0x6e, 0x76, 0x69, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x42, 0x79, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb3, 0x01, 0x0a, 0x1d, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, - 0x65, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, - 0x0f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x76, 0x69, 0x74, - 0x65, 0x64, 0x42, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x76, 0x69, - 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, - 0xbd, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x55, - 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, - 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, - 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x6e, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x6f, 0x62, 0x69, 0x6c, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, - 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x6f, 0x62, 0x69, 0x6c, 0x65, 0x4e, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, - 0x06, 0x0a, 0x04, 0x56, 0x6f, 0x69, 0x64, 0x32, 0x9e, 0x03, 0x0a, 0x05, 0x43, 0x6f, 0x6d, 0x6d, - 0x73, 0x12, 0x37, 0x0a, 0x15, 0x53, 0x65, 0x6e, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x17, 0x2e, 0x56, 0x65, 0x72, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x49, 0x6e, - 0x70, 0x75, 0x74, 0x1a, 0x05, 0x2e, 0x56, 0x6f, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x16, 0x53, 0x65, - 0x6e, 0x64, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x65, 0x74, 0x45, - 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x18, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, - 0x65, 0x73, 0x65, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x1a, 0x05, - 0x2e, 0x56, 0x6f, 0x69, 0x64, 0x12, 0x45, 0x0a, 0x1c, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, - 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1e, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x45, 0x6d, 0x61, 0x69, 0x6c, - 0x49, 0x6e, 0x70, 0x75, 0x74, 0x1a, 0x05, 0x2e, 0x56, 0x6f, 0x69, 0x64, 0x12, 0x45, 0x0a, 0x1c, - 0x53, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1e, 0x2e, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x76, 0x69, - 0x74, 0x65, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x1a, 0x05, 0x2e, 0x56, - 0x6f, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x10, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x65, 0x6c, 0x63, 0x6f, - 0x6d, 0x65, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x2e, 0x57, 0x65, 0x6c, 0x63, 0x6f, 0x6d, - 0x65, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x1a, 0x05, 0x2e, 0x56, 0x6f, - 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x10, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x69, 0x74, 0x69, 0x6e, - 0x67, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x2e, 0x57, 0x65, 0x6c, 0x63, 0x6f, 0x6d, 0x65, - 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x1a, 0x05, 0x2e, 0x56, 0x6f, 0x69, - 0x64, 0x12, 0x35, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, - 0x55, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x18, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x43, 0x6f, - 0x6e, 0x74, 0x61, 0x63, 0x74, 0x55, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x49, 0x6e, 0x70, 0x75, - 0x74, 0x1a, 0x05, 0x2e, 0x56, 0x6f, 0x69, 0x64, 0x42, 0x18, 0x5a, 0x16, 0x6b, 0x6c, 0x6f, 0x75, - 0x64, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6d, - 0x6d, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_comms_proto_rawDesc = "" + + "\n" + + "\vcomms.proto\"p\n" + + "\x16VerificationEmailInput\x12\x14\n" + + "\x05email\x18\x01 \x01(\tR\x05email\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12,\n" + + "\x11verificationToken\x18\x03 \x01(\tR\x11verificationToken\"=\n" + + "\x11WelcomeEmailInput\x12\x14\n" + + "\x05email\x18\x01 \x01(\tR\x05email\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\"c\n" + + "\x17PasswordResetEmailInput\x12\x14\n" + + "\x05email\x18\x01 \x01(\tR\x05email\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12\x1e\n" + + "\n" + + "resetToken\x18\x03 \x01(\tR\n" + + "resetToken\"\xb3\x01\n" + + "\x1dAccountMemberInviteEmailInput\x12 \n" + + "\vaccountName\x18\x01 \x01(\tR\vaccountName\x12(\n" + + "\x0finvitationToken\x18\x02 \x01(\tR\x0finvitationToken\x12\x1c\n" + + "\tinvitedBy\x18\x03 \x01(\tR\tinvitedBy\x12\x14\n" + + "\x05email\x18\x04 \x01(\tR\x05email\x12\x12\n" + + "\x04name\x18\x05 \x01(\tR\x04name\"\xb3\x01\n" + + "\x1dProjectMemberInviteEmailInput\x12 \n" + + "\vprojectName\x18\x01 \x01(\tR\vprojectName\x12(\n" + + "\x0finvitationToken\x18\x02 \x01(\tR\x0finvitationToken\x12\x1c\n" + + "\tinvitedBy\x18\x03 \x01(\tR\tinvitedBy\x12\x14\n" + + "\x05email\x18\x04 \x01(\tR\x05email\x12\x12\n" + + "\x04name\x18\x05 \x01(\tR\x04name\"\xbd\x01\n" + + "\x17SendContactUsEmailInput\x12\x14\n" + + "\x05email\x18\x01 \x01(\tR\x05email\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + + "\vcompanyName\x18\x03 \x01(\tR\vcompanyName\x12\x18\n" + + "\acountry\x18\x04 \x01(\tR\acountry\x12\"\n" + + "\fmobileNumber\x18\x05 \x01(\tR\fmobileNumber\x12\x18\n" + + "\amessage\x18\x06 \x01(\tR\amessage\"\x06\n" + + "\x04Void2\x9e\x03\n" + + "\x05Comms\x127\n" + + "\x15SendVerificationEmail\x12\x17.VerificationEmailInput\x1a\x05.Void\x129\n" + + "\x16SendPasswordResetEmail\x12\x18.PasswordResetEmailInput\x1a\x05.Void\x12E\n" + + "\x1cSendAccountMemberInviteEmail\x12\x1e.AccountMemberInviteEmailInput\x1a\x05.Void\x12E\n" + + "\x1cSendProjectMemberInviteEmail\x12\x1e.ProjectMemberInviteEmailInput\x1a\x05.Void\x12-\n" + + "\x10SendWelcomeEmail\x12\x12.WelcomeEmailInput\x1a\x05.Void\x12-\n" + + "\x10SendWaitingEmail\x12\x12.WelcomeEmailInput\x1a\x05.Void\x125\n" + + "\x12SendContactUsEmail\x12\x18.SendContactUsEmailInput\x1a\x05.VoidB\x18Z\x16kloudlite.io/rpc/commsb\x06proto3" var ( file_comms_proto_rawDescOnce sync.Once - file_comms_proto_rawDescData = file_comms_proto_rawDesc + file_comms_proto_rawDescData []byte ) func file_comms_proto_rawDescGZIP() []byte { file_comms_proto_rawDescOnce.Do(func() { - file_comms_proto_rawDescData = protoimpl.X.CompressGZIP(file_comms_proto_rawDescData) + file_comms_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_comms_proto_rawDesc), len(file_comms_proto_rawDesc))) }) return file_comms_proto_rawDescData } var file_comms_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_comms_proto_goTypes = []interface{}{ +var file_comms_proto_goTypes = []any{ (*VerificationEmailInput)(nil), // 0: VerificationEmailInput (*WelcomeEmailInput)(nil), // 1: WelcomeEmailInput (*PasswordResetEmailInput)(nil), // 2: PasswordResetEmailInput @@ -620,97 +561,11 @@ func file_comms_proto_init() { if File_comms_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_comms_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerificationEmailInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_comms_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WelcomeEmailInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_comms_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordResetEmailInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_comms_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountMemberInviteEmailInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_comms_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectMemberInviteEmailInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_comms_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendContactUsEmailInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_comms_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Void); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_comms_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_comms_proto_rawDesc), len(file_comms_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, @@ -721,7 +576,6 @@ func file_comms_proto_init() { MessageInfos: file_comms_proto_msgTypes, }.Build() File_comms_proto = out.File - file_comms_proto_rawDesc = nil file_comms_proto_goTypes = nil file_comms_proto_depIdxs = nil } diff --git a/grpc-interfaces/kloudlite.io/rpc/comms/comms_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/comms/comms_grpc.pb.go index 2105b41ad..b574e0489 100644 --- a/grpc-interfaces/kloudlite.io/rpc/comms/comms_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/comms/comms_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: comms.proto package comms @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Comms_SendVerificationEmail_FullMethodName = "/Comms/SendVerificationEmail" @@ -50,8 +50,9 @@ func NewCommsClient(cc grpc.ClientConnInterface) CommsClient { } func (c *commsClient) SendVerificationEmail(ctx context.Context, in *VerificationEmailInput, opts ...grpc.CallOption) (*Void, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Void) - err := c.cc.Invoke(ctx, Comms_SendVerificationEmail_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Comms_SendVerificationEmail_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *commsClient) SendVerificationEmail(ctx context.Context, in *Verificatio } func (c *commsClient) SendPasswordResetEmail(ctx context.Context, in *PasswordResetEmailInput, opts ...grpc.CallOption) (*Void, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Void) - err := c.cc.Invoke(ctx, Comms_SendPasswordResetEmail_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Comms_SendPasswordResetEmail_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *commsClient) SendPasswordResetEmail(ctx context.Context, in *PasswordRe } func (c *commsClient) SendAccountMemberInviteEmail(ctx context.Context, in *AccountMemberInviteEmailInput, opts ...grpc.CallOption) (*Void, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Void) - err := c.cc.Invoke(ctx, Comms_SendAccountMemberInviteEmail_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Comms_SendAccountMemberInviteEmail_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *commsClient) SendAccountMemberInviteEmail(ctx context.Context, in *Acco } func (c *commsClient) SendProjectMemberInviteEmail(ctx context.Context, in *ProjectMemberInviteEmailInput, opts ...grpc.CallOption) (*Void, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Void) - err := c.cc.Invoke(ctx, Comms_SendProjectMemberInviteEmail_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Comms_SendProjectMemberInviteEmail_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +90,9 @@ func (c *commsClient) SendProjectMemberInviteEmail(ctx context.Context, in *Proj } func (c *commsClient) SendWelcomeEmail(ctx context.Context, in *WelcomeEmailInput, opts ...grpc.CallOption) (*Void, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Void) - err := c.cc.Invoke(ctx, Comms_SendWelcomeEmail_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Comms_SendWelcomeEmail_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +100,9 @@ func (c *commsClient) SendWelcomeEmail(ctx context.Context, in *WelcomeEmailInpu } func (c *commsClient) SendWaitingEmail(ctx context.Context, in *WelcomeEmailInput, opts ...grpc.CallOption) (*Void, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Void) - err := c.cc.Invoke(ctx, Comms_SendWaitingEmail_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Comms_SendWaitingEmail_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +110,9 @@ func (c *commsClient) SendWaitingEmail(ctx context.Context, in *WelcomeEmailInpu } func (c *commsClient) SendContactUsEmail(ctx context.Context, in *SendContactUsEmailInput, opts ...grpc.CallOption) (*Void, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Void) - err := c.cc.Invoke(ctx, Comms_SendContactUsEmail_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Comms_SendContactUsEmail_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +121,7 @@ func (c *commsClient) SendContactUsEmail(ctx context.Context, in *SendContactUsE // CommsServer is the server API for Comms service. // All implementations must embed UnimplementedCommsServer -// for forward compatibility +// for forward compatibility. type CommsServer interface { SendVerificationEmail(context.Context, *VerificationEmailInput) (*Void, error) SendPasswordResetEmail(context.Context, *PasswordResetEmailInput) (*Void, error) @@ -126,9 +133,12 @@ type CommsServer interface { mustEmbedUnimplementedCommsServer() } -// UnimplementedCommsServer must be embedded to have forward compatible implementations. -type UnimplementedCommsServer struct { -} +// UnimplementedCommsServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCommsServer struct{} func (UnimplementedCommsServer) SendVerificationEmail(context.Context, *VerificationEmailInput) (*Void, error) { return nil, status.Errorf(codes.Unimplemented, "method SendVerificationEmail not implemented") @@ -152,6 +162,7 @@ func (UnimplementedCommsServer) SendContactUsEmail(context.Context, *SendContact return nil, status.Errorf(codes.Unimplemented, "method SendContactUsEmail not implemented") } func (UnimplementedCommsServer) mustEmbedUnimplementedCommsServer() {} +func (UnimplementedCommsServer) testEmbeddedByValue() {} // UnsafeCommsServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CommsServer will @@ -161,6 +172,13 @@ type UnsafeCommsServer interface { } func RegisterCommsServer(s grpc.ServiceRegistrar, srv CommsServer) { + // If the following call pancis, it indicates UnimplementedCommsServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Comms_ServiceDesc, srv) } diff --git a/grpc-interfaces/kloudlite.io/rpc/console/console.pb.go b/grpc-interfaces/kloudlite.io/rpc/console/console.pb.go index 06231994c..331b77703 100644 --- a/grpc-interfaces/kloudlite.io/rpc/console/console.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/console/console.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: console.proto package console @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,24 +22,21 @@ const ( ) type ArchiveResourcesForClusterIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` + UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` + AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` - UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` - AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ArchiveResourcesForClusterIn) Reset() { *x = ArchiveResourcesForClusterIn{} - if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_console_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ArchiveResourcesForClusterIn) String() string { @@ -49,7 +47,7 @@ func (*ArchiveResourcesForClusterIn) ProtoMessage() {} func (x *ArchiveResourcesForClusterIn) ProtoReflect() protoreflect.Message { mi := &file_console_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -100,20 +98,17 @@ func (x *ArchiveResourcesForClusterIn) GetClusterName() string { } type ArchiveResourcesForClusterOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Archived bool `protobuf:"varint,1,opt,name=archived,proto3" json:"archived,omitempty"` unknownFields protoimpl.UnknownFields - - Archived bool `protobuf:"varint,1,opt,name=archived,proto3" json:"archived,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ArchiveResourcesForClusterOut) Reset() { *x = ArchiveResourcesForClusterOut{} - if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_console_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ArchiveResourcesForClusterOut) String() string { @@ -124,7 +119,7 @@ func (*ArchiveResourcesForClusterOut) ProtoMessage() {} func (x *ArchiveResourcesForClusterOut) ProtoReflect() protoreflect.Message { mi := &file_console_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -148,48 +143,34 @@ func (x *ArchiveResourcesForClusterOut) GetArchived() bool { var File_console_proto protoreflect.FileDescriptor -var file_console_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0xb4, 0x01, 0x0a, 0x1c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, - 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, - 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, - 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, - 0x69, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3b, 0x0a, 0x1d, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, - 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, - 0x76, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, - 0x76, 0x65, 0x64, 0x32, 0x66, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x12, 0x5b, - 0x0a, 0x1a, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x73, 0x46, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x2e, 0x41, - 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, - 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x1a, 0x1e, 0x2e, 0x41, 0x72, - 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, 0x6f, - 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x42, 0x1a, 0x5a, 0x18, 0x6b, - 0x6c, 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, - 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_console_proto_rawDesc = "" + + "\n" + + "\rconsole.proto\"\xb4\x01\n" + + "\x1cArchiveResourcesForClusterIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + + "\buserName\x18\x02 \x01(\tR\buserName\x12\x1c\n" + + "\tuserEmail\x18\x03 \x01(\tR\tuserEmail\x12 \n" + + "\vaccountName\x18\x04 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x05 \x01(\tR\vclusterName\";\n" + + "\x1dArchiveResourcesForClusterOut\x12\x1a\n" + + "\barchived\x18\x01 \x01(\bR\barchived2f\n" + + "\aConsole\x12[\n" + + "\x1aArchiveResourcesForCluster\x12\x1d.ArchiveResourcesForClusterIn\x1a\x1e.ArchiveResourcesForClusterOutB\x1aZ\x18kloudlite.io/rpc/consoleb\x06proto3" var ( file_console_proto_rawDescOnce sync.Once - file_console_proto_rawDescData = file_console_proto_rawDesc + file_console_proto_rawDescData []byte ) func file_console_proto_rawDescGZIP() []byte { file_console_proto_rawDescOnce.Do(func() { - file_console_proto_rawDescData = protoimpl.X.CompressGZIP(file_console_proto_rawDescData) + file_console_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_console_proto_rawDesc), len(file_console_proto_rawDesc))) }) return file_console_proto_rawDescData } var file_console_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_console_proto_goTypes = []interface{}{ +var file_console_proto_goTypes = []any{ (*ArchiveResourcesForClusterIn)(nil), // 0: ArchiveResourcesForClusterIn (*ArchiveResourcesForClusterOut)(nil), // 1: ArchiveResourcesForClusterOut } @@ -208,37 +189,11 @@ func file_console_proto_init() { if File_console_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_console_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArchiveResourcesForClusterIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_console_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArchiveResourcesForClusterOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_console_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_console_proto_rawDesc), len(file_console_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -249,7 +204,6 @@ func file_console_proto_init() { MessageInfos: file_console_proto_msgTypes, }.Build() File_console_proto = out.File - file_console_proto_rawDesc = nil file_console_proto_goTypes = nil file_console_proto_depIdxs = nil } diff --git a/grpc-interfaces/kloudlite.io/rpc/console/console_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/console/console_grpc.pb.go index ffec4547c..949cba7a7 100644 --- a/grpc-interfaces/kloudlite.io/rpc/console/console_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/console/console_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: console.proto package console @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Console_ArchiveResourcesForCluster_FullMethodName = "/Console/ArchiveResourcesForCluster" @@ -38,8 +38,9 @@ func NewConsoleClient(cc grpc.ClientConnInterface) ConsoleClient { } func (c *consoleClient) ArchiveResourcesForCluster(ctx context.Context, in *ArchiveResourcesForClusterIn, opts ...grpc.CallOption) (*ArchiveResourcesForClusterOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ArchiveResourcesForClusterOut) - err := c.cc.Invoke(ctx, Console_ArchiveResourcesForCluster_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Console_ArchiveResourcesForCluster_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *consoleClient) ArchiveResourcesForCluster(ctx context.Context, in *Arch // ConsoleServer is the server API for Console service. // All implementations must embed UnimplementedConsoleServer -// for forward compatibility +// for forward compatibility. type ConsoleServer interface { ArchiveResourcesForCluster(context.Context, *ArchiveResourcesForClusterIn) (*ArchiveResourcesForClusterOut, error) mustEmbedUnimplementedConsoleServer() } -// UnimplementedConsoleServer must be embedded to have forward compatible implementations. -type UnimplementedConsoleServer struct { -} +// UnimplementedConsoleServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedConsoleServer struct{} func (UnimplementedConsoleServer) ArchiveResourcesForCluster(context.Context, *ArchiveResourcesForClusterIn) (*ArchiveResourcesForClusterOut, error) { return nil, status.Errorf(codes.Unimplemented, "method ArchiveResourcesForCluster not implemented") } func (UnimplementedConsoleServer) mustEmbedUnimplementedConsoleServer() {} +func (UnimplementedConsoleServer) testEmbeddedByValue() {} // UnsafeConsoleServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ConsoleServer will @@ -71,6 +76,13 @@ type UnsafeConsoleServer interface { } func RegisterConsoleServer(s grpc.ServiceRegistrar, srv ConsoleServer) { + // If the following call pancis, it indicates UnimplementedConsoleServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Console_ServiceDesc, srv) } diff --git a/grpc-interfaces/kloudlite.io/rpc/dns/dns.pb.go b/grpc-interfaces/kloudlite.io/rpc/dns/dns.pb.go index a8931df2e..9689fd811 100644 --- a/grpc-interfaces/kloudlite.io/rpc/dns/dns.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/dns/dns.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: dns.proto package dns @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,20 +22,17 @@ const ( ) type GetAccountDomainsIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` unknownFields protoimpl.UnknownFields - - AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAccountDomainsIn) Reset() { *x = GetAccountDomainsIn{} - if protoimpl.UnsafeEnabled { - mi := &file_dns_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_dns_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAccountDomainsIn) String() string { @@ -45,7 +43,7 @@ func (*GetAccountDomainsIn) ProtoMessage() {} func (x *GetAccountDomainsIn) ProtoReflect() protoreflect.Message { mi := &file_dns_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -68,20 +66,17 @@ func (x *GetAccountDomainsIn) GetAccountId() string { } type GetAccountDomainsOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Domains []string `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"` unknownFields protoimpl.UnknownFields - - Domains []string `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAccountDomainsOut) Reset() { *x = GetAccountDomainsOut{} - if protoimpl.UnsafeEnabled { - mi := &file_dns_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_dns_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAccountDomainsOut) String() string { @@ -92,7 +87,7 @@ func (*GetAccountDomainsOut) ProtoMessage() {} func (x *GetAccountDomainsOut) ProtoReflect() protoreflect.Message { mi := &file_dns_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -116,37 +111,30 @@ func (x *GetAccountDomainsOut) GetDomains() []string { var File_dns_proto protoreflect.FileDescriptor -var file_dns_proto_rawDesc = []byte{ - 0x0a, 0x09, 0x64, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x13, 0x47, - 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, - 0x49, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, - 0x22, 0x30, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x4f, 0x75, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x73, 0x32, 0x47, 0x0a, 0x03, 0x44, 0x4e, 0x53, 0x12, 0x40, 0x0a, 0x11, 0x47, 0x65, 0x74, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x14, - 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x73, 0x49, 0x6e, 0x1a, 0x15, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x4f, 0x75, 0x74, 0x42, 0x16, 0x5a, 0x14, 0x6b, - 0x6c, 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, - 0x64, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_dns_proto_rawDesc = "" + + "\n" + + "\tdns.proto\"3\n" + + "\x13GetAccountDomainsIn\x12\x1c\n" + + "\taccountId\x18\x01 \x01(\tR\taccountId\"0\n" + + "\x14GetAccountDomainsOut\x12\x18\n" + + "\adomains\x18\x01 \x03(\tR\adomains2G\n" + + "\x03DNS\x12@\n" + + "\x11GetAccountDomains\x12\x14.GetAccountDomainsIn\x1a\x15.GetAccountDomainsOutB\x16Z\x14kloudlite.io/rpc/dnsb\x06proto3" var ( file_dns_proto_rawDescOnce sync.Once - file_dns_proto_rawDescData = file_dns_proto_rawDesc + file_dns_proto_rawDescData []byte ) func file_dns_proto_rawDescGZIP() []byte { file_dns_proto_rawDescOnce.Do(func() { - file_dns_proto_rawDescData = protoimpl.X.CompressGZIP(file_dns_proto_rawDescData) + file_dns_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_dns_proto_rawDesc), len(file_dns_proto_rawDesc))) }) return file_dns_proto_rawDescData } var file_dns_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_dns_proto_goTypes = []interface{}{ +var file_dns_proto_goTypes = []any{ (*GetAccountDomainsIn)(nil), // 0: GetAccountDomainsIn (*GetAccountDomainsOut)(nil), // 1: GetAccountDomainsOut } @@ -165,37 +153,11 @@ func file_dns_proto_init() { if File_dns_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_dns_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAccountDomainsIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dns_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAccountDomainsOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_dns_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_dns_proto_rawDesc), len(file_dns_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -206,7 +168,6 @@ func file_dns_proto_init() { MessageInfos: file_dns_proto_msgTypes, }.Build() File_dns_proto = out.File - file_dns_proto_rawDesc = nil file_dns_proto_goTypes = nil file_dns_proto_depIdxs = nil } diff --git a/grpc-interfaces/kloudlite.io/rpc/dns/dns_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/dns/dns_grpc.pb.go index 079d66d82..229fc679b 100644 --- a/grpc-interfaces/kloudlite.io/rpc/dns/dns_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/dns/dns_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: dns.proto package dns @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DNS_GetAccountDomains_FullMethodName = "/DNS/GetAccountDomains" @@ -38,8 +38,9 @@ func NewDNSClient(cc grpc.ClientConnInterface) DNSClient { } func (c *dNSClient) GetAccountDomains(ctx context.Context, in *GetAccountDomainsIn, opts ...grpc.CallOption) (*GetAccountDomainsOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAccountDomainsOut) - err := c.cc.Invoke(ctx, DNS_GetAccountDomains_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DNS_GetAccountDomains_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *dNSClient) GetAccountDomains(ctx context.Context, in *GetAccountDomains // DNSServer is the server API for DNS service. // All implementations must embed UnimplementedDNSServer -// for forward compatibility +// for forward compatibility. type DNSServer interface { GetAccountDomains(context.Context, *GetAccountDomainsIn) (*GetAccountDomainsOut, error) mustEmbedUnimplementedDNSServer() } -// UnimplementedDNSServer must be embedded to have forward compatible implementations. -type UnimplementedDNSServer struct { -} +// UnimplementedDNSServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDNSServer struct{} func (UnimplementedDNSServer) GetAccountDomains(context.Context, *GetAccountDomainsIn) (*GetAccountDomainsOut, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAccountDomains not implemented") } func (UnimplementedDNSServer) mustEmbedUnimplementedDNSServer() {} +func (UnimplementedDNSServer) testEmbeddedByValue() {} // UnsafeDNSServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DNSServer will @@ -71,6 +76,13 @@ type UnsafeDNSServer interface { } func RegisterDNSServer(s grpc.ServiceRegistrar, srv DNSServer) { + // If the following call pancis, it indicates UnimplementedDNSServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DNS_ServiceDesc, srv) } diff --git a/grpc-interfaces/kloudlite.io/rpc/finance/finance-infra.pb.go b/grpc-interfaces/kloudlite.io/rpc/finance/finance-infra.pb.go index 9cf2a27a6..7ca2e382b 100644 --- a/grpc-interfaces/kloudlite.io/rpc/finance/finance-infra.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/finance/finance-infra.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: finance-infra.proto package finance @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,21 +22,18 @@ const ( ) type ComputeStartIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` - AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ComputeStartIn) Reset() { *x = ComputeStartIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_infra_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_infra_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ComputeStartIn) String() string { @@ -46,7 +44,7 @@ func (*ComputeStartIn) ProtoMessage() {} func (x *ComputeStartIn) ProtoReflect() protoreflect.Message { mi := &file_finance_infra_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -76,21 +74,18 @@ func (x *ComputeStartIn) GetAccountId() string { } type ComputeEndIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` - AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ComputeEndIn) Reset() { *x = ComputeEndIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_infra_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_infra_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ComputeEndIn) String() string { @@ -101,7 +96,7 @@ func (*ComputeEndIn) ProtoMessage() {} func (x *ComputeEndIn) ProtoReflect() protoreflect.Message { mi := &file_finance_infra_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -131,21 +126,18 @@ func (x *ComputeEndIn) GetAccountId() string { } type LambdaStartIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` - AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LambdaStartIn) Reset() { *x = LambdaStartIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_infra_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_infra_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LambdaStartIn) String() string { @@ -156,7 +148,7 @@ func (*LambdaStartIn) ProtoMessage() {} func (x *LambdaStartIn) ProtoReflect() protoreflect.Message { mi := &file_finance_infra_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -186,21 +178,18 @@ func (x *LambdaStartIn) GetAccountId() string { } type LambdaEndIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` - AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LambdaEndIn) Reset() { *x = LambdaEndIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_infra_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_infra_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LambdaEndIn) String() string { @@ -211,7 +200,7 @@ func (*LambdaEndIn) ProtoMessage() {} func (x *LambdaEndIn) ProtoReflect() protoreflect.Message { mi := &file_finance_infra_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -241,21 +230,18 @@ func (x *LambdaEndIn) GetAccountId() string { } type BlockStorageStartIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` - AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BlockStorageStartIn) Reset() { *x = BlockStorageStartIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_infra_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_infra_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockStorageStartIn) String() string { @@ -266,7 +252,7 @@ func (*BlockStorageStartIn) ProtoMessage() {} func (x *BlockStorageStartIn) ProtoReflect() protoreflect.Message { mi := &file_finance_infra_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -296,21 +282,18 @@ func (x *BlockStorageStartIn) GetAccountId() string { } type BlockStorageEndIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` - AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BlockStorageEndIn) Reset() { *x = BlockStorageEndIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_infra_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_infra_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockStorageEndIn) String() string { @@ -321,7 +304,7 @@ func (*BlockStorageEndIn) ProtoMessage() {} func (x *BlockStorageEndIn) ProtoReflect() protoreflect.Message { mi := &file_finance_infra_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -351,21 +334,18 @@ func (x *BlockStorageEndIn) GetAccountId() string { } type ObjectStorageStartIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` - AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObjectStorageStartIn) Reset() { *x = ObjectStorageStartIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_infra_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_infra_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectStorageStartIn) String() string { @@ -376,7 +356,7 @@ func (*ObjectStorageStartIn) ProtoMessage() {} func (x *ObjectStorageStartIn) ProtoReflect() protoreflect.Message { mi := &file_finance_infra_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -406,21 +386,18 @@ func (x *ObjectStorageStartIn) GetAccountId() string { } type ObjectStorageEndIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` - AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObjectStorageEndIn) Reset() { *x = ObjectStorageEndIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_infra_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_infra_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectStorageEndIn) String() string { @@ -431,7 +408,7 @@ func (*ObjectStorageEndIn) ProtoMessage() {} func (x *ObjectStorageEndIn) ProtoReflect() protoreflect.Message { mi := &file_finance_infra_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -461,21 +438,18 @@ func (x *ObjectStorageEndIn) GetAccountId() string { } type CIStartIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` - AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CIStartIn) Reset() { *x = CIStartIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_infra_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_infra_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CIStartIn) String() string { @@ -486,7 +460,7 @@ func (*CIStartIn) ProtoMessage() {} func (x *CIStartIn) ProtoReflect() protoreflect.Message { mi := &file_finance_infra_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -516,21 +490,18 @@ func (x *CIStartIn) GetAccountId() string { } type CIEndIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` - AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CIEndIn) Reset() { *x = CIEndIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_infra_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_infra_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CIEndIn) String() string { @@ -541,7 +512,7 @@ func (*CIEndIn) ProtoMessage() {} func (x *CIEndIn) ProtoReflect() protoreflect.Message { mi := &file_finance_infra_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -571,18 +542,16 @@ func (x *CIEndIn) GetAccountId() string { } type FinanceInfraVoid struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FinanceInfraVoid) Reset() { *x = FinanceInfraVoid{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_infra_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_infra_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FinanceInfraVoid) String() string { @@ -593,7 +562,7 @@ func (*FinanceInfraVoid) ProtoMessage() {} func (x *FinanceInfraVoid) ProtoReflect() protoreflect.Message { mi := &file_finance_infra_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -610,113 +579,68 @@ func (*FinanceInfraVoid) Descriptor() ([]byte, []int) { var File_finance_infra_proto protoreflect.FileDescriptor -var file_finance_infra_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x66, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x50, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, - 0x53, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x4e, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x70, 0x75, - 0x74, 0x65, 0x45, 0x6e, 0x64, 0x49, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x0d, 0x4c, 0x61, 0x6d, 0x62, 0x64, - 0x61, 0x53, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x4d, 0x0a, 0x0b, 0x4c, 0x61, 0x6d, 0x62, - 0x64, 0x61, 0x45, 0x6e, 0x64, 0x49, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x55, 0x0a, 0x13, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x12, 0x20, - 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, - 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x53, - 0x0a, 0x11, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, - 0x64, 0x49, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, - 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x52, 0x65, 0x66, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x49, 0x64, 0x22, 0x56, 0x0a, 0x14, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x12, 0x1c, 0x0a, - 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x54, 0x0a, 0x12, 0x4f, - 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x64, 0x49, - 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x52, 0x65, 0x66, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, - 0x64, 0x22, 0x4b, 0x0a, 0x09, 0x43, 0x49, 0x53, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x12, 0x20, - 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, - 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x49, - 0x0a, 0x07, 0x43, 0x49, 0x45, 0x6e, 0x64, 0x49, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x12, 0x1c, 0x0a, 0x09, 0x61, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x12, 0x0a, 0x10, 0x46, 0x69, 0x6e, - 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x56, 0x6f, 0x69, 0x64, 0x32, 0x96, 0x04, - 0x0a, 0x0c, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x12, 0x32, - 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x0f, - 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x1a, - 0x11, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x56, 0x6f, - 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x64, - 0x12, 0x0d, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x64, 0x49, 0x6e, 0x1a, - 0x11, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x56, 0x6f, - 0x69, 0x64, 0x12, 0x30, 0x0a, 0x0b, 0x4c, 0x61, 0x6d, 0x62, 0x64, 0x61, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x12, 0x0e, 0x2e, 0x4c, 0x61, 0x6d, 0x62, 0x64, 0x61, 0x53, 0x74, 0x61, 0x72, 0x74, 0x49, - 0x6e, 0x1a, 0x11, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, - 0x56, 0x6f, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x09, 0x4c, 0x61, 0x6d, 0x62, 0x64, 0x61, 0x45, 0x6e, - 0x64, 0x12, 0x0c, 0x2e, 0x4c, 0x61, 0x6d, 0x62, 0x64, 0x61, 0x45, 0x6e, 0x64, 0x49, 0x6e, 0x1a, - 0x11, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x56, 0x6f, - 0x69, 0x64, 0x12, 0x3c, 0x0a, 0x11, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x14, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x1a, 0x11, 0x2e, - 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x56, 0x6f, 0x69, 0x64, - 0x12, 0x38, 0x0a, 0x0f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x45, 0x6e, 0x64, 0x12, 0x12, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x45, 0x6e, 0x64, 0x49, 0x6e, 0x1a, 0x11, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, - 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x56, 0x6f, 0x69, 0x64, 0x12, 0x3e, 0x0a, 0x12, 0x4f, 0x62, - 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x12, 0x15, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x53, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x1a, 0x11, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, - 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x56, 0x6f, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x10, 0x4f, 0x62, - 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x64, 0x12, 0x13, - 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, - 0x64, 0x49, 0x6e, 0x1a, 0x11, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, - 0x72, 0x61, 0x56, 0x6f, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x43, 0x49, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x12, 0x0a, 0x2e, 0x43, 0x49, 0x53, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x1a, 0x11, 0x2e, - 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x56, 0x6f, 0x69, 0x64, - 0x12, 0x24, 0x0a, 0x05, 0x43, 0x49, 0x45, 0x6e, 0x64, 0x12, 0x08, 0x2e, 0x43, 0x49, 0x45, 0x6e, - 0x64, 0x49, 0x6e, 0x1a, 0x11, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, - 0x72, 0x61, 0x56, 0x6f, 0x69, 0x64, 0x42, 0x1a, 0x5a, 0x18, 0x6b, 0x6c, 0x6f, 0x75, 0x64, 0x6c, - 0x69, 0x74, 0x65, 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x66, 0x69, 0x6e, 0x61, 0x6e, - 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_finance_infra_proto_rawDesc = "" + + "\n" + + "\x13finance-infra.proto\"P\n" + + "\x0eComputeStartIn\x12 \n" + + "\vResourceRef\x18\x01 \x01(\tR\vResourceRef\x12\x1c\n" + + "\taccountId\x18\x02 \x01(\tR\taccountId\"N\n" + + "\fComputeEndIn\x12 \n" + + "\vResourceRef\x18\x01 \x01(\tR\vResourceRef\x12\x1c\n" + + "\taccountId\x18\x02 \x01(\tR\taccountId\"O\n" + + "\rLambdaStartIn\x12 \n" + + "\vResourceRef\x18\x01 \x01(\tR\vResourceRef\x12\x1c\n" + + "\taccountId\x18\x02 \x01(\tR\taccountId\"M\n" + + "\vLambdaEndIn\x12 \n" + + "\vResourceRef\x18\x01 \x01(\tR\vResourceRef\x12\x1c\n" + + "\taccountId\x18\x02 \x01(\tR\taccountId\"U\n" + + "\x13BlockStorageStartIn\x12 \n" + + "\vResourceRef\x18\x01 \x01(\tR\vResourceRef\x12\x1c\n" + + "\taccountId\x18\x02 \x01(\tR\taccountId\"S\n" + + "\x11BlockStorageEndIn\x12 \n" + + "\vResourceRef\x18\x01 \x01(\tR\vResourceRef\x12\x1c\n" + + "\taccountId\x18\x02 \x01(\tR\taccountId\"V\n" + + "\x14ObjectStorageStartIn\x12 \n" + + "\vResourceRef\x18\x01 \x01(\tR\vResourceRef\x12\x1c\n" + + "\taccountId\x18\x02 \x01(\tR\taccountId\"T\n" + + "\x12ObjectStorageEndIn\x12 \n" + + "\vResourceRef\x18\x01 \x01(\tR\vResourceRef\x12\x1c\n" + + "\taccountId\x18\x02 \x01(\tR\taccountId\"K\n" + + "\tCIStartIn\x12 \n" + + "\vResourceRef\x18\x01 \x01(\tR\vResourceRef\x12\x1c\n" + + "\taccountId\x18\x02 \x01(\tR\taccountId\"I\n" + + "\aCIEndIn\x12 \n" + + "\vResourceRef\x18\x01 \x01(\tR\vResourceRef\x12\x1c\n" + + "\taccountId\x18\x02 \x01(\tR\taccountId\"\x12\n" + + "\x10FinanceInfraVoid2\x96\x04\n" + + "\fFinanceInfra\x122\n" + + "\fComputeStart\x12\x0f.ComputeStartIn\x1a\x11.FinanceInfraVoid\x12.\n" + + "\n" + + "ComputeEnd\x12\r.ComputeEndIn\x1a\x11.FinanceInfraVoid\x120\n" + + "\vLambdaStart\x12\x0e.LambdaStartIn\x1a\x11.FinanceInfraVoid\x12,\n" + + "\tLambdaEnd\x12\f.LambdaEndIn\x1a\x11.FinanceInfraVoid\x12<\n" + + "\x11BlockStorageStart\x12\x14.BlockStorageStartIn\x1a\x11.FinanceInfraVoid\x128\n" + + "\x0fBlockStorageEnd\x12\x12.BlockStorageEndIn\x1a\x11.FinanceInfraVoid\x12>\n" + + "\x12ObjectStorageStart\x12\x15.ObjectStorageStartIn\x1a\x11.FinanceInfraVoid\x12:\n" + + "\x10ObjectStorageEnd\x12\x13.ObjectStorageEndIn\x1a\x11.FinanceInfraVoid\x12(\n" + + "\aCIStart\x12\n" + + ".CIStartIn\x1a\x11.FinanceInfraVoid\x12$\n" + + "\x05CIEnd\x12\b.CIEndIn\x1a\x11.FinanceInfraVoidB\x1aZ\x18kloudlite.io/rpc/financeb\x06proto3" var ( file_finance_infra_proto_rawDescOnce sync.Once - file_finance_infra_proto_rawDescData = file_finance_infra_proto_rawDesc + file_finance_infra_proto_rawDescData []byte ) func file_finance_infra_proto_rawDescGZIP() []byte { file_finance_infra_proto_rawDescOnce.Do(func() { - file_finance_infra_proto_rawDescData = protoimpl.X.CompressGZIP(file_finance_infra_proto_rawDescData) + file_finance_infra_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_finance_infra_proto_rawDesc), len(file_finance_infra_proto_rawDesc))) }) return file_finance_infra_proto_rawDescData } var file_finance_infra_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_finance_infra_proto_goTypes = []interface{}{ +var file_finance_infra_proto_goTypes = []any{ (*ComputeStartIn)(nil), // 0: ComputeStartIn (*ComputeEndIn)(nil), // 1: ComputeEndIn (*LambdaStartIn)(nil), // 2: LambdaStartIn @@ -762,145 +686,11 @@ func file_finance_infra_proto_init() { if File_finance_infra_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_finance_infra_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ComputeStartIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_infra_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ComputeEndIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_infra_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LambdaStartIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_infra_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LambdaEndIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_infra_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockStorageStartIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_infra_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockStorageEndIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_infra_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObjectStorageStartIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_infra_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObjectStorageEndIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_infra_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CIStartIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_infra_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CIEndIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_infra_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FinanceInfraVoid); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_finance_infra_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_finance_infra_proto_rawDesc), len(file_finance_infra_proto_rawDesc)), NumEnums: 0, NumMessages: 11, NumExtensions: 0, @@ -911,7 +701,6 @@ func file_finance_infra_proto_init() { MessageInfos: file_finance_infra_proto_msgTypes, }.Build() File_finance_infra_proto = out.File - file_finance_infra_proto_rawDesc = nil file_finance_infra_proto_goTypes = nil file_finance_infra_proto_depIdxs = nil } diff --git a/grpc-interfaces/kloudlite.io/rpc/finance/finance-infra_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/finance/finance-infra_grpc.pb.go index 417b15177..e930d61aa 100644 --- a/grpc-interfaces/kloudlite.io/rpc/finance/finance-infra_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/finance/finance-infra_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: finance-infra.proto package finance @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( FinanceInfra_ComputeStart_FullMethodName = "/FinanceInfra/ComputeStart" @@ -56,8 +56,9 @@ func NewFinanceInfraClient(cc grpc.ClientConnInterface) FinanceInfraClient { } func (c *financeInfraClient) ComputeStart(ctx context.Context, in *ComputeStartIn, opts ...grpc.CallOption) (*FinanceInfraVoid, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FinanceInfraVoid) - err := c.cc.Invoke(ctx, FinanceInfra_ComputeStart_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FinanceInfra_ComputeStart_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -65,8 +66,9 @@ func (c *financeInfraClient) ComputeStart(ctx context.Context, in *ComputeStartI } func (c *financeInfraClient) ComputeEnd(ctx context.Context, in *ComputeEndIn, opts ...grpc.CallOption) (*FinanceInfraVoid, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FinanceInfraVoid) - err := c.cc.Invoke(ctx, FinanceInfra_ComputeEnd_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FinanceInfra_ComputeEnd_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -74,8 +76,9 @@ func (c *financeInfraClient) ComputeEnd(ctx context.Context, in *ComputeEndIn, o } func (c *financeInfraClient) LambdaStart(ctx context.Context, in *LambdaStartIn, opts ...grpc.CallOption) (*FinanceInfraVoid, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FinanceInfraVoid) - err := c.cc.Invoke(ctx, FinanceInfra_LambdaStart_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FinanceInfra_LambdaStart_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -83,8 +86,9 @@ func (c *financeInfraClient) LambdaStart(ctx context.Context, in *LambdaStartIn, } func (c *financeInfraClient) LambdaEnd(ctx context.Context, in *LambdaEndIn, opts ...grpc.CallOption) (*FinanceInfraVoid, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FinanceInfraVoid) - err := c.cc.Invoke(ctx, FinanceInfra_LambdaEnd_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FinanceInfra_LambdaEnd_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,8 +96,9 @@ func (c *financeInfraClient) LambdaEnd(ctx context.Context, in *LambdaEndIn, opt } func (c *financeInfraClient) BlockStorageStart(ctx context.Context, in *BlockStorageStartIn, opts ...grpc.CallOption) (*FinanceInfraVoid, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FinanceInfraVoid) - err := c.cc.Invoke(ctx, FinanceInfra_BlockStorageStart_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FinanceInfra_BlockStorageStart_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -101,8 +106,9 @@ func (c *financeInfraClient) BlockStorageStart(ctx context.Context, in *BlockSto } func (c *financeInfraClient) BlockStorageEnd(ctx context.Context, in *BlockStorageEndIn, opts ...grpc.CallOption) (*FinanceInfraVoid, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FinanceInfraVoid) - err := c.cc.Invoke(ctx, FinanceInfra_BlockStorageEnd_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FinanceInfra_BlockStorageEnd_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -110,8 +116,9 @@ func (c *financeInfraClient) BlockStorageEnd(ctx context.Context, in *BlockStora } func (c *financeInfraClient) ObjectStorageStart(ctx context.Context, in *ObjectStorageStartIn, opts ...grpc.CallOption) (*FinanceInfraVoid, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FinanceInfraVoid) - err := c.cc.Invoke(ctx, FinanceInfra_ObjectStorageStart_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FinanceInfra_ObjectStorageStart_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -119,8 +126,9 @@ func (c *financeInfraClient) ObjectStorageStart(ctx context.Context, in *ObjectS } func (c *financeInfraClient) ObjectStorageEnd(ctx context.Context, in *ObjectStorageEndIn, opts ...grpc.CallOption) (*FinanceInfraVoid, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FinanceInfraVoid) - err := c.cc.Invoke(ctx, FinanceInfra_ObjectStorageEnd_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FinanceInfra_ObjectStorageEnd_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -128,8 +136,9 @@ func (c *financeInfraClient) ObjectStorageEnd(ctx context.Context, in *ObjectSto } func (c *financeInfraClient) CIStart(ctx context.Context, in *CIStartIn, opts ...grpc.CallOption) (*FinanceInfraVoid, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FinanceInfraVoid) - err := c.cc.Invoke(ctx, FinanceInfra_CIStart_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FinanceInfra_CIStart_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -137,8 +146,9 @@ func (c *financeInfraClient) CIStart(ctx context.Context, in *CIStartIn, opts .. } func (c *financeInfraClient) CIEnd(ctx context.Context, in *CIEndIn, opts ...grpc.CallOption) (*FinanceInfraVoid, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FinanceInfraVoid) - err := c.cc.Invoke(ctx, FinanceInfra_CIEnd_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FinanceInfra_CIEnd_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -147,7 +157,7 @@ func (c *financeInfraClient) CIEnd(ctx context.Context, in *CIEndIn, opts ...grp // FinanceInfraServer is the server API for FinanceInfra service. // All implementations must embed UnimplementedFinanceInfraServer -// for forward compatibility +// for forward compatibility. type FinanceInfraServer interface { ComputeStart(context.Context, *ComputeStartIn) (*FinanceInfraVoid, error) ComputeEnd(context.Context, *ComputeEndIn) (*FinanceInfraVoid, error) @@ -162,9 +172,12 @@ type FinanceInfraServer interface { mustEmbedUnimplementedFinanceInfraServer() } -// UnimplementedFinanceInfraServer must be embedded to have forward compatible implementations. -type UnimplementedFinanceInfraServer struct { -} +// UnimplementedFinanceInfraServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedFinanceInfraServer struct{} func (UnimplementedFinanceInfraServer) ComputeStart(context.Context, *ComputeStartIn) (*FinanceInfraVoid, error) { return nil, status.Errorf(codes.Unimplemented, "method ComputeStart not implemented") @@ -197,6 +210,7 @@ func (UnimplementedFinanceInfraServer) CIEnd(context.Context, *CIEndIn) (*Financ return nil, status.Errorf(codes.Unimplemented, "method CIEnd not implemented") } func (UnimplementedFinanceInfraServer) mustEmbedUnimplementedFinanceInfraServer() {} +func (UnimplementedFinanceInfraServer) testEmbeddedByValue() {} // UnsafeFinanceInfraServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to FinanceInfraServer will @@ -206,6 +220,13 @@ type UnsafeFinanceInfraServer interface { } func RegisterFinanceInfraServer(s grpc.ServiceRegistrar, srv FinanceInfraServer) { + // If the following call pancis, it indicates UnimplementedFinanceInfraServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&FinanceInfra_ServiceDesc, srv) } diff --git a/grpc-interfaces/kloudlite.io/rpc/finance/finance.pb.go b/grpc-interfaces/kloudlite.io/rpc/finance/finance.pb.go index b13d5a015..42b81baf1 100644 --- a/grpc-interfaces/kloudlite.io/rpc/finance/finance.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/finance/finance.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: finance.proto package finance @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,24 +22,21 @@ const ( ) type ComputePlan struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` - MemoryUnitSize float32 `protobuf:"fixed32,4,opt,name=memoryUnitSize,proto3" json:"memoryUnitSize,omitempty"` - CpuUnitSize float32 `protobuf:"fixed32,5,opt,name=cpuUnitSize,proto3" json:"cpuUnitSize,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` + MemoryUnitSize float32 `protobuf:"fixed32,4,opt,name=memoryUnitSize,proto3" json:"memoryUnitSize,omitempty"` + CpuUnitSize float32 `protobuf:"fixed32,5,opt,name=cpuUnitSize,proto3" json:"cpuUnitSize,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ComputePlan) Reset() { *x = ComputePlan{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ComputePlan) String() string { @@ -49,7 +47,7 @@ func (*ComputePlan) ProtoMessage() {} func (x *ComputePlan) ProtoReflect() protoreflect.Message { mi := &file_finance_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -100,22 +98,19 @@ func (x *ComputePlan) GetCpuUnitSize() float32 { } type StartBillableIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` + BillableType string `protobuf:"bytes,2,opt,name=BillableType,proto3" json:"BillableType,omitempty"` + Quantity float32 `protobuf:"fixed32,3,opt,name=quantity,proto3" json:"quantity,omitempty"` unknownFields protoimpl.UnknownFields - - AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` - BillableType string `protobuf:"bytes,2,opt,name=BillableType,proto3" json:"BillableType,omitempty"` - Quantity float32 `protobuf:"fixed32,3,opt,name=quantity,proto3" json:"quantity,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StartBillableIn) Reset() { *x = StartBillableIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StartBillableIn) String() string { @@ -126,7 +121,7 @@ func (*StartBillableIn) ProtoMessage() {} func (x *StartBillableIn) ProtoReflect() protoreflect.Message { mi := &file_finance_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -163,20 +158,17 @@ func (x *StartBillableIn) GetQuantity() float32 { } type StopBillableIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + BillableId string `protobuf:"bytes,1,opt,name=BillableId,proto3" json:"BillableId,omitempty"` unknownFields protoimpl.UnknownFields - - BillableId string `protobuf:"bytes,1,opt,name=BillableId,proto3" json:"BillableId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StopBillableIn) Reset() { *x = StopBillableIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StopBillableIn) String() string { @@ -187,7 +179,7 @@ func (*StopBillableIn) ProtoMessage() {} func (x *StopBillableIn) ProtoReflect() protoreflect.Message { mi := &file_finance_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -210,20 +202,17 @@ func (x *StopBillableIn) GetBillableId() string { } type StartBillableOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + BillingId string `protobuf:"bytes,1,opt,name=billingId,proto3" json:"billingId,omitempty"` unknownFields protoimpl.UnknownFields - - BillingId string `protobuf:"bytes,1,opt,name=billingId,proto3" json:"billingId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StartBillableOut) Reset() { *x = StartBillableOut{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StartBillableOut) String() string { @@ -234,7 +223,7 @@ func (*StartBillableOut) ProtoMessage() {} func (x *StartBillableOut) ProtoReflect() protoreflect.Message { mi := &file_finance_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -257,20 +246,17 @@ func (x *StartBillableOut) GetBillingId() string { } type StopBillableOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + BillingId string `protobuf:"bytes,1,opt,name=billingId,proto3" json:"billingId,omitempty"` unknownFields protoimpl.UnknownFields - - BillingId string `protobuf:"bytes,1,opt,name=billingId,proto3" json:"billingId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StopBillableOut) Reset() { *x = StopBillableOut{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StopBillableOut) String() string { @@ -281,7 +267,7 @@ func (*StopBillableOut) ProtoMessage() {} func (x *StopBillableOut) ProtoReflect() protoreflect.Message { mi := &file_finance_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -304,20 +290,17 @@ func (x *StopBillableOut) GetBillingId() string { } type GetAttachedClusterIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` unknownFields protoimpl.UnknownFields - - AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAttachedClusterIn) Reset() { *x = GetAttachedClusterIn{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAttachedClusterIn) String() string { @@ -328,7 +311,7 @@ func (*GetAttachedClusterIn) ProtoMessage() {} func (x *GetAttachedClusterIn) ProtoReflect() protoreflect.Message { mi := &file_finance_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -351,20 +334,17 @@ func (x *GetAttachedClusterIn) GetAccountName() string { } type GetAttachedClusterOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ClusterId string `protobuf:"bytes,1,opt,name=clusterId,proto3" json:"clusterId,omitempty"` unknownFields protoimpl.UnknownFields - - ClusterId string `protobuf:"bytes,1,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAttachedClusterOut) Reset() { *x = GetAttachedClusterOut{} - if protoimpl.UnsafeEnabled { - mi := &file_finance_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_finance_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAttachedClusterOut) String() string { @@ -375,7 +355,7 @@ func (*GetAttachedClusterOut) ProtoMessage() {} func (x *GetAttachedClusterOut) ProtoReflect() protoreflect.Message { mi := &file_finance_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -399,72 +379,50 @@ func (x *GetAttachedClusterOut) GetClusterId() string { var File_finance_proto protoreflect.FileDescriptor -var file_finance_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x66, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x9b, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, - 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, - 0x65, 0x73, 0x63, 0x12, 0x26, 0x0a, 0x0e, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x55, 0x6e, 0x69, - 0x74, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0e, 0x6d, 0x65, 0x6d, - 0x6f, 0x72, 0x79, 0x55, 0x6e, 0x69, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, - 0x70, 0x75, 0x55, 0x6e, 0x69, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, - 0x52, 0x0b, 0x63, 0x70, 0x75, 0x55, 0x6e, 0x69, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x73, 0x0a, - 0x0f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, - 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x42, 0x69, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x42, 0x69, 0x6c, 0x6c, 0x61, 0x62, - 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x22, 0x30, 0x0a, 0x0e, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x69, 0x6c, 0x6c, 0x61, 0x62, - 0x6c, 0x65, 0x49, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x42, 0x69, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x42, 0x69, 0x6c, 0x6c, 0x61, 0x62, - 0x6c, 0x65, 0x49, 0x64, 0x22, 0x30, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x69, 0x6c, - 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x75, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x69, 0x6c, 0x6c, - 0x69, 0x6e, 0x67, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x69, 0x6c, - 0x6c, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x22, 0x2f, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x69, - 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x75, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x69, 0x6c, - 0x6c, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x69, - 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x74, - 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x12, - 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, - 0x65, 0x22, 0x35, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x32, 0xb7, 0x01, 0x0a, 0x07, 0x46, 0x69, 0x6e, - 0x61, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x69, 0x6c, - 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x10, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x69, 0x6c, - 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x1a, 0x11, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, - 0x69, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x75, 0x74, 0x12, 0x31, 0x0a, 0x0c, 0x73, 0x74, - 0x6f, 0x70, 0x42, 0x69, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x0f, 0x2e, 0x53, 0x74, 0x6f, - 0x70, 0x42, 0x69, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x1a, 0x10, 0x2e, 0x53, 0x74, - 0x6f, 0x70, 0x42, 0x69, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x75, 0x74, 0x12, 0x43, 0x0a, - 0x12, 0x67, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, - 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x1a, 0x16, 0x2e, 0x47, 0x65, 0x74, - 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, - 0x75, 0x74, 0x42, 0x1a, 0x5a, 0x18, 0x6b, 0x6c, 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, 0x2e, - 0x69, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x66, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_finance_proto_rawDesc = "" + + "\n" + + "\rfinance.proto\"\x9b\x01\n" + + "\vComputePlan\x12\x1a\n" + + "\bprovider\x18\x01 \x01(\tR\bprovider\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" + + "\x04desc\x18\x03 \x01(\tR\x04desc\x12&\n" + + "\x0ememoryUnitSize\x18\x04 \x01(\x02R\x0ememoryUnitSize\x12 \n" + + "\vcpuUnitSize\x18\x05 \x01(\x02R\vcpuUnitSize\"s\n" + + "\x0fStartBillableIn\x12 \n" + + "\vaccountName\x18\x01 \x01(\tR\vaccountName\x12\"\n" + + "\fBillableType\x18\x02 \x01(\tR\fBillableType\x12\x1a\n" + + "\bquantity\x18\x03 \x01(\x02R\bquantity\"0\n" + + "\x0eStopBillableIn\x12\x1e\n" + + "\n" + + "BillableId\x18\x01 \x01(\tR\n" + + "BillableId\"0\n" + + "\x10StartBillableOut\x12\x1c\n" + + "\tbillingId\x18\x01 \x01(\tR\tbillingId\"/\n" + + "\x0fStopBillableOut\x12\x1c\n" + + "\tbillingId\x18\x01 \x01(\tR\tbillingId\"8\n" + + "\x14GetAttachedClusterIn\x12 \n" + + "\vaccountName\x18\x01 \x01(\tR\vaccountName\"5\n" + + "\x15GetAttachedClusterOut\x12\x1c\n" + + "\tclusterId\x18\x01 \x01(\tR\tclusterId2\xb7\x01\n" + + "\aFinance\x124\n" + + "\rstartBillable\x12\x10.StartBillableIn\x1a\x11.StartBillableOut\x121\n" + + "\fstopBillable\x12\x0f.StopBillableIn\x1a\x10.StopBillableOut\x12C\n" + + "\x12getAttachedCluster\x12\x15.GetAttachedClusterIn\x1a\x16.GetAttachedClusterOutB\x1aZ\x18kloudlite.io/rpc/financeb\x06proto3" var ( file_finance_proto_rawDescOnce sync.Once - file_finance_proto_rawDescData = file_finance_proto_rawDesc + file_finance_proto_rawDescData []byte ) func file_finance_proto_rawDescGZIP() []byte { file_finance_proto_rawDescOnce.Do(func() { - file_finance_proto_rawDescData = protoimpl.X.CompressGZIP(file_finance_proto_rawDescData) + file_finance_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_finance_proto_rawDesc), len(file_finance_proto_rawDesc))) }) return file_finance_proto_rawDescData } var file_finance_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_finance_proto_goTypes = []interface{}{ +var file_finance_proto_goTypes = []any{ (*ComputePlan)(nil), // 0: ComputePlan (*StartBillableIn)(nil), // 1: StartBillableIn (*StopBillableIn)(nil), // 2: StopBillableIn @@ -492,97 +450,11 @@ func file_finance_proto_init() { if File_finance_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_finance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ComputePlan); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartBillableIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopBillableIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartBillableOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopBillableOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAttachedClusterIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_finance_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAttachedClusterOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_finance_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_finance_proto_rawDesc), len(file_finance_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, @@ -593,7 +465,6 @@ func file_finance_proto_init() { MessageInfos: file_finance_proto_msgTypes, }.Build() File_finance_proto = out.File - file_finance_proto_rawDesc = nil file_finance_proto_goTypes = nil file_finance_proto_depIdxs = nil } diff --git a/grpc-interfaces/kloudlite.io/rpc/finance/finance_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/finance/finance_grpc.pb.go index 61e0d9dd7..c0a64d6e7 100644 --- a/grpc-interfaces/kloudlite.io/rpc/finance/finance_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/finance/finance_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: finance.proto package finance @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Finance_StartBillable_FullMethodName = "/Finance/startBillable" @@ -42,8 +42,9 @@ func NewFinanceClient(cc grpc.ClientConnInterface) FinanceClient { } func (c *financeClient) StartBillable(ctx context.Context, in *StartBillableIn, opts ...grpc.CallOption) (*StartBillableOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StartBillableOut) - err := c.cc.Invoke(ctx, Finance_StartBillable_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Finance_StartBillable_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *financeClient) StartBillable(ctx context.Context, in *StartBillableIn, } func (c *financeClient) StopBillable(ctx context.Context, in *StopBillableIn, opts ...grpc.CallOption) (*StopBillableOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StopBillableOut) - err := c.cc.Invoke(ctx, Finance_StopBillable_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Finance_StopBillable_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +62,9 @@ func (c *financeClient) StopBillable(ctx context.Context, in *StopBillableIn, op } func (c *financeClient) GetAttachedCluster(ctx context.Context, in *GetAttachedClusterIn, opts ...grpc.CallOption) (*GetAttachedClusterOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAttachedClusterOut) - err := c.cc.Invoke(ctx, Finance_GetAttachedCluster_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Finance_GetAttachedCluster_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +73,7 @@ func (c *financeClient) GetAttachedCluster(ctx context.Context, in *GetAttachedC // FinanceServer is the server API for Finance service. // All implementations must embed UnimplementedFinanceServer -// for forward compatibility +// for forward compatibility. type FinanceServer interface { StartBillable(context.Context, *StartBillableIn) (*StartBillableOut, error) StopBillable(context.Context, *StopBillableIn) (*StopBillableOut, error) @@ -78,9 +81,12 @@ type FinanceServer interface { mustEmbedUnimplementedFinanceServer() } -// UnimplementedFinanceServer must be embedded to have forward compatible implementations. -type UnimplementedFinanceServer struct { -} +// UnimplementedFinanceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedFinanceServer struct{} func (UnimplementedFinanceServer) StartBillable(context.Context, *StartBillableIn) (*StartBillableOut, error) { return nil, status.Errorf(codes.Unimplemented, "method StartBillable not implemented") @@ -92,6 +98,7 @@ func (UnimplementedFinanceServer) GetAttachedCluster(context.Context, *GetAttach return nil, status.Errorf(codes.Unimplemented, "method GetAttachedCluster not implemented") } func (UnimplementedFinanceServer) mustEmbedUnimplementedFinanceServer() {} +func (UnimplementedFinanceServer) testEmbeddedByValue() {} // UnsafeFinanceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to FinanceServer will @@ -101,6 +108,13 @@ type UnsafeFinanceServer interface { } func RegisterFinanceServer(s grpc.ServiceRegistrar, srv FinanceServer) { + // If the following call pancis, it indicates UnimplementedFinanceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Finance_ServiceDesc, srv) } diff --git a/grpc-interfaces/kloudlite.io/rpc/iam/iam.pb.go b/grpc-interfaces/kloudlite.io/rpc/iam/iam.pb.go index e81e5472c..864398acf 100644 --- a/grpc-interfaces/kloudlite.io/rpc/iam/iam.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/iam/iam.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: iam.proto package iam @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,23 +22,20 @@ const ( ) type RoleBinding struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + ResourceRef string `protobuf:"bytes,2,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + ResourceType string `protobuf:"bytes,3,opt,name=resourceType,proto3" json:"resourceType,omitempty"` + Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - ResourceRef string `protobuf:"bytes,2,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` - ResourceType string `protobuf:"bytes,3,opt,name=resourceType,proto3" json:"resourceType,omitempty"` - Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RoleBinding) Reset() { *x = RoleBinding{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RoleBinding) String() string { @@ -48,7 +46,7 @@ func (*RoleBinding) ProtoMessage() {} func (x *RoleBinding) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -92,22 +90,19 @@ func (x *RoleBinding) GetRole() string { } type GetMembershipIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + ResourceType string `protobuf:"bytes,2,opt,name=resourceType,proto3" json:"resourceType,omitempty"` + ResourceRef string `protobuf:"bytes,3,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - ResourceType string `protobuf:"bytes,2,opt,name=resourceType,proto3" json:"resourceType,omitempty"` - ResourceRef string `protobuf:"bytes,3,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMembershipIn) Reset() { *x = GetMembershipIn{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMembershipIn) String() string { @@ -118,7 +113,7 @@ func (*GetMembershipIn) ProtoMessage() {} func (x *GetMembershipIn) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -155,24 +150,21 @@ func (x *GetMembershipIn) GetResourceRef() string { } type AddMembershipIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + ResourceType string `protobuf:"bytes,2,opt,name=resourceType,proto3" json:"resourceType,omitempty"` + ResourceRef string `protobuf:"bytes,3,opt,name=resourceRef,proto3" json:"resourceRef,omitempty"` + Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` + Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - ResourceType string `protobuf:"bytes,2,opt,name=resourceType,proto3" json:"resourceType,omitempty"` - ResourceRef string `protobuf:"bytes,3,opt,name=resourceRef,proto3" json:"resourceRef,omitempty"` - Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` - Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AddMembershipIn) Reset() { *x = AddMembershipIn{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddMembershipIn) String() string { @@ -183,7 +175,7 @@ func (*AddMembershipIn) ProtoMessage() {} func (x *AddMembershipIn) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -234,23 +226,20 @@ func (x *AddMembershipIn) GetFilter() string { } type UpdateMembershipIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + ResourceType string `protobuf:"bytes,2,opt,name=resourceType,proto3" json:"resourceType,omitempty"` + ResourceRef string `protobuf:"bytes,3,opt,name=resourceRef,proto3" json:"resourceRef,omitempty"` + Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - ResourceType string `protobuf:"bytes,2,opt,name=resourceType,proto3" json:"resourceType,omitempty"` - ResourceRef string `protobuf:"bytes,3,opt,name=resourceRef,proto3" json:"resourceRef,omitempty"` - Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateMembershipIn) Reset() { *x = UpdateMembershipIn{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateMembershipIn) String() string { @@ -261,7 +250,7 @@ func (*UpdateMembershipIn) ProtoMessage() {} func (x *UpdateMembershipIn) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -305,20 +294,17 @@ func (x *UpdateMembershipIn) GetRole() string { } type UpdateMembershipOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` unknownFields protoimpl.UnknownFields - - Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateMembershipOut) Reset() { *x = UpdateMembershipOut{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateMembershipOut) String() string { @@ -329,7 +315,7 @@ func (*UpdateMembershipOut) ProtoMessage() {} func (x *UpdateMembershipOut) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -352,22 +338,19 @@ func (x *UpdateMembershipOut) GetResult() bool { } type GetMembershipOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + ResourceRef string `protobuf:"bytes,2,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - ResourceRef string `protobuf:"bytes,2,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` - Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMembershipOut) Reset() { *x = GetMembershipOut{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMembershipOut) String() string { @@ -378,7 +361,7 @@ func (*GetMembershipOut) ProtoMessage() {} func (x *GetMembershipOut) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -415,20 +398,17 @@ func (x *GetMembershipOut) GetRole() string { } type AddMembershipOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` unknownFields protoimpl.UnknownFields - - Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AddMembershipOut) Reset() { *x = AddMembershipOut{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddMembershipOut) String() string { @@ -439,7 +419,7 @@ func (*AddMembershipOut) ProtoMessage() {} func (x *AddMembershipOut) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -462,21 +442,18 @@ func (x *AddMembershipOut) GetResult() bool { } type RemoveMembershipIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + ResourceRef string `protobuf:"bytes,2,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - ResourceRef string `protobuf:"bytes,2,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RemoveMembershipIn) Reset() { *x = RemoveMembershipIn{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoveMembershipIn) String() string { @@ -487,7 +464,7 @@ func (*RemoveMembershipIn) ProtoMessage() {} func (x *RemoveMembershipIn) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -517,20 +494,17 @@ func (x *RemoveMembershipIn) GetResourceRef() string { } type RemoveMembershipOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` unknownFields protoimpl.UnknownFields - - Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RemoveMembershipOut) Reset() { *x = RemoveMembershipOut{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoveMembershipOut) String() string { @@ -541,7 +515,7 @@ func (*RemoveMembershipOut) ProtoMessage() {} func (x *RemoveMembershipOut) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -564,20 +538,17 @@ func (x *RemoveMembershipOut) GetResult() bool { } type RemoveResourceIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceRef string `protobuf:"bytes,1,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RemoveResourceIn) Reset() { *x = RemoveResourceIn{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoveResourceIn) String() string { @@ -588,7 +559,7 @@ func (*RemoveResourceIn) ProtoMessage() {} func (x *RemoveResourceIn) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -611,20 +582,17 @@ func (x *RemoveResourceIn) GetResourceRef() string { } type RemoveResourceOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` unknownFields protoimpl.UnknownFields - - Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RemoveResourceOut) Reset() { *x = RemoveResourceOut{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoveResourceOut) String() string { @@ -635,7 +603,7 @@ func (*RemoveResourceOut) ProtoMessage() {} func (x *RemoveResourceOut) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -658,20 +626,17 @@ func (x *RemoveResourceOut) GetResult() bool { } type ListMembershipsOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RoleBindings []*RoleBinding `protobuf:"bytes,1,rep,name=roleBindings,proto3" json:"roleBindings,omitempty"` unknownFields protoimpl.UnknownFields - - RoleBindings []*RoleBinding `protobuf:"bytes,1,rep,name=roleBindings,proto3" json:"roleBindings,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListMembershipsOut) Reset() { *x = ListMembershipsOut{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListMembershipsOut) String() string { @@ -682,7 +647,7 @@ func (*ListMembershipsOut) ProtoMessage() {} func (x *ListMembershipsOut) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -705,21 +670,18 @@ func (x *ListMembershipsOut) GetRoleBindings() []*RoleBinding { } type MembershipsForResourceIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceType string `protobuf:"bytes,1,opt,name=resourceType,proto3" json:"resourceType,omitempty"` + ResourceRef string `protobuf:"bytes,2,opt,name=resourceRef,proto3" json:"resourceRef,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceType string `protobuf:"bytes,1,opt,name=resourceType,proto3" json:"resourceType,omitempty"` - ResourceRef string `protobuf:"bytes,2,opt,name=resourceRef,proto3" json:"resourceRef,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MembershipsForResourceIn) Reset() { *x = MembershipsForResourceIn{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MembershipsForResourceIn) String() string { @@ -730,7 +692,7 @@ func (*MembershipsForResourceIn) ProtoMessage() {} func (x *MembershipsForResourceIn) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -760,21 +722,18 @@ func (x *MembershipsForResourceIn) GetResourceRef() string { } type MembershipsForUserIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + ResourceType string `protobuf:"bytes,2,opt,name=resourceType,proto3" json:"resourceType,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - ResourceType string `protobuf:"bytes,2,opt,name=resourceType,proto3" json:"resourceType,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MembershipsForUserIn) Reset() { *x = MembershipsForUserIn{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MembershipsForUserIn) String() string { @@ -785,7 +744,7 @@ func (*MembershipsForUserIn) ProtoMessage() {} func (x *MembershipsForUserIn) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -815,21 +774,18 @@ func (x *MembershipsForUserIn) GetResourceType() string { } type ResourceMembershipsOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceType string `protobuf:"bytes,1,opt,name=resourceType,proto3" json:"resourceType,omitempty"` + ResourceRef string `protobuf:"bytes,2,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceType string `protobuf:"bytes,1,opt,name=resourceType,proto3" json:"resourceType,omitempty"` - ResourceRef string `protobuf:"bytes,2,opt,name=ResourceRef,proto3" json:"ResourceRef,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ResourceMembershipsOut) Reset() { *x = ResourceMembershipsOut{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResourceMembershipsOut) String() string { @@ -840,7 +796,7 @@ func (*ResourceMembershipsOut) ProtoMessage() {} func (x *ResourceMembershipsOut) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -870,20 +826,17 @@ func (x *ResourceMembershipsOut) GetResourceRef() string { } type Message struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields - - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Message) Reset() { *x = Message{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message) String() string { @@ -894,7 +847,7 @@ func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -917,22 +870,19 @@ func (x *Message) GetMessage() string { } type CanIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + ResourceRefs []string `protobuf:"bytes,2,rep,name=ResourceRefs,proto3" json:"ResourceRefs,omitempty"` + Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - ResourceRefs []string `protobuf:"bytes,2,rep,name=ResourceRefs,proto3" json:"ResourceRefs,omitempty"` - Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CanIn) Reset() { *x = CanIn{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CanIn) String() string { @@ -943,7 +893,7 @@ func (*CanIn) ProtoMessage() {} func (x *CanIn) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -980,20 +930,17 @@ func (x *CanIn) GetAction() string { } type CanOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` unknownFields protoimpl.UnknownFields - - Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CanOut) Reset() { *x = CanOut{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CanOut) String() string { @@ -1004,7 +951,7 @@ func (*CanOut) ProtoMessage() {} func (x *CanOut) ProtoReflect() protoreflect.Message { mi := &file_iam_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1028,149 +975,90 @@ func (x *CanOut) GetStatus() bool { var File_iam_proto protoreflect.FileDescriptor -var file_iam_proto_rawDesc = []byte{ - 0x0a, 0x09, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7f, 0x0a, 0x0b, 0x52, - 0x6f, 0x6c, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, - 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, - 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x52, 0x65, 0x66, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x6f, 0x0a, 0x0f, - 0x47, 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x49, 0x6e, 0x12, - 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x22, 0x9b, 0x01, - 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x49, - 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, - 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x12, - 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, - 0x6f, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x86, 0x01, 0x0a, 0x12, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, - 0x49, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, - 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, - 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x2d, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x4f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x22, 0x60, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x73, 0x68, 0x69, 0x70, 0x4f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, - 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, - 0x66, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x2a, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x4f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x22, 0x4e, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x73, 0x68, 0x69, 0x70, 0x49, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, - 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, - 0x66, 0x22, 0x2d, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x73, 0x68, 0x69, 0x70, 0x4f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x22, 0x34, 0x0a, 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x49, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x52, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x22, 0x2b, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x22, 0x46, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x4f, 0x75, 0x74, 0x12, 0x30, 0x0a, 0x0c, 0x72, 0x6f, 0x6c, - 0x65, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0c, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x72, - 0x6f, 0x6c, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x60, 0x0a, 0x18, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x22, 0x52, 0x0a, - 0x14, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x46, 0x6f, 0x72, 0x55, - 0x73, 0x65, 0x72, 0x49, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, - 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x22, 0x5e, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x4f, 0x75, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, - 0x66, 0x22, 0x23, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5b, 0x0a, 0x05, 0x43, 0x61, 0x6e, 0x49, 0x6e, 0x12, - 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x06, 0x43, 0x61, 0x6e, 0x4f, 0x75, 0x74, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0xf0, 0x03, 0x0a, 0x03, 0x49, 0x41, 0x4d, 0x12, 0x1a, 0x0a, - 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x08, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, - 0x08, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x03, 0x43, 0x61, 0x6e, - 0x12, 0x06, 0x2e, 0x43, 0x61, 0x6e, 0x49, 0x6e, 0x1a, 0x07, 0x2e, 0x43, 0x61, 0x6e, 0x4f, 0x75, - 0x74, 0x12, 0x4c, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, - 0x68, 0x69, 0x70, 0x73, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, - 0x19, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x46, 0x6f, 0x72, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x1a, 0x13, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x4f, 0x75, 0x74, 0x12, - 0x44, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, - 0x70, 0x73, 0x46, 0x6f, 0x72, 0x55, 0x73, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x46, 0x6f, 0x72, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, - 0x1a, 0x13, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, - 0x70, 0x73, 0x4f, 0x75, 0x74, 0x12, 0x34, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x10, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x49, 0x6e, 0x1a, 0x11, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x4f, 0x75, 0x74, 0x12, 0x34, 0x0a, 0x0d, 0x41, - 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x10, 0x2e, 0x41, - 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x49, 0x6e, 0x1a, 0x11, - 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x4f, 0x75, - 0x74, 0x12, 0x3d, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x13, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x49, 0x6e, 0x1a, 0x14, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x4f, 0x75, 0x74, - 0x12, 0x3d, 0x0a, 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x73, 0x68, 0x69, 0x70, 0x12, 0x13, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x49, 0x6e, 0x1a, 0x14, 0x2e, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x4f, 0x75, 0x74, 0x12, - 0x37, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x12, 0x11, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x49, 0x6e, 0x1a, 0x12, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x75, 0x74, 0x42, 0x16, 0x5a, 0x14, 0x6b, 0x6c, 0x6f, 0x75, - 0x64, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x69, 0x61, 0x6d, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_iam_proto_rawDesc = "" + + "\n" + + "\tiam.proto\"\x7f\n" + + "\vRoleBinding\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12 \n" + + "\vResourceRef\x18\x02 \x01(\tR\vResourceRef\x12\"\n" + + "\fresourceType\x18\x03 \x01(\tR\fresourceType\x12\x12\n" + + "\x04role\x18\x04 \x01(\tR\x04role\"o\n" + + "\x0fGetMembershipIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\"\n" + + "\fresourceType\x18\x02 \x01(\tR\fresourceType\x12 \n" + + "\vResourceRef\x18\x03 \x01(\tR\vResourceRef\"\x9b\x01\n" + + "\x0fAddMembershipIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\"\n" + + "\fresourceType\x18\x02 \x01(\tR\fresourceType\x12 \n" + + "\vresourceRef\x18\x03 \x01(\tR\vresourceRef\x12\x12\n" + + "\x04role\x18\x04 \x01(\tR\x04role\x12\x16\n" + + "\x06filter\x18\x05 \x01(\tR\x06filter\"\x86\x01\n" + + "\x12UpdateMembershipIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\"\n" + + "\fresourceType\x18\x02 \x01(\tR\fresourceType\x12 \n" + + "\vresourceRef\x18\x03 \x01(\tR\vresourceRef\x12\x12\n" + + "\x04role\x18\x04 \x01(\tR\x04role\"-\n" + + "\x13UpdateMembershipOut\x12\x16\n" + + "\x06result\x18\x01 \x01(\bR\x06result\"`\n" + + "\x10GetMembershipOut\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12 \n" + + "\vResourceRef\x18\x02 \x01(\tR\vResourceRef\x12\x12\n" + + "\x04role\x18\x03 \x01(\tR\x04role\"*\n" + + "\x10AddMembershipOut\x12\x16\n" + + "\x06result\x18\x01 \x01(\bR\x06result\"N\n" + + "\x12RemoveMembershipIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12 \n" + + "\vResourceRef\x18\x02 \x01(\tR\vResourceRef\"-\n" + + "\x13RemoveMembershipOut\x12\x16\n" + + "\x06result\x18\x01 \x01(\bR\x06result\"4\n" + + "\x10RemoveResourceIn\x12 \n" + + "\vResourceRef\x18\x01 \x01(\tR\vResourceRef\"+\n" + + "\x11RemoveResourceOut\x12\x16\n" + + "\x06result\x18\x01 \x01(\bR\x06result\"F\n" + + "\x12ListMembershipsOut\x120\n" + + "\froleBindings\x18\x01 \x03(\v2\f.RoleBindingR\froleBindings\"`\n" + + "\x18MembershipsForResourceIn\x12\"\n" + + "\fresourceType\x18\x01 \x01(\tR\fresourceType\x12 \n" + + "\vresourceRef\x18\x02 \x01(\tR\vresourceRef\"R\n" + + "\x14MembershipsForUserIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\"\n" + + "\fresourceType\x18\x02 \x01(\tR\fresourceType\"^\n" + + "\x16ResourceMembershipsOut\x12\"\n" + + "\fresourceType\x18\x01 \x01(\tR\fresourceType\x12 \n" + + "\vResourceRef\x18\x02 \x01(\tR\vResourceRef\"#\n" + + "\aMessage\x12\x18\n" + + "\amessage\x18\x01 \x01(\tR\amessage\"[\n" + + "\x05CanIn\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\"\n" + + "\fResourceRefs\x18\x02 \x03(\tR\fResourceRefs\x12\x16\n" + + "\x06action\x18\x03 \x01(\tR\x06action\" \n" + + "\x06CanOut\x12\x16\n" + + "\x06status\x18\x01 \x01(\bR\x06status2\xf0\x03\n" + + "\x03IAM\x12\x1a\n" + + "\x04Ping\x12\b.Message\x1a\b.Message\x12\x16\n" + + "\x03Can\x12\x06.CanIn\x1a\a.CanOut\x12L\n" + + "\x1aListMembershipsForResource\x12\x19.MembershipsForResourceIn\x1a\x13.ListMembershipsOut\x12D\n" + + "\x16ListMembershipsForUser\x12\x15.MembershipsForUserIn\x1a\x13.ListMembershipsOut\x124\n" + + "\rGetMembership\x12\x10.GetMembershipIn\x1a\x11.GetMembershipOut\x124\n" + + "\rAddMembership\x12\x10.AddMembershipIn\x1a\x11.AddMembershipOut\x12=\n" + + "\x10UpdateMembership\x12\x13.UpdateMembershipIn\x1a\x14.UpdateMembershipOut\x12=\n" + + "\x10RemoveMembership\x12\x13.RemoveMembershipIn\x1a\x14.RemoveMembershipOut\x127\n" + + "\x0eRemoveResource\x12\x11.RemoveResourceIn\x1a\x12.RemoveResourceOutB\x16Z\x14kloudlite.io/rpc/iamb\x06proto3" var ( file_iam_proto_rawDescOnce sync.Once - file_iam_proto_rawDescData = file_iam_proto_rawDesc + file_iam_proto_rawDescData []byte ) func file_iam_proto_rawDescGZIP() []byte { file_iam_proto_rawDescOnce.Do(func() { - file_iam_proto_rawDescData = protoimpl.X.CompressGZIP(file_iam_proto_rawDescData) + file_iam_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_iam_proto_rawDesc), len(file_iam_proto_rawDesc))) }) return file_iam_proto_rawDescData } var file_iam_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_iam_proto_goTypes = []interface{}{ +var file_iam_proto_goTypes = []any{ (*RoleBinding)(nil), // 0: RoleBinding (*GetMembershipIn)(nil), // 1: GetMembershipIn (*AddMembershipIn)(nil), // 2: AddMembershipIn @@ -1222,229 +1110,11 @@ func file_iam_proto_init() { if File_iam_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_iam_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RoleBinding); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMembershipIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddMembershipIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateMembershipIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateMembershipOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMembershipOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddMembershipOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveMembershipIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveMembershipOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveResourceIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveResourceOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListMembershipsOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MembershipsForResourceIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MembershipsForUserIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourceMembershipsOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Message); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_iam_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_iam_proto_rawDesc), len(file_iam_proto_rawDesc)), NumEnums: 0, NumMessages: 18, NumExtensions: 0, @@ -1455,7 +1125,6 @@ func file_iam_proto_init() { MessageInfos: file_iam_proto_msgTypes, }.Build() File_iam_proto = out.File - file_iam_proto_rawDesc = nil file_iam_proto_goTypes = nil file_iam_proto_depIdxs = nil } diff --git a/grpc-interfaces/kloudlite.io/rpc/iam/iam_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/iam/iam_grpc.pb.go index 1810941e2..e2dc670db 100644 --- a/grpc-interfaces/kloudlite.io/rpc/iam/iam_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/iam/iam_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: iam.proto package iam @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( IAM_Ping_FullMethodName = "/IAM/Ping" @@ -56,8 +56,9 @@ func NewIAMClient(cc grpc.ClientConnInterface) IAMClient { } func (c *iAMClient) Ping(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Message) - err := c.cc.Invoke(ctx, IAM_Ping_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IAM_Ping_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -65,8 +66,9 @@ func (c *iAMClient) Ping(ctx context.Context, in *Message, opts ...grpc.CallOpti } func (c *iAMClient) Can(ctx context.Context, in *CanIn, opts ...grpc.CallOption) (*CanOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CanOut) - err := c.cc.Invoke(ctx, IAM_Can_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IAM_Can_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -74,8 +76,9 @@ func (c *iAMClient) Can(ctx context.Context, in *CanIn, opts ...grpc.CallOption) } func (c *iAMClient) ListMembershipsForResource(ctx context.Context, in *MembershipsForResourceIn, opts ...grpc.CallOption) (*ListMembershipsOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListMembershipsOut) - err := c.cc.Invoke(ctx, IAM_ListMembershipsForResource_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IAM_ListMembershipsForResource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -83,8 +86,9 @@ func (c *iAMClient) ListMembershipsForResource(ctx context.Context, in *Membersh } func (c *iAMClient) ListMembershipsForUser(ctx context.Context, in *MembershipsForUserIn, opts ...grpc.CallOption) (*ListMembershipsOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListMembershipsOut) - err := c.cc.Invoke(ctx, IAM_ListMembershipsForUser_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IAM_ListMembershipsForUser_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,8 +96,9 @@ func (c *iAMClient) ListMembershipsForUser(ctx context.Context, in *MembershipsF } func (c *iAMClient) GetMembership(ctx context.Context, in *GetMembershipIn, opts ...grpc.CallOption) (*GetMembershipOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetMembershipOut) - err := c.cc.Invoke(ctx, IAM_GetMembership_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IAM_GetMembership_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -101,8 +106,9 @@ func (c *iAMClient) GetMembership(ctx context.Context, in *GetMembershipIn, opts } func (c *iAMClient) AddMembership(ctx context.Context, in *AddMembershipIn, opts ...grpc.CallOption) (*AddMembershipOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AddMembershipOut) - err := c.cc.Invoke(ctx, IAM_AddMembership_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IAM_AddMembership_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -110,8 +116,9 @@ func (c *iAMClient) AddMembership(ctx context.Context, in *AddMembershipIn, opts } func (c *iAMClient) UpdateMembership(ctx context.Context, in *UpdateMembershipIn, opts ...grpc.CallOption) (*UpdateMembershipOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateMembershipOut) - err := c.cc.Invoke(ctx, IAM_UpdateMembership_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IAM_UpdateMembership_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -119,8 +126,9 @@ func (c *iAMClient) UpdateMembership(ctx context.Context, in *UpdateMembershipIn } func (c *iAMClient) RemoveMembership(ctx context.Context, in *RemoveMembershipIn, opts ...grpc.CallOption) (*RemoveMembershipOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveMembershipOut) - err := c.cc.Invoke(ctx, IAM_RemoveMembership_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IAM_RemoveMembership_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -128,8 +136,9 @@ func (c *iAMClient) RemoveMembership(ctx context.Context, in *RemoveMembershipIn } func (c *iAMClient) RemoveResource(ctx context.Context, in *RemoveResourceIn, opts ...grpc.CallOption) (*RemoveResourceOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveResourceOut) - err := c.cc.Invoke(ctx, IAM_RemoveResource_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IAM_RemoveResource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -138,7 +147,7 @@ func (c *iAMClient) RemoveResource(ctx context.Context, in *RemoveResourceIn, op // IAMServer is the server API for IAM service. // All implementations must embed UnimplementedIAMServer -// for forward compatibility +// for forward compatibility. type IAMServer interface { // Query Ping(context.Context, *Message) (*Message, error) @@ -154,9 +163,12 @@ type IAMServer interface { mustEmbedUnimplementedIAMServer() } -// UnimplementedIAMServer must be embedded to have forward compatible implementations. -type UnimplementedIAMServer struct { -} +// UnimplementedIAMServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedIAMServer struct{} func (UnimplementedIAMServer) Ping(context.Context, *Message) (*Message, error) { return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented") @@ -186,6 +198,7 @@ func (UnimplementedIAMServer) RemoveResource(context.Context, *RemoveResourceIn) return nil, status.Errorf(codes.Unimplemented, "method RemoveResource not implemented") } func (UnimplementedIAMServer) mustEmbedUnimplementedIAMServer() {} +func (UnimplementedIAMServer) testEmbeddedByValue() {} // UnsafeIAMServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to IAMServer will @@ -195,6 +208,13 @@ type UnsafeIAMServer interface { } func RegisterIAMServer(s grpc.ServiceRegistrar, srv IAMServer) { + // If the following call pancis, it indicates UnimplementedIAMServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&IAM_ServiceDesc, srv) } diff --git a/grpc-interfaces/kloudlite.io/rpc/jseval/jseval.pb.go b/grpc-interfaces/kloudlite.io/rpc/jseval/jseval.pb.go index bdaa70343..493a77f9e 100644 --- a/grpc-interfaces/kloudlite.io/rpc/jseval/jseval.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/jseval/jseval.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: jseval.proto package jseval @@ -12,6 +12,7 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,22 +23,19 @@ const ( ) type EvalIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Init string `protobuf:"bytes,1,opt,name=init,proto3" json:"init,omitempty"` + FunName string `protobuf:"bytes,4,opt,name=funName,proto3" json:"funName,omitempty"` + Inputs *anypb.Any `protobuf:"bytes,3,opt,name=inputs,proto3" json:"inputs,omitempty"` unknownFields protoimpl.UnknownFields - - Init string `protobuf:"bytes,1,opt,name=init,proto3" json:"init,omitempty"` - FunName string `protobuf:"bytes,4,opt,name=funName,proto3" json:"funName,omitempty"` - Inputs *anypb.Any `protobuf:"bytes,3,opt,name=inputs,proto3" json:"inputs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EvalIn) Reset() { *x = EvalIn{} - if protoimpl.UnsafeEnabled { - mi := &file_jseval_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_jseval_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EvalIn) String() string { @@ -48,7 +46,7 @@ func (*EvalIn) ProtoMessage() {} func (x *EvalIn) ProtoReflect() protoreflect.Message { mi := &file_jseval_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -85,20 +83,17 @@ func (x *EvalIn) GetInputs() *anypb.Any { } type EvalOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Output *anypb.Any `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` unknownFields protoimpl.UnknownFields - - Output *anypb.Any `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EvalOut) Reset() { *x = EvalOut{} - if protoimpl.UnsafeEnabled { - mi := &file_jseval_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_jseval_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EvalOut) String() string { @@ -109,7 +104,7 @@ func (*EvalOut) ProtoMessage() {} func (x *EvalOut) ProtoReflect() protoreflect.Message { mi := &file_jseval_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -133,40 +128,32 @@ func (x *EvalOut) GetOutput() *anypb.Any { var File_jseval_proto protoreflect.FileDescriptor -var file_jseval_proto_rawDesc = []byte{ - 0x0a, 0x0c, 0x6a, 0x73, 0x65, 0x76, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x64, 0x0a, 0x06, 0x45, 0x76, 0x61, - 0x6c, 0x49, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x75, 0x6e, 0x4e, 0x61, - 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x75, 0x6e, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x22, - 0x37, 0x0a, 0x07, 0x45, 0x76, 0x61, 0x6c, 0x4f, 0x75, 0x74, 0x12, 0x2c, 0x0a, 0x06, 0x6f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, - 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x32, 0x23, 0x0a, 0x06, 0x4a, 0x53, 0x45, 0x76, - 0x61, 0x6c, 0x12, 0x19, 0x0a, 0x04, 0x45, 0x76, 0x61, 0x6c, 0x12, 0x07, 0x2e, 0x45, 0x76, 0x61, - 0x6c, 0x49, 0x6e, 0x1a, 0x08, 0x2e, 0x45, 0x76, 0x61, 0x6c, 0x4f, 0x75, 0x74, 0x42, 0x19, 0x5a, - 0x17, 0x6b, 0x6c, 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x70, - 0x63, 0x2f, 0x6a, 0x73, 0x65, 0x76, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_jseval_proto_rawDesc = "" + + "\n" + + "\fjseval.proto\x1a\x19google/protobuf/any.proto\"d\n" + + "\x06EvalIn\x12\x12\n" + + "\x04init\x18\x01 \x01(\tR\x04init\x12\x18\n" + + "\afunName\x18\x04 \x01(\tR\afunName\x12,\n" + + "\x06inputs\x18\x03 \x01(\v2\x14.google.protobuf.AnyR\x06inputs\"7\n" + + "\aEvalOut\x12,\n" + + "\x06output\x18\x03 \x01(\v2\x14.google.protobuf.AnyR\x06output2#\n" + + "\x06JSEval\x12\x19\n" + + "\x04Eval\x12\a.EvalIn\x1a\b.EvalOutB\x19Z\x17kloudlite.io/rpc/jsevalb\x06proto3" var ( file_jseval_proto_rawDescOnce sync.Once - file_jseval_proto_rawDescData = file_jseval_proto_rawDesc + file_jseval_proto_rawDescData []byte ) func file_jseval_proto_rawDescGZIP() []byte { file_jseval_proto_rawDescOnce.Do(func() { - file_jseval_proto_rawDescData = protoimpl.X.CompressGZIP(file_jseval_proto_rawDescData) + file_jseval_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_jseval_proto_rawDesc), len(file_jseval_proto_rawDesc))) }) return file_jseval_proto_rawDescData } var file_jseval_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_jseval_proto_goTypes = []interface{}{ +var file_jseval_proto_goTypes = []any{ (*EvalIn)(nil), // 0: EvalIn (*EvalOut)(nil), // 1: EvalOut (*anypb.Any)(nil), // 2: google.protobuf.Any @@ -188,37 +175,11 @@ func file_jseval_proto_init() { if File_jseval_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_jseval_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EvalIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jseval_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EvalOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_jseval_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_jseval_proto_rawDesc), len(file_jseval_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -229,7 +190,6 @@ func file_jseval_proto_init() { MessageInfos: file_jseval_proto_msgTypes, }.Build() File_jseval_proto = out.File - file_jseval_proto_rawDesc = nil file_jseval_proto_goTypes = nil file_jseval_proto_depIdxs = nil } diff --git a/grpc-interfaces/kloudlite.io/rpc/jseval/jseval_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/jseval/jseval_grpc.pb.go index 8c2cb8221..e57fec9e3 100644 --- a/grpc-interfaces/kloudlite.io/rpc/jseval/jseval_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/jseval/jseval_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: jseval.proto package jseval @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( JSEval_Eval_FullMethodName = "/JSEval/Eval" @@ -38,8 +38,9 @@ func NewJSEvalClient(cc grpc.ClientConnInterface) JSEvalClient { } func (c *jSEvalClient) Eval(ctx context.Context, in *EvalIn, opts ...grpc.CallOption) (*EvalOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EvalOut) - err := c.cc.Invoke(ctx, JSEval_Eval_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JSEval_Eval_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *jSEvalClient) Eval(ctx context.Context, in *EvalIn, opts ...grpc.CallOp // JSEvalServer is the server API for JSEval service. // All implementations must embed UnimplementedJSEvalServer -// for forward compatibility +// for forward compatibility. type JSEvalServer interface { Eval(context.Context, *EvalIn) (*EvalOut, error) mustEmbedUnimplementedJSEvalServer() } -// UnimplementedJSEvalServer must be embedded to have forward compatible implementations. -type UnimplementedJSEvalServer struct { -} +// UnimplementedJSEvalServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedJSEvalServer struct{} func (UnimplementedJSEvalServer) Eval(context.Context, *EvalIn) (*EvalOut, error) { return nil, status.Errorf(codes.Unimplemented, "method Eval not implemented") } func (UnimplementedJSEvalServer) mustEmbedUnimplementedJSEvalServer() {} +func (UnimplementedJSEvalServer) testEmbeddedByValue() {} // UnsafeJSEvalServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to JSEvalServer will @@ -71,6 +76,13 @@ type UnsafeJSEvalServer interface { } func RegisterJSEvalServer(s grpc.ServiceRegistrar, srv JSEvalServer) { + // If the following call pancis, it indicates UnimplementedJSEvalServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&JSEval_ServiceDesc, srv) } diff --git a/grpc-interfaces/kloudlite.io/rpc/message-office-internal/message-office-internal.pb.go b/grpc-interfaces/kloudlite.io/rpc/message-office-internal/message-office-internal.pb.go index d6ce73674..4288cae6e 100644 --- a/grpc-interfaces/kloudlite.io/rpc/message-office-internal/message-office-internal.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/message-office-internal/message-office-internal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.6 +// protoc v3.21.12 // source: message-office-internal.proto package message_office_internal @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,21 +22,18 @@ const ( ) type GenerateClusterTokenIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` unknownFields protoimpl.UnknownFields - - AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GenerateClusterTokenIn) Reset() { *x = GenerateClusterTokenIn{} - if protoimpl.UnsafeEnabled { - mi := &file_message_office_internal_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_message_office_internal_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenerateClusterTokenIn) String() string { @@ -46,7 +44,7 @@ func (*GenerateClusterTokenIn) ProtoMessage() {} func (x *GenerateClusterTokenIn) ProtoReflect() protoreflect.Message { mi := &file_message_office_internal_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -76,20 +74,17 @@ func (x *GenerateClusterTokenIn) GetClusterName() string { } type GenerateClusterTokenOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ClusterToken string `protobuf:"bytes,1,opt,name=clusterToken,proto3" json:"clusterToken,omitempty"` unknownFields protoimpl.UnknownFields - - ClusterToken string `protobuf:"bytes,1,opt,name=clusterToken,proto3" json:"clusterToken,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GenerateClusterTokenOut) Reset() { *x = GenerateClusterTokenOut{} - if protoimpl.UnsafeEnabled { - mi := &file_message_office_internal_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_message_office_internal_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenerateClusterTokenOut) String() string { @@ -100,7 +95,7 @@ func (*GenerateClusterTokenOut) ProtoMessage() {} func (x *GenerateClusterTokenOut) ProtoReflect() protoreflect.Message { mi := &file_message_office_internal_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -123,21 +118,18 @@ func (x *GenerateClusterTokenOut) GetClusterToken() string { } type GetClusterTokenIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` unknownFields protoimpl.UnknownFields - - AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` - ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetClusterTokenIn) Reset() { *x = GetClusterTokenIn{} - if protoimpl.UnsafeEnabled { - mi := &file_message_office_internal_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_message_office_internal_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetClusterTokenIn) String() string { @@ -148,7 +140,7 @@ func (*GetClusterTokenIn) ProtoMessage() {} func (x *GetClusterTokenIn) ProtoReflect() protoreflect.Message { mi := &file_message_office_internal_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -178,20 +170,17 @@ func (x *GetClusterTokenIn) GetClusterName() string { } type GetClusterTokenOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ClusterToken string `protobuf:"bytes,1,opt,name=clusterToken,proto3" json:"clusterToken,omitempty"` unknownFields protoimpl.UnknownFields - - ClusterToken string `protobuf:"bytes,1,opt,name=clusterToken,proto3" json:"clusterToken,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetClusterTokenOut) Reset() { *x = GetClusterTokenOut{} - if protoimpl.UnsafeEnabled { - mi := &file_message_office_internal_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_message_office_internal_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetClusterTokenOut) String() string { @@ -202,7 +191,7 @@ func (*GetClusterTokenOut) ProtoMessage() {} func (x *GetClusterTokenOut) ProtoReflect() protoreflect.Message { mi := &file_message_office_internal_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -226,58 +215,37 @@ func (x *GetClusterTokenOut) GetClusterToken() string { var File_message_office_internal_proto protoreflect.FileDescriptor -var file_message_office_internal_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2d, 0x6f, 0x66, 0x66, 0x69, 0x63, 0x65, - 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x5c, 0x0a, 0x16, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3d, 0x0a, - 0x17, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4f, 0x75, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x57, 0x0a, 0x11, - 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, - 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x38, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4f, 0x75, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, - 0x9e, 0x01, 0x0a, 0x15, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x66, 0x66, 0x69, 0x63, - 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x49, 0x0a, 0x14, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x12, 0x17, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x6e, 0x1a, 0x18, 0x2e, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x4f, 0x75, 0x74, 0x12, 0x3a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x12, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x6e, 0x1a, 0x13, 0x2e, 0x47, 0x65, - 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4f, 0x75, 0x74, - 0x42, 0x2a, 0x5a, 0x28, 0x6b, 0x6c, 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69, 0x6f, - 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2d, 0x6f, 0x66, 0x66, - 0x69, 0x63, 0x65, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} +const file_message_office_internal_proto_rawDesc = "" + + "\n" + + "\x1dmessage-office-internal.proto\"\\\n" + + "\x16GenerateClusterTokenIn\x12 \n" + + "\vaccountName\x18\x01 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x02 \x01(\tR\vclusterName\"=\n" + + "\x17GenerateClusterTokenOut\x12\"\n" + + "\fclusterToken\x18\x01 \x01(\tR\fclusterToken\"W\n" + + "\x11GetClusterTokenIn\x12 \n" + + "\vaccountName\x18\x01 \x01(\tR\vaccountName\x12 \n" + + "\vclusterName\x18\x02 \x01(\tR\vclusterName\"8\n" + + "\x12GetClusterTokenOut\x12\"\n" + + "\fclusterToken\x18\x01 \x01(\tR\fclusterToken2\x9e\x01\n" + + "\x15MessageOfficeInternal\x12I\n" + + "\x14GenerateClusterToken\x12\x17.GenerateClusterTokenIn\x1a\x18.GenerateClusterTokenOut\x12:\n" + + "\x0fGetClusterToken\x12\x12.GetClusterTokenIn\x1a\x13.GetClusterTokenOutB*Z(kloudlite.io/rpc/message-office-internalb\x06proto3" var ( file_message_office_internal_proto_rawDescOnce sync.Once - file_message_office_internal_proto_rawDescData = file_message_office_internal_proto_rawDesc + file_message_office_internal_proto_rawDescData []byte ) func file_message_office_internal_proto_rawDescGZIP() []byte { file_message_office_internal_proto_rawDescOnce.Do(func() { - file_message_office_internal_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_office_internal_proto_rawDescData) + file_message_office_internal_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_message_office_internal_proto_rawDesc), len(file_message_office_internal_proto_rawDesc))) }) return file_message_office_internal_proto_rawDescData } var file_message_office_internal_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_message_office_internal_proto_goTypes = []interface{}{ +var file_message_office_internal_proto_goTypes = []any{ (*GenerateClusterTokenIn)(nil), // 0: GenerateClusterTokenIn (*GenerateClusterTokenOut)(nil), // 1: GenerateClusterTokenOut (*GetClusterTokenIn)(nil), // 2: GetClusterTokenIn @@ -300,61 +268,11 @@ func file_message_office_internal_proto_init() { if File_message_office_internal_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_message_office_internal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateClusterTokenIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_message_office_internal_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateClusterTokenOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_message_office_internal_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetClusterTokenIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_message_office_internal_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetClusterTokenOut); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_message_office_internal_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_message_office_internal_proto_rawDesc), len(file_message_office_internal_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, @@ -365,7 +283,6 @@ func file_message_office_internal_proto_init() { MessageInfos: file_message_office_internal_proto_msgTypes, }.Build() File_message_office_internal_proto = out.File - file_message_office_internal_proto_rawDesc = nil file_message_office_internal_proto_goTypes = nil file_message_office_internal_proto_depIdxs = nil } diff --git a/grpc-interfaces/kloudlite.io/rpc/message-office-internal/message-office-internal_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/message-office-internal/message-office-internal_grpc.pb.go index bc6c76b18..e84d71100 100644 --- a/grpc-interfaces/kloudlite.io/rpc/message-office-internal/message-office-internal_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/message-office-internal/message-office-internal_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.21.12 // source: message-office-internal.proto package message_office_internal @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( MessageOfficeInternal_GenerateClusterToken_FullMethodName = "/MessageOfficeInternal/GenerateClusterToken" @@ -40,8 +40,9 @@ func NewMessageOfficeInternalClient(cc grpc.ClientConnInterface) MessageOfficeIn } func (c *messageOfficeInternalClient) GenerateClusterToken(ctx context.Context, in *GenerateClusterTokenIn, opts ...grpc.CallOption) (*GenerateClusterTokenOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GenerateClusterTokenOut) - err := c.cc.Invoke(ctx, MessageOfficeInternal_GenerateClusterToken_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MessageOfficeInternal_GenerateClusterToken_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,8 +50,9 @@ func (c *messageOfficeInternalClient) GenerateClusterToken(ctx context.Context, } func (c *messageOfficeInternalClient) GetClusterToken(ctx context.Context, in *GetClusterTokenIn, opts ...grpc.CallOption) (*GetClusterTokenOut, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetClusterTokenOut) - err := c.cc.Invoke(ctx, MessageOfficeInternal_GetClusterToken_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MessageOfficeInternal_GetClusterToken_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,16 +61,19 @@ func (c *messageOfficeInternalClient) GetClusterToken(ctx context.Context, in *G // MessageOfficeInternalServer is the server API for MessageOfficeInternal service. // All implementations must embed UnimplementedMessageOfficeInternalServer -// for forward compatibility +// for forward compatibility. type MessageOfficeInternalServer interface { GenerateClusterToken(context.Context, *GenerateClusterTokenIn) (*GenerateClusterTokenOut, error) GetClusterToken(context.Context, *GetClusterTokenIn) (*GetClusterTokenOut, error) mustEmbedUnimplementedMessageOfficeInternalServer() } -// UnimplementedMessageOfficeInternalServer must be embedded to have forward compatible implementations. -type UnimplementedMessageOfficeInternalServer struct { -} +// UnimplementedMessageOfficeInternalServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMessageOfficeInternalServer struct{} func (UnimplementedMessageOfficeInternalServer) GenerateClusterToken(context.Context, *GenerateClusterTokenIn) (*GenerateClusterTokenOut, error) { return nil, status.Errorf(codes.Unimplemented, "method GenerateClusterToken not implemented") @@ -77,6 +82,7 @@ func (UnimplementedMessageOfficeInternalServer) GetClusterToken(context.Context, return nil, status.Errorf(codes.Unimplemented, "method GetClusterToken not implemented") } func (UnimplementedMessageOfficeInternalServer) mustEmbedUnimplementedMessageOfficeInternalServer() {} +func (UnimplementedMessageOfficeInternalServer) testEmbeddedByValue() {} // UnsafeMessageOfficeInternalServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MessageOfficeInternalServer will @@ -86,6 +92,13 @@ type UnsafeMessageOfficeInternalServer interface { } func RegisterMessageOfficeInternalServer(s grpc.ServiceRegistrar, srv MessageOfficeInternalServer) { + // If the following call pancis, it indicates UnimplementedMessageOfficeInternalServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MessageOfficeInternal_ServiceDesc, srv) }