litmus/chaoscenter/graphql/server/graph/generated/generated.go

47338 lines
1.4 MiB

// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package generated
import (
"bytes"
"context"
"errors"
"fmt"
"io"
"strconv"
"sync"
"sync/atomic"
"github.com/99designs/gqlgen/graphql"
"github.com/99designs/gqlgen/graphql/introspection"
"github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model"
gqlparser "github.com/vektah/gqlparser/v2"
"github.com/vektah/gqlparser/v2/ast"
)
// region ************************** generated!.gotpl **************************
// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
return &executableSchema{
schema: cfg.Schema,
resolvers: cfg.Resolvers,
directives: cfg.Directives,
complexity: cfg.Complexity,
}
}
type Config struct {
Schema *ast.Schema
Resolvers ResolverRoot
Directives DirectiveRoot
Complexity ComplexityRoot
}
type ResolverRoot interface {
Mutation() MutationResolver
Query() QueryResolver
Subscription() SubscriptionResolver
}
type DirectiveRoot struct {
Authorized func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
}
type ComplexityRoot struct {
ActionPayload struct {
ExternalData func(childComplexity int) int
K8sManifest func(childComplexity int) int
Namespace func(childComplexity int) int
RequestID func(childComplexity int) int
RequestType func(childComplexity int) int
Username func(childComplexity int) int
}
Annotation struct {
Categories func(childComplexity int) int
ChartDescription func(childComplexity int) int
CreatedAt func(childComplexity int) int
Repository func(childComplexity int) int
Support func(childComplexity int) int
Vendor func(childComplexity int) int
}
ChaosExperimentResponse struct {
CronSyntax func(childComplexity int) int
ExperimentDescription func(childComplexity int) int
ExperimentID func(childComplexity int) int
ExperimentName func(childComplexity int) int
IsCustomExperiment func(childComplexity int) int
ProjectID func(childComplexity int) int
Tags func(childComplexity int) int
}
ChaosHub struct {
AuthType func(childComplexity int) int
CreatedAt func(childComplexity int) int
CreatedBy func(childComplexity int) int
Description func(childComplexity int) int
HubType func(childComplexity int) int
ID func(childComplexity int) int
IsDefault func(childComplexity int) int
IsPrivate func(childComplexity int) int
IsRemoved func(childComplexity int) int
LastSyncedAt func(childComplexity int) int
Name func(childComplexity int) int
Password func(childComplexity int) int
ProjectID func(childComplexity int) int
RemoteHub func(childComplexity int) int
RepoBranch func(childComplexity int) int
RepoURL func(childComplexity int) int
SSHPrivateKey func(childComplexity int) int
Tags func(childComplexity int) int
Token func(childComplexity int) int
UpdatedAt func(childComplexity int) int
UpdatedBy func(childComplexity int) int
UserName func(childComplexity int) int
}
ChaosHubStatus struct {
AuthType func(childComplexity int) int
CreatedAt func(childComplexity int) int
CreatedBy func(childComplexity int) int
Description func(childComplexity int) int
HubType func(childComplexity int) int
ID func(childComplexity int) int
IsAvailable func(childComplexity int) int
IsDefault func(childComplexity int) int
IsPrivate func(childComplexity int) int
IsRemoved func(childComplexity int) int
LastSyncedAt func(childComplexity int) int
Name func(childComplexity int) int
Password func(childComplexity int) int
RemoteHub func(childComplexity int) int
RepoBranch func(childComplexity int) int
RepoURL func(childComplexity int) int
SSHPrivateKey func(childComplexity int) int
SSHPublicKey func(childComplexity int) int
Tags func(childComplexity int) int
Token func(childComplexity int) int
TotalExperiments func(childComplexity int) int
TotalFaults func(childComplexity int) int
UpdatedAt func(childComplexity int) int
UpdatedBy func(childComplexity int) int
UserName func(childComplexity int) int
}
Chart struct {
APIVersion func(childComplexity int) int
Kind func(childComplexity int) int
Metadata func(childComplexity int) int
PackageInfo func(childComplexity int) int
Spec func(childComplexity int) int
}
Comparator struct {
Criteria func(childComplexity int) int
Type func(childComplexity int) int
Value func(childComplexity int) int
}
ConfirmInfraRegistrationResponse struct {
InfraID func(childComplexity int) int
IsInfraConfirmed func(childComplexity int) int
NewAccessKey func(childComplexity int) int
}
Environment struct {
CreatedAt func(childComplexity int) int
CreatedBy func(childComplexity int) int
Description func(childComplexity int) int
EnvironmentID func(childComplexity int) int
InfraIDs func(childComplexity int) int
IsRemoved func(childComplexity int) int
Name func(childComplexity int) int
ProjectID func(childComplexity int) int
Tags func(childComplexity int) int
Type func(childComplexity int) int
UpdatedAt func(childComplexity int) int
UpdatedBy func(childComplexity int) int
}
ExecutedByExperiment struct {
ExperimentID func(childComplexity int) int
ExperimentName func(childComplexity int) int
UpdatedAt func(childComplexity int) int
UpdatedBy func(childComplexity int) int
}
ExecutionHistory struct {
ExecutedByExperiment func(childComplexity int) int
FaultName func(childComplexity int) int
Mode func(childComplexity int) int
Status func(childComplexity int) int
}
Experiment struct {
CreatedAt func(childComplexity int) int
CreatedBy func(childComplexity int) int
CronSyntax func(childComplexity int) int
Description func(childComplexity int) int
ExperimentID func(childComplexity int) int
ExperimentManifest func(childComplexity int) int
ExperimentType func(childComplexity int) int
Infra func(childComplexity int) int
IsCustomExperiment func(childComplexity int) int
IsRemoved func(childComplexity int) int
Name func(childComplexity int) int
ProjectID func(childComplexity int) int
RecentExperimentRunDetails func(childComplexity int) int
Tags func(childComplexity int) int
UpdatedAt func(childComplexity int) int
UpdatedBy func(childComplexity int) int
Weightages func(childComplexity int) int
}
ExperimentDetails struct {
EngineDetails func(childComplexity int) int
ExperimentDetails func(childComplexity int) int
}
ExperimentRun struct {
CreatedAt func(childComplexity int) int
CreatedBy func(childComplexity int) int
ExecutionData func(childComplexity int) int
ExperimentID func(childComplexity int) int
ExperimentManifest func(childComplexity int) int
ExperimentName func(childComplexity int) int
ExperimentRunID func(childComplexity int) int
ExperimentType func(childComplexity int) int
FaultsAwaited func(childComplexity int) int
FaultsFailed func(childComplexity int) int
FaultsNa func(childComplexity int) int
FaultsPassed func(childComplexity int) int
FaultsStopped func(childComplexity int) int
Infra func(childComplexity int) int
IsRemoved func(childComplexity int) int
NotifyID func(childComplexity int) int
Phase func(childComplexity int) int
ProjectID func(childComplexity int) int
ResiliencyScore func(childComplexity int) int
RunSequence func(childComplexity int) int
TotalFaults func(childComplexity int) int
UpdatedAt func(childComplexity int) int
UpdatedBy func(childComplexity int) int
Weightages func(childComplexity int) int
}
Experiments struct {
CSV func(childComplexity int) int
Desc func(childComplexity int) int
Name func(childComplexity int) int
}
FaultDetails struct {
CSV func(childComplexity int) int
Engine func(childComplexity int) int
Fault func(childComplexity int) int
}
FaultList struct {
Description func(childComplexity int) int
DisplayName func(childComplexity int) int
Name func(childComplexity int) int
Plan func(childComplexity int) int
}
GET struct {
Criteria func(childComplexity int) int
ResponseCode func(childComplexity int) int
}
GetChaosHubStatsResponse struct {
TotalChaosHubs func(childComplexity int) int
}
GetExperimentResponse struct {
AverageResiliencyScore func(childComplexity int) int
ExperimentDetails func(childComplexity int) int
}
GetExperimentRunStatsResponse struct {
TotalCompletedExperimentRuns func(childComplexity int) int
TotalErroredExperimentRuns func(childComplexity int) int
TotalExperimentRuns func(childComplexity int) int
TotalRunningExperimentRuns func(childComplexity int) int
TotalStoppedExperimentRuns func(childComplexity int) int
TotalTerminatedExperimentRuns func(childComplexity int) int
}
GetExperimentStatsResponse struct {
TotalExpCategorizedByResiliencyScore func(childComplexity int) int
TotalExperiments func(childComplexity int) int
}
GetInfraStatsResponse struct {
TotalActiveInfrastructure func(childComplexity int) int
TotalConfirmedInfrastructure func(childComplexity int) int
TotalInactiveInfrastructures func(childComplexity int) int
TotalInfrastructures func(childComplexity int) int
TotalNonConfirmedInfrastructures func(childComplexity int) int
}
GetProbeReferenceResponse struct {
Name func(childComplexity int) int
ProjectID func(childComplexity int) int
RecentExecutions func(childComplexity int) int
TotalRuns func(childComplexity int) int
}
GetProbesInExperimentRunResponse struct {
Mode func(childComplexity int) int
Probe func(childComplexity int) int
Status func(childComplexity int) int
}
GitConfigResponse struct {
AuthType func(childComplexity int) int
Branch func(childComplexity int) int
Enabled func(childComplexity int) int
Password func(childComplexity int) int
ProjectID func(childComplexity int) int
RepoURL func(childComplexity int) int
SSHPrivateKey func(childComplexity int) int
Token func(childComplexity int) int
UserName func(childComplexity int) int
}
ImageRegistry struct {
EnableRegistry func(childComplexity int) int
ImageRegistryName func(childComplexity int) int
ImageRegistryType func(childComplexity int) int
ImageRepoName func(childComplexity int) int
IsDefault func(childComplexity int) int
SecretName func(childComplexity int) int
SecretNamespace func(childComplexity int) int
}
ImageRegistryResponse struct {
CreatedAt func(childComplexity int) int
CreatedBy func(childComplexity int) int
ImageRegistryID func(childComplexity int) int
ImageRegistryInfo func(childComplexity int) int
IsDefault func(childComplexity int) int
IsRemoved func(childComplexity int) int
ProjectID func(childComplexity int) int
UpdatedAt func(childComplexity int) int
UpdatedBy func(childComplexity int) int
}
Infra struct {
CreatedAt func(childComplexity int) int
CreatedBy func(childComplexity int) int
Description func(childComplexity int) int
EnvironmentID func(childComplexity int) int
InfraID func(childComplexity int) int
InfraNamespace func(childComplexity int) int
InfraNsExists func(childComplexity int) int
InfraSaExists func(childComplexity int) int
InfraScope func(childComplexity int) int
InfraType func(childComplexity int) int
IsActive func(childComplexity int) int
IsInfraConfirmed func(childComplexity int) int
IsRemoved func(childComplexity int) int
LastExperimentTimestamp func(childComplexity int) int
Name func(childComplexity int) int
NoOfExperimentRuns func(childComplexity int) int
NoOfExperiments func(childComplexity int) int
PlatformName func(childComplexity int) int
ProjectID func(childComplexity int) int
ServiceAccount func(childComplexity int) int
StartTime func(childComplexity int) int
Tags func(childComplexity int) int
Token func(childComplexity int) int
UpdateStatus func(childComplexity int) int
UpdatedAt func(childComplexity int) int
UpdatedBy func(childComplexity int) int
Version func(childComplexity int) int
}
InfraActionResponse struct {
Action func(childComplexity int) int
ProjectID func(childComplexity int) int
}
InfraEventResponse struct {
Description func(childComplexity int) int
EventID func(childComplexity int) int
EventName func(childComplexity int) int
EventType func(childComplexity int) int
Infra func(childComplexity int) int
}
InfraVersionDetails struct {
CompatibleVersions func(childComplexity int) int
LatestVersion func(childComplexity int) int
}
K8SProbe struct {
Attempt func(childComplexity int) int
EvaluationTimeout func(childComplexity int) int
FieldSelector func(childComplexity int) int
Group func(childComplexity int) int
InitialDelay func(childComplexity int) int
Interval func(childComplexity int) int
LabelSelector func(childComplexity int) int
Namespace func(childComplexity int) int
Operation func(childComplexity int) int
ProbePollingInterval func(childComplexity int) int
ProbeTimeout func(childComplexity int) int
Resource func(childComplexity int) int
ResourceNames func(childComplexity int) int
Retry func(childComplexity int) int
StopOnFailure func(childComplexity int) int
Version func(childComplexity int) int
}
KubeNamespace struct {
Name func(childComplexity int) int
}
KubeNamespaceResponse struct {
InfraID func(childComplexity int) int
KubeNamespace func(childComplexity int) int
}
KubeObject struct {
Data func(childComplexity int) int
Namespace func(childComplexity int) int
}
KubeObjectResponse struct {
InfraID func(childComplexity int) int
KubeObj func(childComplexity int) int
}
KubernetesCMDProbe struct {
Attempt func(childComplexity int) int
Command func(childComplexity int) int
Comparator func(childComplexity int) int
EvaluationTimeout func(childComplexity int) int
InitialDelay func(childComplexity int) int
Interval func(childComplexity int) int
ProbePollingInterval func(childComplexity int) int
ProbeTimeout func(childComplexity int) int
Retry func(childComplexity int) int
Source func(childComplexity int) int
StopOnFailure func(childComplexity int) int
}
KubernetesHTTPProbe struct {
Attempt func(childComplexity int) int
EvaluationTimeout func(childComplexity int) int
InitialDelay func(childComplexity int) int
InsecureSkipVerify func(childComplexity int) int
Interval func(childComplexity int) int
Method func(childComplexity int) int
ProbePollingInterval func(childComplexity int) int
ProbeTimeout func(childComplexity int) int
Retry func(childComplexity int) int
StopOnFailure func(childComplexity int) int
URL func(childComplexity int) int
}
Link struct {
Name func(childComplexity int) int
URL func(childComplexity int) int
}
ListEnvironmentResponse struct {
Environments func(childComplexity int) int
TotalNoOfEnvironments func(childComplexity int) int
}
ListExperimentResponse struct {
Experiments func(childComplexity int) int
TotalNoOfExperiments func(childComplexity int) int
}
ListExperimentRunResponse struct {
ExperimentRuns func(childComplexity int) int
TotalNoOfExperimentRuns func(childComplexity int) int
}
ListInfraResponse struct {
Infras func(childComplexity int) int
TotalNoOfInfras func(childComplexity int) int
}
Maintainer struct {
Email func(childComplexity int) int
Name func(childComplexity int) int
}
Metadata struct {
Annotations func(childComplexity int) int
Name func(childComplexity int) int
Version func(childComplexity int) int
}
Method struct {
Get func(childComplexity int) int
Post func(childComplexity int) int
}
Mutation struct {
AddChaosHub func(childComplexity int, projectID string, request model.CreateChaosHubRequest) int
AddProbe func(childComplexity int, request model.ProbeRequest, projectID string) int
AddRemoteChaosHub func(childComplexity int, projectID string, request model.CreateRemoteChaosHub) int
ChaosExperimentRun func(childComplexity int, request model.ExperimentRunRequest) int
ConfirmInfraRegistration func(childComplexity int, request model.InfraIdentity) int
CreateChaosExperiment func(childComplexity int, request model.ChaosExperimentRequest, projectID string) int
CreateEnvironment func(childComplexity int, projectID string, request *model.CreateEnvironmentRequest) int
CreateImageRegistry func(childComplexity int, projectID string, imageRegistryInfo model.ImageRegistryInput) int
DeleteChaosExperiment func(childComplexity int, experimentID string, experimentRunID *string, projectID string) int
DeleteChaosHub func(childComplexity int, projectID string, hubID string) int
DeleteEnvironment func(childComplexity int, projectID string, environmentID string) int
DeleteImageRegistry func(childComplexity int, imageRegistryID string, projectID string) int
DeleteInfra func(childComplexity int, projectID string, infraID string) int
DeleteProbe func(childComplexity int, probeName string, projectID string) int
DisableGitOps func(childComplexity int, projectID string) int
EnableGitOps func(childComplexity int, projectID string, configurations model.GitConfig) int
GenerateSSHKey func(childComplexity int) int
GetManifestWithInfraID func(childComplexity int, projectID string, infraID string, accessKey string) int
GitopsNotifier func(childComplexity int, clusterInfo model.InfraIdentity, experimentID string) int
KubeNamespace func(childComplexity int, request model.KubeNamespaceData) int
KubeObj func(childComplexity int, request model.KubeObjectData) int
PodLog func(childComplexity int, request model.PodLog) int
RegisterInfra func(childComplexity int, projectID string, request model.RegisterInfraRequest) int
RunChaosExperiment func(childComplexity int, experimentID string, projectID string) int
SaveChaosExperiment func(childComplexity int, request model.SaveChaosExperimentRequest, projectID string) int
SaveChaosHub func(childComplexity int, projectID string, request model.CreateChaosHubRequest) int
StopExperimentRuns func(childComplexity int, projectID string, experimentID string, experimentRunID *string, notifyID *string) int
SyncChaosHub func(childComplexity int, id string, projectID string) int
UpdateChaosExperiment func(childComplexity int, request model.ChaosExperimentRequest, projectID string) int
UpdateChaosHub func(childComplexity int, projectID string, request model.UpdateChaosHubRequest) int
UpdateCronExperimentState func(childComplexity int, experimentID string, disable bool, projectID string) int
UpdateEnvironment func(childComplexity int, projectID string, request *model.UpdateEnvironmentRequest) int
UpdateGitOps func(childComplexity int, projectID string, configurations model.GitConfig) int
UpdateImageRegistry func(childComplexity int, imageRegistryID string, projectID string, imageRegistryInfo model.ImageRegistryInput) int
UpdateProbe func(childComplexity int, request model.ProbeRequest, projectID string) int
}
ObjectData struct {
Labels func(childComplexity int) int
Name func(childComplexity int) int
}
POST struct {
Body func(childComplexity int) int
BodyPath func(childComplexity int) int
ContentType func(childComplexity int) int
Criteria func(childComplexity int) int
ResponseCode func(childComplexity int) int
}
PROMProbe struct {
Attempt func(childComplexity int) int
Comparator func(childComplexity int) int
Endpoint func(childComplexity int) int
EvaluationTimeout func(childComplexity int) int
InitialDelay func(childComplexity int) int
Interval func(childComplexity int) int
ProbePollingInterval func(childComplexity int) int
ProbeTimeout func(childComplexity int) int
Query func(childComplexity int) int
QueryPath func(childComplexity int) int
Retry func(childComplexity int) int
StopOnFailure func(childComplexity int) int
}
PackageInformation struct {
Experiments func(childComplexity int) int
PackageName func(childComplexity int) int
}
PodLogResponse struct {
ExperimentRunID func(childComplexity int) int
Log func(childComplexity int) int
PodName func(childComplexity int) int
PodType func(childComplexity int) int
}
PredefinedExperimentList struct {
ExperimentCSV func(childComplexity int) int
ExperimentManifest func(childComplexity int) int
ExperimentName func(childComplexity int) int
}
Probe struct {
CreatedAt func(childComplexity int) int
CreatedBy func(childComplexity int) int
Description func(childComplexity int) int
InfrastructureType func(childComplexity int) int
K8sProperties func(childComplexity int) int
KubernetesCMDProperties func(childComplexity int) int
KubernetesHTTPProperties func(childComplexity int) int
Name func(childComplexity int) int
ProjectID func(childComplexity int) int
PromProperties func(childComplexity int) int
RecentExecutions func(childComplexity int) int
ReferencedBy func(childComplexity int) int
Tags func(childComplexity int) int
Type func(childComplexity int) int
UpdatedAt func(childComplexity int) int
UpdatedBy func(childComplexity int) int
}
ProbeRecentExecutions struct {
ExecutedByExperiment func(childComplexity int) int
FaultName func(childComplexity int) int
Status func(childComplexity int) int
}
Provider struct {
Name func(childComplexity int) int
}
Query struct {
GetChaosFault func(childComplexity int, projectID string, request model.ExperimentRequest) int
GetChaosHub func(childComplexity int, projectID string, chaosHubID string) int
GetChaosHubStats func(childComplexity int, projectID string) int
GetEnvironment func(childComplexity int, projectID string, environmentID string) int
GetExperiment func(childComplexity int, projectID string, experimentID string) int
GetExperimentRun func(childComplexity int, projectID string, experimentRunID *string, notifyID *string, infraID *model.InfraIdentity) int
GetExperimentRunStats func(childComplexity int, projectID string) int
GetExperimentStats func(childComplexity int, projectID string) int
GetGitOpsDetails func(childComplexity int, projectID string) int
GetImageRegistry func(childComplexity int, projectID string) int
GetInfra func(childComplexity int, projectID string, infraID string) int
GetInfraDetails func(childComplexity int, infraID string, projectID string) int
GetInfraManifest func(childComplexity int, infraID string, upgrade bool, projectID string) int
GetInfraStats func(childComplexity int, projectID string) int
GetPredefinedExperiment func(childComplexity int, hubID string, experimentName []string, projectID string) int
GetProbe func(childComplexity int, projectID string, probeName string) int
GetProbeReference func(childComplexity int, projectID string, probeName string) int
GetProbeYaml func(childComplexity int, projectID string, request model.GetProbeYAMLRequest) int
GetProbesInExperimentRun func(childComplexity int, projectID string, experimentRunID string, faultName string) int
GetServerVersion func(childComplexity int) int
GetVersionDetails func(childComplexity int, projectID string) int
ListChaosFaults func(childComplexity int, hubID string, projectID string) int
ListChaosHub func(childComplexity int, projectID string, request *model.ListChaosHubRequest) int
ListEnvironments func(childComplexity int, projectID string, request *model.ListEnvironmentRequest) int
ListExperiment func(childComplexity int, projectID string, request model.ListExperimentRequest) int
ListExperimentRun func(childComplexity int, projectID string, request model.ListExperimentRunRequest) int
ListImageRegistry func(childComplexity int, projectID string) int
ListInfras func(childComplexity int, projectID string, request *model.ListInfraRequest) int
ListPredefinedExperiments func(childComplexity int, hubID string, projectID string) int
ListProbes func(childComplexity int, projectID string, infrastructureType *model.InfrastructureType, probeNames []string, filter *model.ProbeFilterInput) int
ValidateUniqueProbe func(childComplexity int, projectID string, probeName string) int
}
RecentExecutions struct {
ExecutionHistory func(childComplexity int) int
FaultName func(childComplexity int) int
Mode func(childComplexity int) int
}
RecentExperimentRun struct {
CreatedAt func(childComplexity int) int
CreatedBy func(childComplexity int) int
ExperimentRunID func(childComplexity int) int
Phase func(childComplexity int) int
ResiliencyScore func(childComplexity int) int
RunSequence func(childComplexity int) int
UpdatedAt func(childComplexity int) int
UpdatedBy func(childComplexity int) int
}
RegisterInfraResponse struct {
InfraID func(childComplexity int) int
Manifest func(childComplexity int) int
Name func(childComplexity int) int
Token func(childComplexity int) int
}
ResilienceScoreCategory struct {
Count func(childComplexity int) int
ID func(childComplexity int) int
}
RunChaosExperimentResponse struct {
NotifyID func(childComplexity int) int
}
SSHKey struct {
PrivateKey func(childComplexity int) int
PublicKey func(childComplexity int) int
}
ServerVersionResponse struct {
Key func(childComplexity int) int
Value func(childComplexity int) int
}
Spec struct {
CategoryDescription func(childComplexity int) int
ChaosExpCRDLink func(childComplexity int) int
ChaosType func(childComplexity int) int
DisplayName func(childComplexity int) int
Experiments func(childComplexity int) int
Faults func(childComplexity int) int
Keywords func(childComplexity int) int
Links func(childComplexity int) int
Maintainers func(childComplexity int) int
Maturity func(childComplexity int) int
MinKubeVersion func(childComplexity int) int
Platforms func(childComplexity int) int
Provider func(childComplexity int) int
}
Status struct {
Description func(childComplexity int) int
Verdict func(childComplexity int) int
}
StopExperimentRunsRequest struct {
ExperimentID func(childComplexity int) int
ExperimentRunID func(childComplexity int) int
ProjectID func(childComplexity int) int
}
Subscription struct {
GetInfraEvents func(childComplexity int, projectID string) int
GetKubeNamespace func(childComplexity int, request model.KubeNamespaceRequest) int
GetKubeObject func(childComplexity int, request model.KubeObjectRequest) int
GetPodLog func(childComplexity int, request model.PodLogRequest) int
InfraConnect func(childComplexity int, request model.InfraIdentity) int
}
UserDetails struct {
Email func(childComplexity int) int
UserID func(childComplexity int) int
Username func(childComplexity int) int
}
Weightages struct {
FaultName func(childComplexity int) int
Weightage func(childComplexity int) int
}
}
type MutationResolver interface {
CreateChaosExperiment(ctx context.Context, request model.ChaosExperimentRequest, projectID string) (*model.ChaosExperimentResponse, error)
SaveChaosExperiment(ctx context.Context, request model.SaveChaosExperimentRequest, projectID string) (string, error)
UpdateChaosExperiment(ctx context.Context, request model.ChaosExperimentRequest, projectID string) (*model.ChaosExperimentResponse, error)
DeleteChaosExperiment(ctx context.Context, experimentID string, experimentRunID *string, projectID string) (bool, error)
UpdateCronExperimentState(ctx context.Context, experimentID string, disable bool, projectID string) (bool, error)
ChaosExperimentRun(ctx context.Context, request model.ExperimentRunRequest) (string, error)
RunChaosExperiment(ctx context.Context, experimentID string, projectID string) (*model.RunChaosExperimentResponse, error)
StopExperimentRuns(ctx context.Context, projectID string, experimentID string, experimentRunID *string, notifyID *string) (bool, error)
RegisterInfra(ctx context.Context, projectID string, request model.RegisterInfraRequest) (*model.RegisterInfraResponse, error)
ConfirmInfraRegistration(ctx context.Context, request model.InfraIdentity) (*model.ConfirmInfraRegistrationResponse, error)
DeleteInfra(ctx context.Context, projectID string, infraID string) (string, error)
GetManifestWithInfraID(ctx context.Context, projectID string, infraID string, accessKey string) (string, error)
PodLog(ctx context.Context, request model.PodLog) (string, error)
KubeObj(ctx context.Context, request model.KubeObjectData) (string, error)
KubeNamespace(ctx context.Context, request model.KubeNamespaceData) (string, error)
AddChaosHub(ctx context.Context, projectID string, request model.CreateChaosHubRequest) (*model.ChaosHub, error)
AddRemoteChaosHub(ctx context.Context, projectID string, request model.CreateRemoteChaosHub) (*model.ChaosHub, error)
SaveChaosHub(ctx context.Context, projectID string, request model.CreateChaosHubRequest) (*model.ChaosHub, error)
SyncChaosHub(ctx context.Context, id string, projectID string) (string, error)
GenerateSSHKey(ctx context.Context) (*model.SSHKey, error)
UpdateChaosHub(ctx context.Context, projectID string, request model.UpdateChaosHubRequest) (*model.ChaosHub, error)
DeleteChaosHub(ctx context.Context, projectID string, hubID string) (bool, error)
CreateEnvironment(ctx context.Context, projectID string, request *model.CreateEnvironmentRequest) (*model.Environment, error)
UpdateEnvironment(ctx context.Context, projectID string, request *model.UpdateEnvironmentRequest) (string, error)
DeleteEnvironment(ctx context.Context, projectID string, environmentID string) (string, error)
GitopsNotifier(ctx context.Context, clusterInfo model.InfraIdentity, experimentID string) (string, error)
EnableGitOps(ctx context.Context, projectID string, configurations model.GitConfig) (bool, error)
DisableGitOps(ctx context.Context, projectID string) (bool, error)
UpdateGitOps(ctx context.Context, projectID string, configurations model.GitConfig) (bool, error)
CreateImageRegistry(ctx context.Context, projectID string, imageRegistryInfo model.ImageRegistryInput) (*model.ImageRegistryResponse, error)
UpdateImageRegistry(ctx context.Context, imageRegistryID string, projectID string, imageRegistryInfo model.ImageRegistryInput) (*model.ImageRegistryResponse, error)
DeleteImageRegistry(ctx context.Context, imageRegistryID string, projectID string) (string, error)
AddProbe(ctx context.Context, request model.ProbeRequest, projectID string) (*model.Probe, error)
UpdateProbe(ctx context.Context, request model.ProbeRequest, projectID string) (string, error)
DeleteProbe(ctx context.Context, probeName string, projectID string) (bool, error)
}
type QueryResolver interface {
GetExperiment(ctx context.Context, projectID string, experimentID string) (*model.GetExperimentResponse, error)
ListExperiment(ctx context.Context, projectID string, request model.ListExperimentRequest) (*model.ListExperimentResponse, error)
GetExperimentStats(ctx context.Context, projectID string) (*model.GetExperimentStatsResponse, error)
GetExperimentRun(ctx context.Context, projectID string, experimentRunID *string, notifyID *string, infraID *model.InfraIdentity) (*model.ExperimentRun, error)
ListExperimentRun(ctx context.Context, projectID string, request model.ListExperimentRunRequest) (*model.ListExperimentRunResponse, error)
GetExperimentRunStats(ctx context.Context, projectID string) (*model.GetExperimentRunStatsResponse, error)
GetInfra(ctx context.Context, projectID string, infraID string) (*model.Infra, error)
ListInfras(ctx context.Context, projectID string, request *model.ListInfraRequest) (*model.ListInfraResponse, error)
GetInfraDetails(ctx context.Context, infraID string, projectID string) (*model.Infra, error)
GetInfraManifest(ctx context.Context, infraID string, upgrade bool, projectID string) (string, error)
GetInfraStats(ctx context.Context, projectID string) (*model.GetInfraStatsResponse, error)
GetVersionDetails(ctx context.Context, projectID string) (*model.InfraVersionDetails, error)
GetServerVersion(ctx context.Context) (*model.ServerVersionResponse, error)
ListChaosFaults(ctx context.Context, hubID string, projectID string) ([]*model.Chart, error)
GetChaosFault(ctx context.Context, projectID string, request model.ExperimentRequest) (*model.FaultDetails, error)
ListChaosHub(ctx context.Context, projectID string, request *model.ListChaosHubRequest) ([]*model.ChaosHubStatus, error)
GetChaosHub(ctx context.Context, projectID string, chaosHubID string) (*model.ChaosHubStatus, error)
ListPredefinedExperiments(ctx context.Context, hubID string, projectID string) ([]*model.PredefinedExperimentList, error)
GetPredefinedExperiment(ctx context.Context, hubID string, experimentName []string, projectID string) ([]*model.PredefinedExperimentList, error)
GetChaosHubStats(ctx context.Context, projectID string) (*model.GetChaosHubStatsResponse, error)
GetEnvironment(ctx context.Context, projectID string, environmentID string) (*model.Environment, error)
ListEnvironments(ctx context.Context, projectID string, request *model.ListEnvironmentRequest) (*model.ListEnvironmentResponse, error)
GetGitOpsDetails(ctx context.Context, projectID string) (*model.GitConfigResponse, error)
ListImageRegistry(ctx context.Context, projectID string) ([]*model.ImageRegistryResponse, error)
GetImageRegistry(ctx context.Context, projectID string) (*model.ImageRegistryResponse, error)
ListProbes(ctx context.Context, projectID string, infrastructureType *model.InfrastructureType, probeNames []string, filter *model.ProbeFilterInput) ([]*model.Probe, error)
GetProbe(ctx context.Context, projectID string, probeName string) (*model.Probe, error)
GetProbeYaml(ctx context.Context, projectID string, request model.GetProbeYAMLRequest) (string, error)
GetProbeReference(ctx context.Context, projectID string, probeName string) (*model.GetProbeReferenceResponse, error)
GetProbesInExperimentRun(ctx context.Context, projectID string, experimentRunID string, faultName string) ([]*model.GetProbesInExperimentRunResponse, error)
ValidateUniqueProbe(ctx context.Context, projectID string, probeName string) (bool, error)
}
type SubscriptionResolver interface {
GetInfraEvents(ctx context.Context, projectID string) (<-chan *model.InfraEventResponse, error)
InfraConnect(ctx context.Context, request model.InfraIdentity) (<-chan *model.InfraActionResponse, error)
GetPodLog(ctx context.Context, request model.PodLogRequest) (<-chan *model.PodLogResponse, error)
GetKubeObject(ctx context.Context, request model.KubeObjectRequest) (<-chan *model.KubeObjectResponse, error)
GetKubeNamespace(ctx context.Context, request model.KubeNamespaceRequest) (<-chan *model.KubeNamespaceResponse, error)
}
type executableSchema struct {
schema *ast.Schema
resolvers ResolverRoot
directives DirectiveRoot
complexity ComplexityRoot
}
func (e *executableSchema) Schema() *ast.Schema {
if e.schema != nil {
return e.schema
}
return parsedSchema
}
func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
ec := executionContext{nil, e, 0, 0, nil}
_ = ec
switch typeName + "." + field {
case "ActionPayload.externalData":
if e.complexity.ActionPayload.ExternalData == nil {
break
}
return e.complexity.ActionPayload.ExternalData(childComplexity), true
case "ActionPayload.k8sManifest":
if e.complexity.ActionPayload.K8sManifest == nil {
break
}
return e.complexity.ActionPayload.K8sManifest(childComplexity), true
case "ActionPayload.namespace":
if e.complexity.ActionPayload.Namespace == nil {
break
}
return e.complexity.ActionPayload.Namespace(childComplexity), true
case "ActionPayload.requestID":
if e.complexity.ActionPayload.RequestID == nil {
break
}
return e.complexity.ActionPayload.RequestID(childComplexity), true
case "ActionPayload.requestType":
if e.complexity.ActionPayload.RequestType == nil {
break
}
return e.complexity.ActionPayload.RequestType(childComplexity), true
case "ActionPayload.username":
if e.complexity.ActionPayload.Username == nil {
break
}
return e.complexity.ActionPayload.Username(childComplexity), true
case "Annotation.categories":
if e.complexity.Annotation.Categories == nil {
break
}
return e.complexity.Annotation.Categories(childComplexity), true
case "Annotation.chartDescription":
if e.complexity.Annotation.ChartDescription == nil {
break
}
return e.complexity.Annotation.ChartDescription(childComplexity), true
case "Annotation.createdAt":
if e.complexity.Annotation.CreatedAt == nil {
break
}
return e.complexity.Annotation.CreatedAt(childComplexity), true
case "Annotation.repository":
if e.complexity.Annotation.Repository == nil {
break
}
return e.complexity.Annotation.Repository(childComplexity), true
case "Annotation.support":
if e.complexity.Annotation.Support == nil {
break
}
return e.complexity.Annotation.Support(childComplexity), true
case "Annotation.vendor":
if e.complexity.Annotation.Vendor == nil {
break
}
return e.complexity.Annotation.Vendor(childComplexity), true
case "ChaosExperimentResponse.cronSyntax":
if e.complexity.ChaosExperimentResponse.CronSyntax == nil {
break
}
return e.complexity.ChaosExperimentResponse.CronSyntax(childComplexity), true
case "ChaosExperimentResponse.experimentDescription":
if e.complexity.ChaosExperimentResponse.ExperimentDescription == nil {
break
}
return e.complexity.ChaosExperimentResponse.ExperimentDescription(childComplexity), true
case "ChaosExperimentResponse.experimentID":
if e.complexity.ChaosExperimentResponse.ExperimentID == nil {
break
}
return e.complexity.ChaosExperimentResponse.ExperimentID(childComplexity), true
case "ChaosExperimentResponse.experimentName":
if e.complexity.ChaosExperimentResponse.ExperimentName == nil {
break
}
return e.complexity.ChaosExperimentResponse.ExperimentName(childComplexity), true
case "ChaosExperimentResponse.isCustomExperiment":
if e.complexity.ChaosExperimentResponse.IsCustomExperiment == nil {
break
}
return e.complexity.ChaosExperimentResponse.IsCustomExperiment(childComplexity), true
case "ChaosExperimentResponse.projectID":
if e.complexity.ChaosExperimentResponse.ProjectID == nil {
break
}
return e.complexity.ChaosExperimentResponse.ProjectID(childComplexity), true
case "ChaosExperimentResponse.tags":
if e.complexity.ChaosExperimentResponse.Tags == nil {
break
}
return e.complexity.ChaosExperimentResponse.Tags(childComplexity), true
case "ChaosHub.authType":
if e.complexity.ChaosHub.AuthType == nil {
break
}
return e.complexity.ChaosHub.AuthType(childComplexity), true
case "ChaosHub.createdAt":
if e.complexity.ChaosHub.CreatedAt == nil {
break
}
return e.complexity.ChaosHub.CreatedAt(childComplexity), true
case "ChaosHub.createdBy":
if e.complexity.ChaosHub.CreatedBy == nil {
break
}
return e.complexity.ChaosHub.CreatedBy(childComplexity), true
case "ChaosHub.description":
if e.complexity.ChaosHub.Description == nil {
break
}
return e.complexity.ChaosHub.Description(childComplexity), true
case "ChaosHub.hubType":
if e.complexity.ChaosHub.HubType == nil {
break
}
return e.complexity.ChaosHub.HubType(childComplexity), true
case "ChaosHub.id":
if e.complexity.ChaosHub.ID == nil {
break
}
return e.complexity.ChaosHub.ID(childComplexity), true
case "ChaosHub.isDefault":
if e.complexity.ChaosHub.IsDefault == nil {
break
}
return e.complexity.ChaosHub.IsDefault(childComplexity), true
case "ChaosHub.isPrivate":
if e.complexity.ChaosHub.IsPrivate == nil {
break
}
return e.complexity.ChaosHub.IsPrivate(childComplexity), true
case "ChaosHub.isRemoved":
if e.complexity.ChaosHub.IsRemoved == nil {
break
}
return e.complexity.ChaosHub.IsRemoved(childComplexity), true
case "ChaosHub.lastSyncedAt":
if e.complexity.ChaosHub.LastSyncedAt == nil {
break
}
return e.complexity.ChaosHub.LastSyncedAt(childComplexity), true
case "ChaosHub.name":
if e.complexity.ChaosHub.Name == nil {
break
}
return e.complexity.ChaosHub.Name(childComplexity), true
case "ChaosHub.password":
if e.complexity.ChaosHub.Password == nil {
break
}
return e.complexity.ChaosHub.Password(childComplexity), true
case "ChaosHub.projectID":
if e.complexity.ChaosHub.ProjectID == nil {
break
}
return e.complexity.ChaosHub.ProjectID(childComplexity), true
case "ChaosHub.remoteHub":
if e.complexity.ChaosHub.RemoteHub == nil {
break
}
return e.complexity.ChaosHub.RemoteHub(childComplexity), true
case "ChaosHub.repoBranch":
if e.complexity.ChaosHub.RepoBranch == nil {
break
}
return e.complexity.ChaosHub.RepoBranch(childComplexity), true
case "ChaosHub.repoURL":
if e.complexity.ChaosHub.RepoURL == nil {
break
}
return e.complexity.ChaosHub.RepoURL(childComplexity), true
case "ChaosHub.sshPrivateKey":
if e.complexity.ChaosHub.SSHPrivateKey == nil {
break
}
return e.complexity.ChaosHub.SSHPrivateKey(childComplexity), true
case "ChaosHub.tags":
if e.complexity.ChaosHub.Tags == nil {
break
}
return e.complexity.ChaosHub.Tags(childComplexity), true
case "ChaosHub.token":
if e.complexity.ChaosHub.Token == nil {
break
}
return e.complexity.ChaosHub.Token(childComplexity), true
case "ChaosHub.updatedAt":
if e.complexity.ChaosHub.UpdatedAt == nil {
break
}
return e.complexity.ChaosHub.UpdatedAt(childComplexity), true
case "ChaosHub.updatedBy":
if e.complexity.ChaosHub.UpdatedBy == nil {
break
}
return e.complexity.ChaosHub.UpdatedBy(childComplexity), true
case "ChaosHub.userName":
if e.complexity.ChaosHub.UserName == nil {
break
}
return e.complexity.ChaosHub.UserName(childComplexity), true
case "ChaosHubStatus.authType":
if e.complexity.ChaosHubStatus.AuthType == nil {
break
}
return e.complexity.ChaosHubStatus.AuthType(childComplexity), true
case "ChaosHubStatus.createdAt":
if e.complexity.ChaosHubStatus.CreatedAt == nil {
break
}
return e.complexity.ChaosHubStatus.CreatedAt(childComplexity), true
case "ChaosHubStatus.createdBy":
if e.complexity.ChaosHubStatus.CreatedBy == nil {
break
}
return e.complexity.ChaosHubStatus.CreatedBy(childComplexity), true
case "ChaosHubStatus.description":
if e.complexity.ChaosHubStatus.Description == nil {
break
}
return e.complexity.ChaosHubStatus.Description(childComplexity), true
case "ChaosHubStatus.hubType":
if e.complexity.ChaosHubStatus.HubType == nil {
break
}
return e.complexity.ChaosHubStatus.HubType(childComplexity), true
case "ChaosHubStatus.id":
if e.complexity.ChaosHubStatus.ID == nil {
break
}
return e.complexity.ChaosHubStatus.ID(childComplexity), true
case "ChaosHubStatus.isAvailable":
if e.complexity.ChaosHubStatus.IsAvailable == nil {
break
}
return e.complexity.ChaosHubStatus.IsAvailable(childComplexity), true
case "ChaosHubStatus.isDefault":
if e.complexity.ChaosHubStatus.IsDefault == nil {
break
}
return e.complexity.ChaosHubStatus.IsDefault(childComplexity), true
case "ChaosHubStatus.isPrivate":
if e.complexity.ChaosHubStatus.IsPrivate == nil {
break
}
return e.complexity.ChaosHubStatus.IsPrivate(childComplexity), true
case "ChaosHubStatus.isRemoved":
if e.complexity.ChaosHubStatus.IsRemoved == nil {
break
}
return e.complexity.ChaosHubStatus.IsRemoved(childComplexity), true
case "ChaosHubStatus.lastSyncedAt":
if e.complexity.ChaosHubStatus.LastSyncedAt == nil {
break
}
return e.complexity.ChaosHubStatus.LastSyncedAt(childComplexity), true
case "ChaosHubStatus.name":
if e.complexity.ChaosHubStatus.Name == nil {
break
}
return e.complexity.ChaosHubStatus.Name(childComplexity), true
case "ChaosHubStatus.password":
if e.complexity.ChaosHubStatus.Password == nil {
break
}
return e.complexity.ChaosHubStatus.Password(childComplexity), true
case "ChaosHubStatus.remoteHub":
if e.complexity.ChaosHubStatus.RemoteHub == nil {
break
}
return e.complexity.ChaosHubStatus.RemoteHub(childComplexity), true
case "ChaosHubStatus.repoBranch":
if e.complexity.ChaosHubStatus.RepoBranch == nil {
break
}
return e.complexity.ChaosHubStatus.RepoBranch(childComplexity), true
case "ChaosHubStatus.repoURL":
if e.complexity.ChaosHubStatus.RepoURL == nil {
break
}
return e.complexity.ChaosHubStatus.RepoURL(childComplexity), true
case "ChaosHubStatus.sshPrivateKey":
if e.complexity.ChaosHubStatus.SSHPrivateKey == nil {
break
}
return e.complexity.ChaosHubStatus.SSHPrivateKey(childComplexity), true
case "ChaosHubStatus.sshPublicKey":
if e.complexity.ChaosHubStatus.SSHPublicKey == nil {
break
}
return e.complexity.ChaosHubStatus.SSHPublicKey(childComplexity), true
case "ChaosHubStatus.tags":
if e.complexity.ChaosHubStatus.Tags == nil {
break
}
return e.complexity.ChaosHubStatus.Tags(childComplexity), true
case "ChaosHubStatus.token":
if e.complexity.ChaosHubStatus.Token == nil {
break
}
return e.complexity.ChaosHubStatus.Token(childComplexity), true
case "ChaosHubStatus.totalExperiments":
if e.complexity.ChaosHubStatus.TotalExperiments == nil {
break
}
return e.complexity.ChaosHubStatus.TotalExperiments(childComplexity), true
case "ChaosHubStatus.totalFaults":
if e.complexity.ChaosHubStatus.TotalFaults == nil {
break
}
return e.complexity.ChaosHubStatus.TotalFaults(childComplexity), true
case "ChaosHubStatus.updatedAt":
if e.complexity.ChaosHubStatus.UpdatedAt == nil {
break
}
return e.complexity.ChaosHubStatus.UpdatedAt(childComplexity), true
case "ChaosHubStatus.updatedBy":
if e.complexity.ChaosHubStatus.UpdatedBy == nil {
break
}
return e.complexity.ChaosHubStatus.UpdatedBy(childComplexity), true
case "ChaosHubStatus.userName":
if e.complexity.ChaosHubStatus.UserName == nil {
break
}
return e.complexity.ChaosHubStatus.UserName(childComplexity), true
case "Chart.apiVersion":
if e.complexity.Chart.APIVersion == nil {
break
}
return e.complexity.Chart.APIVersion(childComplexity), true
case "Chart.kind":
if e.complexity.Chart.Kind == nil {
break
}
return e.complexity.Chart.Kind(childComplexity), true
case "Chart.metadata":
if e.complexity.Chart.Metadata == nil {
break
}
return e.complexity.Chart.Metadata(childComplexity), true
case "Chart.packageInfo":
if e.complexity.Chart.PackageInfo == nil {
break
}
return e.complexity.Chart.PackageInfo(childComplexity), true
case "Chart.spec":
if e.complexity.Chart.Spec == nil {
break
}
return e.complexity.Chart.Spec(childComplexity), true
case "Comparator.criteria":
if e.complexity.Comparator.Criteria == nil {
break
}
return e.complexity.Comparator.Criteria(childComplexity), true
case "Comparator.type":
if e.complexity.Comparator.Type == nil {
break
}
return e.complexity.Comparator.Type(childComplexity), true
case "Comparator.value":
if e.complexity.Comparator.Value == nil {
break
}
return e.complexity.Comparator.Value(childComplexity), true
case "ConfirmInfraRegistrationResponse.infraID":
if e.complexity.ConfirmInfraRegistrationResponse.InfraID == nil {
break
}
return e.complexity.ConfirmInfraRegistrationResponse.InfraID(childComplexity), true
case "ConfirmInfraRegistrationResponse.isInfraConfirmed":
if e.complexity.ConfirmInfraRegistrationResponse.IsInfraConfirmed == nil {
break
}
return e.complexity.ConfirmInfraRegistrationResponse.IsInfraConfirmed(childComplexity), true
case "ConfirmInfraRegistrationResponse.newAccessKey":
if e.complexity.ConfirmInfraRegistrationResponse.NewAccessKey == nil {
break
}
return e.complexity.ConfirmInfraRegistrationResponse.NewAccessKey(childComplexity), true
case "Environment.createdAt":
if e.complexity.Environment.CreatedAt == nil {
break
}
return e.complexity.Environment.CreatedAt(childComplexity), true
case "Environment.createdBy":
if e.complexity.Environment.CreatedBy == nil {
break
}
return e.complexity.Environment.CreatedBy(childComplexity), true
case "Environment.description":
if e.complexity.Environment.Description == nil {
break
}
return e.complexity.Environment.Description(childComplexity), true
case "Environment.environmentID":
if e.complexity.Environment.EnvironmentID == nil {
break
}
return e.complexity.Environment.EnvironmentID(childComplexity), true
case "Environment.infraIDs":
if e.complexity.Environment.InfraIDs == nil {
break
}
return e.complexity.Environment.InfraIDs(childComplexity), true
case "Environment.isRemoved":
if e.complexity.Environment.IsRemoved == nil {
break
}
return e.complexity.Environment.IsRemoved(childComplexity), true
case "Environment.name":
if e.complexity.Environment.Name == nil {
break
}
return e.complexity.Environment.Name(childComplexity), true
case "Environment.projectID":
if e.complexity.Environment.ProjectID == nil {
break
}
return e.complexity.Environment.ProjectID(childComplexity), true
case "Environment.tags":
if e.complexity.Environment.Tags == nil {
break
}
return e.complexity.Environment.Tags(childComplexity), true
case "Environment.type":
if e.complexity.Environment.Type == nil {
break
}
return e.complexity.Environment.Type(childComplexity), true
case "Environment.updatedAt":
if e.complexity.Environment.UpdatedAt == nil {
break
}
return e.complexity.Environment.UpdatedAt(childComplexity), true
case "Environment.updatedBy":
if e.complexity.Environment.UpdatedBy == nil {
break
}
return e.complexity.Environment.UpdatedBy(childComplexity), true
case "ExecutedByExperiment.experimentID":
if e.complexity.ExecutedByExperiment.ExperimentID == nil {
break
}
return e.complexity.ExecutedByExperiment.ExperimentID(childComplexity), true
case "ExecutedByExperiment.experimentName":
if e.complexity.ExecutedByExperiment.ExperimentName == nil {
break
}
return e.complexity.ExecutedByExperiment.ExperimentName(childComplexity), true
case "ExecutedByExperiment.updatedAt":
if e.complexity.ExecutedByExperiment.UpdatedAt == nil {
break
}
return e.complexity.ExecutedByExperiment.UpdatedAt(childComplexity), true
case "ExecutedByExperiment.updatedBy":
if e.complexity.ExecutedByExperiment.UpdatedBy == nil {
break
}
return e.complexity.ExecutedByExperiment.UpdatedBy(childComplexity), true
case "ExecutionHistory.executedByExperiment":
if e.complexity.ExecutionHistory.ExecutedByExperiment == nil {
break
}
return e.complexity.ExecutionHistory.ExecutedByExperiment(childComplexity), true
case "ExecutionHistory.faultName":
if e.complexity.ExecutionHistory.FaultName == nil {
break
}
return e.complexity.ExecutionHistory.FaultName(childComplexity), true
case "ExecutionHistory.mode":
if e.complexity.ExecutionHistory.Mode == nil {
break
}
return e.complexity.ExecutionHistory.Mode(childComplexity), true
case "ExecutionHistory.status":
if e.complexity.ExecutionHistory.Status == nil {
break
}
return e.complexity.ExecutionHistory.Status(childComplexity), true
case "Experiment.createdAt":
if e.complexity.Experiment.CreatedAt == nil {
break
}
return e.complexity.Experiment.CreatedAt(childComplexity), true
case "Experiment.createdBy":
if e.complexity.Experiment.CreatedBy == nil {
break
}
return e.complexity.Experiment.CreatedBy(childComplexity), true
case "Experiment.cronSyntax":
if e.complexity.Experiment.CronSyntax == nil {
break
}
return e.complexity.Experiment.CronSyntax(childComplexity), true
case "Experiment.description":
if e.complexity.Experiment.Description == nil {
break
}
return e.complexity.Experiment.Description(childComplexity), true
case "Experiment.experimentID":
if e.complexity.Experiment.ExperimentID == nil {
break
}
return e.complexity.Experiment.ExperimentID(childComplexity), true
case "Experiment.experimentManifest":
if e.complexity.Experiment.ExperimentManifest == nil {
break
}
return e.complexity.Experiment.ExperimentManifest(childComplexity), true
case "Experiment.experimentType":
if e.complexity.Experiment.ExperimentType == nil {
break
}
return e.complexity.Experiment.ExperimentType(childComplexity), true
case "Experiment.infra":
if e.complexity.Experiment.Infra == nil {
break
}
return e.complexity.Experiment.Infra(childComplexity), true
case "Experiment.isCustomExperiment":
if e.complexity.Experiment.IsCustomExperiment == nil {
break
}
return e.complexity.Experiment.IsCustomExperiment(childComplexity), true
case "Experiment.isRemoved":
if e.complexity.Experiment.IsRemoved == nil {
break
}
return e.complexity.Experiment.IsRemoved(childComplexity), true
case "Experiment.name":
if e.complexity.Experiment.Name == nil {
break
}
return e.complexity.Experiment.Name(childComplexity), true
case "Experiment.projectID":
if e.complexity.Experiment.ProjectID == nil {
break
}
return e.complexity.Experiment.ProjectID(childComplexity), true
case "Experiment.recentExperimentRunDetails":
if e.complexity.Experiment.RecentExperimentRunDetails == nil {
break
}
return e.complexity.Experiment.RecentExperimentRunDetails(childComplexity), true
case "Experiment.tags":
if e.complexity.Experiment.Tags == nil {
break
}
return e.complexity.Experiment.Tags(childComplexity), true
case "Experiment.updatedAt":
if e.complexity.Experiment.UpdatedAt == nil {
break
}
return e.complexity.Experiment.UpdatedAt(childComplexity), true
case "Experiment.updatedBy":
if e.complexity.Experiment.UpdatedBy == nil {
break
}
return e.complexity.Experiment.UpdatedBy(childComplexity), true
case "Experiment.weightages":
if e.complexity.Experiment.Weightages == nil {
break
}
return e.complexity.Experiment.Weightages(childComplexity), true
case "ExperimentDetails.engineDetails":
if e.complexity.ExperimentDetails.EngineDetails == nil {
break
}
return e.complexity.ExperimentDetails.EngineDetails(childComplexity), true
case "ExperimentDetails.experimentDetails":
if e.complexity.ExperimentDetails.ExperimentDetails == nil {
break
}
return e.complexity.ExperimentDetails.ExperimentDetails(childComplexity), true
case "ExperimentRun.createdAt":
if e.complexity.ExperimentRun.CreatedAt == nil {
break
}
return e.complexity.ExperimentRun.CreatedAt(childComplexity), true
case "ExperimentRun.createdBy":
if e.complexity.ExperimentRun.CreatedBy == nil {
break
}
return e.complexity.ExperimentRun.CreatedBy(childComplexity), true
case "ExperimentRun.executionData":
if e.complexity.ExperimentRun.ExecutionData == nil {
break
}
return e.complexity.ExperimentRun.ExecutionData(childComplexity), true
case "ExperimentRun.experimentID":
if e.complexity.ExperimentRun.ExperimentID == nil {
break
}
return e.complexity.ExperimentRun.ExperimentID(childComplexity), true
case "ExperimentRun.experimentManifest":
if e.complexity.ExperimentRun.ExperimentManifest == nil {
break
}
return e.complexity.ExperimentRun.ExperimentManifest(childComplexity), true
case "ExperimentRun.experimentName":
if e.complexity.ExperimentRun.ExperimentName == nil {
break
}
return e.complexity.ExperimentRun.ExperimentName(childComplexity), true
case "ExperimentRun.experimentRunID":
if e.complexity.ExperimentRun.ExperimentRunID == nil {
break
}
return e.complexity.ExperimentRun.ExperimentRunID(childComplexity), true
case "ExperimentRun.experimentType":
if e.complexity.ExperimentRun.ExperimentType == nil {
break
}
return e.complexity.ExperimentRun.ExperimentType(childComplexity), true
case "ExperimentRun.faultsAwaited":
if e.complexity.ExperimentRun.FaultsAwaited == nil {
break
}
return e.complexity.ExperimentRun.FaultsAwaited(childComplexity), true
case "ExperimentRun.faultsFailed":
if e.complexity.ExperimentRun.FaultsFailed == nil {
break
}
return e.complexity.ExperimentRun.FaultsFailed(childComplexity), true
case "ExperimentRun.faultsNa":
if e.complexity.ExperimentRun.FaultsNa == nil {
break
}
return e.complexity.ExperimentRun.FaultsNa(childComplexity), true
case "ExperimentRun.faultsPassed":
if e.complexity.ExperimentRun.FaultsPassed == nil {
break
}
return e.complexity.ExperimentRun.FaultsPassed(childComplexity), true
case "ExperimentRun.faultsStopped":
if e.complexity.ExperimentRun.FaultsStopped == nil {
break
}
return e.complexity.ExperimentRun.FaultsStopped(childComplexity), true
case "ExperimentRun.infra":
if e.complexity.ExperimentRun.Infra == nil {
break
}
return e.complexity.ExperimentRun.Infra(childComplexity), true
case "ExperimentRun.isRemoved":
if e.complexity.ExperimentRun.IsRemoved == nil {
break
}
return e.complexity.ExperimentRun.IsRemoved(childComplexity), true
case "ExperimentRun.notifyID":
if e.complexity.ExperimentRun.NotifyID == nil {
break
}
return e.complexity.ExperimentRun.NotifyID(childComplexity), true
case "ExperimentRun.phase":
if e.complexity.ExperimentRun.Phase == nil {
break
}
return e.complexity.ExperimentRun.Phase(childComplexity), true
case "ExperimentRun.projectID":
if e.complexity.ExperimentRun.ProjectID == nil {
break
}
return e.complexity.ExperimentRun.ProjectID(childComplexity), true
case "ExperimentRun.resiliencyScore":
if e.complexity.ExperimentRun.ResiliencyScore == nil {
break
}
return e.complexity.ExperimentRun.ResiliencyScore(childComplexity), true
case "ExperimentRun.runSequence":
if e.complexity.ExperimentRun.RunSequence == nil {
break
}
return e.complexity.ExperimentRun.RunSequence(childComplexity), true
case "ExperimentRun.totalFaults":
if e.complexity.ExperimentRun.TotalFaults == nil {
break
}
return e.complexity.ExperimentRun.TotalFaults(childComplexity), true
case "ExperimentRun.updatedAt":
if e.complexity.ExperimentRun.UpdatedAt == nil {
break
}
return e.complexity.ExperimentRun.UpdatedAt(childComplexity), true
case "ExperimentRun.updatedBy":
if e.complexity.ExperimentRun.UpdatedBy == nil {
break
}
return e.complexity.ExperimentRun.UpdatedBy(childComplexity), true
case "ExperimentRun.weightages":
if e.complexity.ExperimentRun.Weightages == nil {
break
}
return e.complexity.ExperimentRun.Weightages(childComplexity), true
case "Experiments.CSV":
if e.complexity.Experiments.CSV == nil {
break
}
return e.complexity.Experiments.CSV(childComplexity), true
case "Experiments.desc":
if e.complexity.Experiments.Desc == nil {
break
}
return e.complexity.Experiments.Desc(childComplexity), true
case "Experiments.name":
if e.complexity.Experiments.Name == nil {
break
}
return e.complexity.Experiments.Name(childComplexity), true
case "FaultDetails.csv":
if e.complexity.FaultDetails.CSV == nil {
break
}
return e.complexity.FaultDetails.CSV(childComplexity), true
case "FaultDetails.engine":
if e.complexity.FaultDetails.Engine == nil {
break
}
return e.complexity.FaultDetails.Engine(childComplexity), true
case "FaultDetails.fault":
if e.complexity.FaultDetails.Fault == nil {
break
}
return e.complexity.FaultDetails.Fault(childComplexity), true
case "FaultList.description":
if e.complexity.FaultList.Description == nil {
break
}
return e.complexity.FaultList.Description(childComplexity), true
case "FaultList.displayName":
if e.complexity.FaultList.DisplayName == nil {
break
}
return e.complexity.FaultList.DisplayName(childComplexity), true
case "FaultList.name":
if e.complexity.FaultList.Name == nil {
break
}
return e.complexity.FaultList.Name(childComplexity), true
case "FaultList.plan":
if e.complexity.FaultList.Plan == nil {
break
}
return e.complexity.FaultList.Plan(childComplexity), true
case "GET.criteria":
if e.complexity.GET.Criteria == nil {
break
}
return e.complexity.GET.Criteria(childComplexity), true
case "GET.responseCode":
if e.complexity.GET.ResponseCode == nil {
break
}
return e.complexity.GET.ResponseCode(childComplexity), true
case "GetChaosHubStatsResponse.totalChaosHubs":
if e.complexity.GetChaosHubStatsResponse.TotalChaosHubs == nil {
break
}
return e.complexity.GetChaosHubStatsResponse.TotalChaosHubs(childComplexity), true
case "GetExperimentResponse.averageResiliencyScore":
if e.complexity.GetExperimentResponse.AverageResiliencyScore == nil {
break
}
return e.complexity.GetExperimentResponse.AverageResiliencyScore(childComplexity), true
case "GetExperimentResponse.experimentDetails":
if e.complexity.GetExperimentResponse.ExperimentDetails == nil {
break
}
return e.complexity.GetExperimentResponse.ExperimentDetails(childComplexity), true
case "GetExperimentRunStatsResponse.totalCompletedExperimentRuns":
if e.complexity.GetExperimentRunStatsResponse.TotalCompletedExperimentRuns == nil {
break
}
return e.complexity.GetExperimentRunStatsResponse.TotalCompletedExperimentRuns(childComplexity), true
case "GetExperimentRunStatsResponse.totalErroredExperimentRuns":
if e.complexity.GetExperimentRunStatsResponse.TotalErroredExperimentRuns == nil {
break
}
return e.complexity.GetExperimentRunStatsResponse.TotalErroredExperimentRuns(childComplexity), true
case "GetExperimentRunStatsResponse.totalExperimentRuns":
if e.complexity.GetExperimentRunStatsResponse.TotalExperimentRuns == nil {
break
}
return e.complexity.GetExperimentRunStatsResponse.TotalExperimentRuns(childComplexity), true
case "GetExperimentRunStatsResponse.totalRunningExperimentRuns":
if e.complexity.GetExperimentRunStatsResponse.TotalRunningExperimentRuns == nil {
break
}
return e.complexity.GetExperimentRunStatsResponse.TotalRunningExperimentRuns(childComplexity), true
case "GetExperimentRunStatsResponse.totalStoppedExperimentRuns":
if e.complexity.GetExperimentRunStatsResponse.TotalStoppedExperimentRuns == nil {
break
}
return e.complexity.GetExperimentRunStatsResponse.TotalStoppedExperimentRuns(childComplexity), true
case "GetExperimentRunStatsResponse.totalTerminatedExperimentRuns":
if e.complexity.GetExperimentRunStatsResponse.TotalTerminatedExperimentRuns == nil {
break
}
return e.complexity.GetExperimentRunStatsResponse.TotalTerminatedExperimentRuns(childComplexity), true
case "GetExperimentStatsResponse.totalExpCategorizedByResiliencyScore":
if e.complexity.GetExperimentStatsResponse.TotalExpCategorizedByResiliencyScore == nil {
break
}
return e.complexity.GetExperimentStatsResponse.TotalExpCategorizedByResiliencyScore(childComplexity), true
case "GetExperimentStatsResponse.totalExperiments":
if e.complexity.GetExperimentStatsResponse.TotalExperiments == nil {
break
}
return e.complexity.GetExperimentStatsResponse.TotalExperiments(childComplexity), true
case "GetInfraStatsResponse.totalActiveInfrastructure":
if e.complexity.GetInfraStatsResponse.TotalActiveInfrastructure == nil {
break
}
return e.complexity.GetInfraStatsResponse.TotalActiveInfrastructure(childComplexity), true
case "GetInfraStatsResponse.totalConfirmedInfrastructure":
if e.complexity.GetInfraStatsResponse.TotalConfirmedInfrastructure == nil {
break
}
return e.complexity.GetInfraStatsResponse.TotalConfirmedInfrastructure(childComplexity), true
case "GetInfraStatsResponse.totalInactiveInfrastructures":
if e.complexity.GetInfraStatsResponse.TotalInactiveInfrastructures == nil {
break
}
return e.complexity.GetInfraStatsResponse.TotalInactiveInfrastructures(childComplexity), true
case "GetInfraStatsResponse.totalInfrastructures":
if e.complexity.GetInfraStatsResponse.TotalInfrastructures == nil {
break
}
return e.complexity.GetInfraStatsResponse.TotalInfrastructures(childComplexity), true
case "GetInfraStatsResponse.totalNonConfirmedInfrastructures":
if e.complexity.GetInfraStatsResponse.TotalNonConfirmedInfrastructures == nil {
break
}
return e.complexity.GetInfraStatsResponse.TotalNonConfirmedInfrastructures(childComplexity), true
case "GetProbeReferenceResponse.name":
if e.complexity.GetProbeReferenceResponse.Name == nil {
break
}
return e.complexity.GetProbeReferenceResponse.Name(childComplexity), true
case "GetProbeReferenceResponse.projectID":
if e.complexity.GetProbeReferenceResponse.ProjectID == nil {
break
}
return e.complexity.GetProbeReferenceResponse.ProjectID(childComplexity), true
case "GetProbeReferenceResponse.recentExecutions":
if e.complexity.GetProbeReferenceResponse.RecentExecutions == nil {
break
}
return e.complexity.GetProbeReferenceResponse.RecentExecutions(childComplexity), true
case "GetProbeReferenceResponse.totalRuns":
if e.complexity.GetProbeReferenceResponse.TotalRuns == nil {
break
}
return e.complexity.GetProbeReferenceResponse.TotalRuns(childComplexity), true
case "GetProbesInExperimentRunResponse.mode":
if e.complexity.GetProbesInExperimentRunResponse.Mode == nil {
break
}
return e.complexity.GetProbesInExperimentRunResponse.Mode(childComplexity), true
case "GetProbesInExperimentRunResponse.probe":
if e.complexity.GetProbesInExperimentRunResponse.Probe == nil {
break
}
return e.complexity.GetProbesInExperimentRunResponse.Probe(childComplexity), true
case "GetProbesInExperimentRunResponse.status":
if e.complexity.GetProbesInExperimentRunResponse.Status == nil {
break
}
return e.complexity.GetProbesInExperimentRunResponse.Status(childComplexity), true
case "GitConfigResponse.authType":
if e.complexity.GitConfigResponse.AuthType == nil {
break
}
return e.complexity.GitConfigResponse.AuthType(childComplexity), true
case "GitConfigResponse.branch":
if e.complexity.GitConfigResponse.Branch == nil {
break
}
return e.complexity.GitConfigResponse.Branch(childComplexity), true
case "GitConfigResponse.enabled":
if e.complexity.GitConfigResponse.Enabled == nil {
break
}
return e.complexity.GitConfigResponse.Enabled(childComplexity), true
case "GitConfigResponse.password":
if e.complexity.GitConfigResponse.Password == nil {
break
}
return e.complexity.GitConfigResponse.Password(childComplexity), true
case "GitConfigResponse.projectID":
if e.complexity.GitConfigResponse.ProjectID == nil {
break
}
return e.complexity.GitConfigResponse.ProjectID(childComplexity), true
case "GitConfigResponse.repoURL":
if e.complexity.GitConfigResponse.RepoURL == nil {
break
}
return e.complexity.GitConfigResponse.RepoURL(childComplexity), true
case "GitConfigResponse.sshPrivateKey":
if e.complexity.GitConfigResponse.SSHPrivateKey == nil {
break
}
return e.complexity.GitConfigResponse.SSHPrivateKey(childComplexity), true
case "GitConfigResponse.token":
if e.complexity.GitConfigResponse.Token == nil {
break
}
return e.complexity.GitConfigResponse.Token(childComplexity), true
case "GitConfigResponse.userName":
if e.complexity.GitConfigResponse.UserName == nil {
break
}
return e.complexity.GitConfigResponse.UserName(childComplexity), true
case "ImageRegistry.enableRegistry":
if e.complexity.ImageRegistry.EnableRegistry == nil {
break
}
return e.complexity.ImageRegistry.EnableRegistry(childComplexity), true
case "ImageRegistry.imageRegistryName":
if e.complexity.ImageRegistry.ImageRegistryName == nil {
break
}
return e.complexity.ImageRegistry.ImageRegistryName(childComplexity), true
case "ImageRegistry.imageRegistryType":
if e.complexity.ImageRegistry.ImageRegistryType == nil {
break
}
return e.complexity.ImageRegistry.ImageRegistryType(childComplexity), true
case "ImageRegistry.imageRepoName":
if e.complexity.ImageRegistry.ImageRepoName == nil {
break
}
return e.complexity.ImageRegistry.ImageRepoName(childComplexity), true
case "ImageRegistry.isDefault":
if e.complexity.ImageRegistry.IsDefault == nil {
break
}
return e.complexity.ImageRegistry.IsDefault(childComplexity), true
case "ImageRegistry.secretName":
if e.complexity.ImageRegistry.SecretName == nil {
break
}
return e.complexity.ImageRegistry.SecretName(childComplexity), true
case "ImageRegistry.secretNamespace":
if e.complexity.ImageRegistry.SecretNamespace == nil {
break
}
return e.complexity.ImageRegistry.SecretNamespace(childComplexity), true
case "ImageRegistryResponse.createdAt":
if e.complexity.ImageRegistryResponse.CreatedAt == nil {
break
}
return e.complexity.ImageRegistryResponse.CreatedAt(childComplexity), true
case "ImageRegistryResponse.createdBy":
if e.complexity.ImageRegistryResponse.CreatedBy == nil {
break
}
return e.complexity.ImageRegistryResponse.CreatedBy(childComplexity), true
case "ImageRegistryResponse.imageRegistryID":
if e.complexity.ImageRegistryResponse.ImageRegistryID == nil {
break
}
return e.complexity.ImageRegistryResponse.ImageRegistryID(childComplexity), true
case "ImageRegistryResponse.imageRegistryInfo":
if e.complexity.ImageRegistryResponse.ImageRegistryInfo == nil {
break
}
return e.complexity.ImageRegistryResponse.ImageRegistryInfo(childComplexity), true
case "ImageRegistryResponse.isDefault":
if e.complexity.ImageRegistryResponse.IsDefault == nil {
break
}
return e.complexity.ImageRegistryResponse.IsDefault(childComplexity), true
case "ImageRegistryResponse.isRemoved":
if e.complexity.ImageRegistryResponse.IsRemoved == nil {
break
}
return e.complexity.ImageRegistryResponse.IsRemoved(childComplexity), true
case "ImageRegistryResponse.projectID":
if e.complexity.ImageRegistryResponse.ProjectID == nil {
break
}
return e.complexity.ImageRegistryResponse.ProjectID(childComplexity), true
case "ImageRegistryResponse.updatedAt":
if e.complexity.ImageRegistryResponse.UpdatedAt == nil {
break
}
return e.complexity.ImageRegistryResponse.UpdatedAt(childComplexity), true
case "ImageRegistryResponse.updatedBy":
if e.complexity.ImageRegistryResponse.UpdatedBy == nil {
break
}
return e.complexity.ImageRegistryResponse.UpdatedBy(childComplexity), true
case "Infra.createdAt":
if e.complexity.Infra.CreatedAt == nil {
break
}
return e.complexity.Infra.CreatedAt(childComplexity), true
case "Infra.createdBy":
if e.complexity.Infra.CreatedBy == nil {
break
}
return e.complexity.Infra.CreatedBy(childComplexity), true
case "Infra.description":
if e.complexity.Infra.Description == nil {
break
}
return e.complexity.Infra.Description(childComplexity), true
case "Infra.environmentID":
if e.complexity.Infra.EnvironmentID == nil {
break
}
return e.complexity.Infra.EnvironmentID(childComplexity), true
case "Infra.infraID":
if e.complexity.Infra.InfraID == nil {
break
}
return e.complexity.Infra.InfraID(childComplexity), true
case "Infra.infraNamespace":
if e.complexity.Infra.InfraNamespace == nil {
break
}
return e.complexity.Infra.InfraNamespace(childComplexity), true
case "Infra.infraNsExists":
if e.complexity.Infra.InfraNsExists == nil {
break
}
return e.complexity.Infra.InfraNsExists(childComplexity), true
case "Infra.infraSaExists":
if e.complexity.Infra.InfraSaExists == nil {
break
}
return e.complexity.Infra.InfraSaExists(childComplexity), true
case "Infra.infraScope":
if e.complexity.Infra.InfraScope == nil {
break
}
return e.complexity.Infra.InfraScope(childComplexity), true
case "Infra.infraType":
if e.complexity.Infra.InfraType == nil {
break
}
return e.complexity.Infra.InfraType(childComplexity), true
case "Infra.isActive":
if e.complexity.Infra.IsActive == nil {
break
}
return e.complexity.Infra.IsActive(childComplexity), true
case "Infra.isInfraConfirmed":
if e.complexity.Infra.IsInfraConfirmed == nil {
break
}
return e.complexity.Infra.IsInfraConfirmed(childComplexity), true
case "Infra.isRemoved":
if e.complexity.Infra.IsRemoved == nil {
break
}
return e.complexity.Infra.IsRemoved(childComplexity), true
case "Infra.lastExperimentTimestamp":
if e.complexity.Infra.LastExperimentTimestamp == nil {
break
}
return e.complexity.Infra.LastExperimentTimestamp(childComplexity), true
case "Infra.name":
if e.complexity.Infra.Name == nil {
break
}
return e.complexity.Infra.Name(childComplexity), true
case "Infra.noOfExperimentRuns":
if e.complexity.Infra.NoOfExperimentRuns == nil {
break
}
return e.complexity.Infra.NoOfExperimentRuns(childComplexity), true
case "Infra.noOfExperiments":
if e.complexity.Infra.NoOfExperiments == nil {
break
}
return e.complexity.Infra.NoOfExperiments(childComplexity), true
case "Infra.platformName":
if e.complexity.Infra.PlatformName == nil {
break
}
return e.complexity.Infra.PlatformName(childComplexity), true
case "Infra.projectID":
if e.complexity.Infra.ProjectID == nil {
break
}
return e.complexity.Infra.ProjectID(childComplexity), true
case "Infra.serviceAccount":
if e.complexity.Infra.ServiceAccount == nil {
break
}
return e.complexity.Infra.ServiceAccount(childComplexity), true
case "Infra.startTime":
if e.complexity.Infra.StartTime == nil {
break
}
return e.complexity.Infra.StartTime(childComplexity), true
case "Infra.tags":
if e.complexity.Infra.Tags == nil {
break
}
return e.complexity.Infra.Tags(childComplexity), true
case "Infra.token":
if e.complexity.Infra.Token == nil {
break
}
return e.complexity.Infra.Token(childComplexity), true
case "Infra.updateStatus":
if e.complexity.Infra.UpdateStatus == nil {
break
}
return e.complexity.Infra.UpdateStatus(childComplexity), true
case "Infra.updatedAt":
if e.complexity.Infra.UpdatedAt == nil {
break
}
return e.complexity.Infra.UpdatedAt(childComplexity), true
case "Infra.updatedBy":
if e.complexity.Infra.UpdatedBy == nil {
break
}
return e.complexity.Infra.UpdatedBy(childComplexity), true
case "Infra.version":
if e.complexity.Infra.Version == nil {
break
}
return e.complexity.Infra.Version(childComplexity), true
case "InfraActionResponse.action":
if e.complexity.InfraActionResponse.Action == nil {
break
}
return e.complexity.InfraActionResponse.Action(childComplexity), true
case "InfraActionResponse.projectID":
if e.complexity.InfraActionResponse.ProjectID == nil {
break
}
return e.complexity.InfraActionResponse.ProjectID(childComplexity), true
case "InfraEventResponse.description":
if e.complexity.InfraEventResponse.Description == nil {
break
}
return e.complexity.InfraEventResponse.Description(childComplexity), true
case "InfraEventResponse.eventID":
if e.complexity.InfraEventResponse.EventID == nil {
break
}
return e.complexity.InfraEventResponse.EventID(childComplexity), true
case "InfraEventResponse.eventName":
if e.complexity.InfraEventResponse.EventName == nil {
break
}
return e.complexity.InfraEventResponse.EventName(childComplexity), true
case "InfraEventResponse.eventType":
if e.complexity.InfraEventResponse.EventType == nil {
break
}
return e.complexity.InfraEventResponse.EventType(childComplexity), true
case "InfraEventResponse.infra":
if e.complexity.InfraEventResponse.Infra == nil {
break
}
return e.complexity.InfraEventResponse.Infra(childComplexity), true
case "InfraVersionDetails.compatibleVersions":
if e.complexity.InfraVersionDetails.CompatibleVersions == nil {
break
}
return e.complexity.InfraVersionDetails.CompatibleVersions(childComplexity), true
case "InfraVersionDetails.latestVersion":
if e.complexity.InfraVersionDetails.LatestVersion == nil {
break
}
return e.complexity.InfraVersionDetails.LatestVersion(childComplexity), true
case "K8SProbe.attempt":
if e.complexity.K8SProbe.Attempt == nil {
break
}
return e.complexity.K8SProbe.Attempt(childComplexity), true
case "K8SProbe.evaluationTimeout":
if e.complexity.K8SProbe.EvaluationTimeout == nil {
break
}
return e.complexity.K8SProbe.EvaluationTimeout(childComplexity), true
case "K8SProbe.fieldSelector":
if e.complexity.K8SProbe.FieldSelector == nil {
break
}
return e.complexity.K8SProbe.FieldSelector(childComplexity), true
case "K8SProbe.group":
if e.complexity.K8SProbe.Group == nil {
break
}
return e.complexity.K8SProbe.Group(childComplexity), true
case "K8SProbe.initialDelay":
if e.complexity.K8SProbe.InitialDelay == nil {
break
}
return e.complexity.K8SProbe.InitialDelay(childComplexity), true
case "K8SProbe.interval":
if e.complexity.K8SProbe.Interval == nil {
break
}
return e.complexity.K8SProbe.Interval(childComplexity), true
case "K8SProbe.labelSelector":
if e.complexity.K8SProbe.LabelSelector == nil {
break
}
return e.complexity.K8SProbe.LabelSelector(childComplexity), true
case "K8SProbe.namespace":
if e.complexity.K8SProbe.Namespace == nil {
break
}
return e.complexity.K8SProbe.Namespace(childComplexity), true
case "K8SProbe.operation":
if e.complexity.K8SProbe.Operation == nil {
break
}
return e.complexity.K8SProbe.Operation(childComplexity), true
case "K8SProbe.probePollingInterval":
if e.complexity.K8SProbe.ProbePollingInterval == nil {
break
}
return e.complexity.K8SProbe.ProbePollingInterval(childComplexity), true
case "K8SProbe.probeTimeout":
if e.complexity.K8SProbe.ProbeTimeout == nil {
break
}
return e.complexity.K8SProbe.ProbeTimeout(childComplexity), true
case "K8SProbe.resource":
if e.complexity.K8SProbe.Resource == nil {
break
}
return e.complexity.K8SProbe.Resource(childComplexity), true
case "K8SProbe.resourceNames":
if e.complexity.K8SProbe.ResourceNames == nil {
break
}
return e.complexity.K8SProbe.ResourceNames(childComplexity), true
case "K8SProbe.retry":
if e.complexity.K8SProbe.Retry == nil {
break
}
return e.complexity.K8SProbe.Retry(childComplexity), true
case "K8SProbe.stopOnFailure":
if e.complexity.K8SProbe.StopOnFailure == nil {
break
}
return e.complexity.K8SProbe.StopOnFailure(childComplexity), true
case "K8SProbe.version":
if e.complexity.K8SProbe.Version == nil {
break
}
return e.complexity.K8SProbe.Version(childComplexity), true
case "KubeNamespace.name":
if e.complexity.KubeNamespace.Name == nil {
break
}
return e.complexity.KubeNamespace.Name(childComplexity), true
case "KubeNamespaceResponse.infraID":
if e.complexity.KubeNamespaceResponse.InfraID == nil {
break
}
return e.complexity.KubeNamespaceResponse.InfraID(childComplexity), true
case "KubeNamespaceResponse.kubeNamespace":
if e.complexity.KubeNamespaceResponse.KubeNamespace == nil {
break
}
return e.complexity.KubeNamespaceResponse.KubeNamespace(childComplexity), true
case "KubeObject.data":
if e.complexity.KubeObject.Data == nil {
break
}
return e.complexity.KubeObject.Data(childComplexity), true
case "KubeObject.namespace":
if e.complexity.KubeObject.Namespace == nil {
break
}
return e.complexity.KubeObject.Namespace(childComplexity), true
case "KubeObjectResponse.infraID":
if e.complexity.KubeObjectResponse.InfraID == nil {
break
}
return e.complexity.KubeObjectResponse.InfraID(childComplexity), true
case "KubeObjectResponse.kubeObj":
if e.complexity.KubeObjectResponse.KubeObj == nil {
break
}
return e.complexity.KubeObjectResponse.KubeObj(childComplexity), true
case "KubernetesCMDProbe.attempt":
if e.complexity.KubernetesCMDProbe.Attempt == nil {
break
}
return e.complexity.KubernetesCMDProbe.Attempt(childComplexity), true
case "KubernetesCMDProbe.command":
if e.complexity.KubernetesCMDProbe.Command == nil {
break
}
return e.complexity.KubernetesCMDProbe.Command(childComplexity), true
case "KubernetesCMDProbe.comparator":
if e.complexity.KubernetesCMDProbe.Comparator == nil {
break
}
return e.complexity.KubernetesCMDProbe.Comparator(childComplexity), true
case "KubernetesCMDProbe.evaluationTimeout":
if e.complexity.KubernetesCMDProbe.EvaluationTimeout == nil {
break
}
return e.complexity.KubernetesCMDProbe.EvaluationTimeout(childComplexity), true
case "KubernetesCMDProbe.initialDelay":
if e.complexity.KubernetesCMDProbe.InitialDelay == nil {
break
}
return e.complexity.KubernetesCMDProbe.InitialDelay(childComplexity), true
case "KubernetesCMDProbe.interval":
if e.complexity.KubernetesCMDProbe.Interval == nil {
break
}
return e.complexity.KubernetesCMDProbe.Interval(childComplexity), true
case "KubernetesCMDProbe.probePollingInterval":
if e.complexity.KubernetesCMDProbe.ProbePollingInterval == nil {
break
}
return e.complexity.KubernetesCMDProbe.ProbePollingInterval(childComplexity), true
case "KubernetesCMDProbe.probeTimeout":
if e.complexity.KubernetesCMDProbe.ProbeTimeout == nil {
break
}
return e.complexity.KubernetesCMDProbe.ProbeTimeout(childComplexity), true
case "KubernetesCMDProbe.retry":
if e.complexity.KubernetesCMDProbe.Retry == nil {
break
}
return e.complexity.KubernetesCMDProbe.Retry(childComplexity), true
case "KubernetesCMDProbe.source":
if e.complexity.KubernetesCMDProbe.Source == nil {
break
}
return e.complexity.KubernetesCMDProbe.Source(childComplexity), true
case "KubernetesCMDProbe.stopOnFailure":
if e.complexity.KubernetesCMDProbe.StopOnFailure == nil {
break
}
return e.complexity.KubernetesCMDProbe.StopOnFailure(childComplexity), true
case "KubernetesHTTPProbe.attempt":
if e.complexity.KubernetesHTTPProbe.Attempt == nil {
break
}
return e.complexity.KubernetesHTTPProbe.Attempt(childComplexity), true
case "KubernetesHTTPProbe.evaluationTimeout":
if e.complexity.KubernetesHTTPProbe.EvaluationTimeout == nil {
break
}
return e.complexity.KubernetesHTTPProbe.EvaluationTimeout(childComplexity), true
case "KubernetesHTTPProbe.initialDelay":
if e.complexity.KubernetesHTTPProbe.InitialDelay == nil {
break
}
return e.complexity.KubernetesHTTPProbe.InitialDelay(childComplexity), true
case "KubernetesHTTPProbe.insecureSkipVerify":
if e.complexity.KubernetesHTTPProbe.InsecureSkipVerify == nil {
break
}
return e.complexity.KubernetesHTTPProbe.InsecureSkipVerify(childComplexity), true
case "KubernetesHTTPProbe.interval":
if e.complexity.KubernetesHTTPProbe.Interval == nil {
break
}
return e.complexity.KubernetesHTTPProbe.Interval(childComplexity), true
case "KubernetesHTTPProbe.method":
if e.complexity.KubernetesHTTPProbe.Method == nil {
break
}
return e.complexity.KubernetesHTTPProbe.Method(childComplexity), true
case "KubernetesHTTPProbe.probePollingInterval":
if e.complexity.KubernetesHTTPProbe.ProbePollingInterval == nil {
break
}
return e.complexity.KubernetesHTTPProbe.ProbePollingInterval(childComplexity), true
case "KubernetesHTTPProbe.probeTimeout":
if e.complexity.KubernetesHTTPProbe.ProbeTimeout == nil {
break
}
return e.complexity.KubernetesHTTPProbe.ProbeTimeout(childComplexity), true
case "KubernetesHTTPProbe.retry":
if e.complexity.KubernetesHTTPProbe.Retry == nil {
break
}
return e.complexity.KubernetesHTTPProbe.Retry(childComplexity), true
case "KubernetesHTTPProbe.stopOnFailure":
if e.complexity.KubernetesHTTPProbe.StopOnFailure == nil {
break
}
return e.complexity.KubernetesHTTPProbe.StopOnFailure(childComplexity), true
case "KubernetesHTTPProbe.url":
if e.complexity.KubernetesHTTPProbe.URL == nil {
break
}
return e.complexity.KubernetesHTTPProbe.URL(childComplexity), true
case "Link.name":
if e.complexity.Link.Name == nil {
break
}
return e.complexity.Link.Name(childComplexity), true
case "Link.url":
if e.complexity.Link.URL == nil {
break
}
return e.complexity.Link.URL(childComplexity), true
case "ListEnvironmentResponse.environments":
if e.complexity.ListEnvironmentResponse.Environments == nil {
break
}
return e.complexity.ListEnvironmentResponse.Environments(childComplexity), true
case "ListEnvironmentResponse.totalNoOfEnvironments":
if e.complexity.ListEnvironmentResponse.TotalNoOfEnvironments == nil {
break
}
return e.complexity.ListEnvironmentResponse.TotalNoOfEnvironments(childComplexity), true
case "ListExperimentResponse.experiments":
if e.complexity.ListExperimentResponse.Experiments == nil {
break
}
return e.complexity.ListExperimentResponse.Experiments(childComplexity), true
case "ListExperimentResponse.totalNoOfExperiments":
if e.complexity.ListExperimentResponse.TotalNoOfExperiments == nil {
break
}
return e.complexity.ListExperimentResponse.TotalNoOfExperiments(childComplexity), true
case "ListExperimentRunResponse.experimentRuns":
if e.complexity.ListExperimentRunResponse.ExperimentRuns == nil {
break
}
return e.complexity.ListExperimentRunResponse.ExperimentRuns(childComplexity), true
case "ListExperimentRunResponse.totalNoOfExperimentRuns":
if e.complexity.ListExperimentRunResponse.TotalNoOfExperimentRuns == nil {
break
}
return e.complexity.ListExperimentRunResponse.TotalNoOfExperimentRuns(childComplexity), true
case "ListInfraResponse.infras":
if e.complexity.ListInfraResponse.Infras == nil {
break
}
return e.complexity.ListInfraResponse.Infras(childComplexity), true
case "ListInfraResponse.totalNoOfInfras":
if e.complexity.ListInfraResponse.TotalNoOfInfras == nil {
break
}
return e.complexity.ListInfraResponse.TotalNoOfInfras(childComplexity), true
case "Maintainer.email":
if e.complexity.Maintainer.Email == nil {
break
}
return e.complexity.Maintainer.Email(childComplexity), true
case "Maintainer.name":
if e.complexity.Maintainer.Name == nil {
break
}
return e.complexity.Maintainer.Name(childComplexity), true
case "Metadata.annotations":
if e.complexity.Metadata.Annotations == nil {
break
}
return e.complexity.Metadata.Annotations(childComplexity), true
case "Metadata.name":
if e.complexity.Metadata.Name == nil {
break
}
return e.complexity.Metadata.Name(childComplexity), true
case "Metadata.version":
if e.complexity.Metadata.Version == nil {
break
}
return e.complexity.Metadata.Version(childComplexity), true
case "Method.get":
if e.complexity.Method.Get == nil {
break
}
return e.complexity.Method.Get(childComplexity), true
case "Method.post":
if e.complexity.Method.Post == nil {
break
}
return e.complexity.Method.Post(childComplexity), true
case "Mutation.addChaosHub":
if e.complexity.Mutation.AddChaosHub == nil {
break
}
args, err := ec.field_Mutation_addChaosHub_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.AddChaosHub(childComplexity, args["projectID"].(string), args["request"].(model.CreateChaosHubRequest)), true
case "Mutation.addProbe":
if e.complexity.Mutation.AddProbe == nil {
break
}
args, err := ec.field_Mutation_addProbe_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.AddProbe(childComplexity, args["request"].(model.ProbeRequest), args["projectID"].(string)), true
case "Mutation.addRemoteChaosHub":
if e.complexity.Mutation.AddRemoteChaosHub == nil {
break
}
args, err := ec.field_Mutation_addRemoteChaosHub_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.AddRemoteChaosHub(childComplexity, args["projectID"].(string), args["request"].(model.CreateRemoteChaosHub)), true
case "Mutation.chaosExperimentRun":
if e.complexity.Mutation.ChaosExperimentRun == nil {
break
}
args, err := ec.field_Mutation_chaosExperimentRun_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.ChaosExperimentRun(childComplexity, args["request"].(model.ExperimentRunRequest)), true
case "Mutation.confirmInfraRegistration":
if e.complexity.Mutation.ConfirmInfraRegistration == nil {
break
}
args, err := ec.field_Mutation_confirmInfraRegistration_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.ConfirmInfraRegistration(childComplexity, args["request"].(model.InfraIdentity)), true
case "Mutation.createChaosExperiment":
if e.complexity.Mutation.CreateChaosExperiment == nil {
break
}
args, err := ec.field_Mutation_createChaosExperiment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.CreateChaosExperiment(childComplexity, args["request"].(model.ChaosExperimentRequest), args["projectID"].(string)), true
case "Mutation.createEnvironment":
if e.complexity.Mutation.CreateEnvironment == nil {
break
}
args, err := ec.field_Mutation_createEnvironment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.CreateEnvironment(childComplexity, args["projectID"].(string), args["request"].(*model.CreateEnvironmentRequest)), true
case "Mutation.createImageRegistry":
if e.complexity.Mutation.CreateImageRegistry == nil {
break
}
args, err := ec.field_Mutation_createImageRegistry_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.CreateImageRegistry(childComplexity, args["projectID"].(string), args["imageRegistryInfo"].(model.ImageRegistryInput)), true
case "Mutation.deleteChaosExperiment":
if e.complexity.Mutation.DeleteChaosExperiment == nil {
break
}
args, err := ec.field_Mutation_deleteChaosExperiment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.DeleteChaosExperiment(childComplexity, args["experimentID"].(string), args["experimentRunID"].(*string), args["projectID"].(string)), true
case "Mutation.deleteChaosHub":
if e.complexity.Mutation.DeleteChaosHub == nil {
break
}
args, err := ec.field_Mutation_deleteChaosHub_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.DeleteChaosHub(childComplexity, args["projectID"].(string), args["hubID"].(string)), true
case "Mutation.deleteEnvironment":
if e.complexity.Mutation.DeleteEnvironment == nil {
break
}
args, err := ec.field_Mutation_deleteEnvironment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.DeleteEnvironment(childComplexity, args["projectID"].(string), args["environmentID"].(string)), true
case "Mutation.deleteImageRegistry":
if e.complexity.Mutation.DeleteImageRegistry == nil {
break
}
args, err := ec.field_Mutation_deleteImageRegistry_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.DeleteImageRegistry(childComplexity, args["imageRegistryID"].(string), args["projectID"].(string)), true
case "Mutation.deleteInfra":
if e.complexity.Mutation.DeleteInfra == nil {
break
}
args, err := ec.field_Mutation_deleteInfra_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.DeleteInfra(childComplexity, args["projectID"].(string), args["infraID"].(string)), true
case "Mutation.deleteProbe":
if e.complexity.Mutation.DeleteProbe == nil {
break
}
args, err := ec.field_Mutation_deleteProbe_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.DeleteProbe(childComplexity, args["probeName"].(string), args["projectID"].(string)), true
case "Mutation.disableGitOps":
if e.complexity.Mutation.DisableGitOps == nil {
break
}
args, err := ec.field_Mutation_disableGitOps_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.DisableGitOps(childComplexity, args["projectID"].(string)), true
case "Mutation.enableGitOps":
if e.complexity.Mutation.EnableGitOps == nil {
break
}
args, err := ec.field_Mutation_enableGitOps_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.EnableGitOps(childComplexity, args["projectID"].(string), args["configurations"].(model.GitConfig)), true
case "Mutation.generateSSHKey":
if e.complexity.Mutation.GenerateSSHKey == nil {
break
}
return e.complexity.Mutation.GenerateSSHKey(childComplexity), true
case "Mutation.getManifestWithInfraID":
if e.complexity.Mutation.GetManifestWithInfraID == nil {
break
}
args, err := ec.field_Mutation_getManifestWithInfraID_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.GetManifestWithInfraID(childComplexity, args["projectID"].(string), args["infraID"].(string), args["accessKey"].(string)), true
case "Mutation.gitopsNotifier":
if e.complexity.Mutation.GitopsNotifier == nil {
break
}
args, err := ec.field_Mutation_gitopsNotifier_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.GitopsNotifier(childComplexity, args["clusterInfo"].(model.InfraIdentity), args["experimentID"].(string)), true
case "Mutation.kubeNamespace":
if e.complexity.Mutation.KubeNamespace == nil {
break
}
args, err := ec.field_Mutation_kubeNamespace_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.KubeNamespace(childComplexity, args["request"].(model.KubeNamespaceData)), true
case "Mutation.kubeObj":
if e.complexity.Mutation.KubeObj == nil {
break
}
args, err := ec.field_Mutation_kubeObj_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.KubeObj(childComplexity, args["request"].(model.KubeObjectData)), true
case "Mutation.podLog":
if e.complexity.Mutation.PodLog == nil {
break
}
args, err := ec.field_Mutation_podLog_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.PodLog(childComplexity, args["request"].(model.PodLog)), true
case "Mutation.registerInfra":
if e.complexity.Mutation.RegisterInfra == nil {
break
}
args, err := ec.field_Mutation_registerInfra_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.RegisterInfra(childComplexity, args["projectID"].(string), args["request"].(model.RegisterInfraRequest)), true
case "Mutation.runChaosExperiment":
if e.complexity.Mutation.RunChaosExperiment == nil {
break
}
args, err := ec.field_Mutation_runChaosExperiment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.RunChaosExperiment(childComplexity, args["experimentID"].(string), args["projectID"].(string)), true
case "Mutation.saveChaosExperiment":
if e.complexity.Mutation.SaveChaosExperiment == nil {
break
}
args, err := ec.field_Mutation_saveChaosExperiment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.SaveChaosExperiment(childComplexity, args["request"].(model.SaveChaosExperimentRequest), args["projectID"].(string)), true
case "Mutation.saveChaosHub":
if e.complexity.Mutation.SaveChaosHub == nil {
break
}
args, err := ec.field_Mutation_saveChaosHub_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.SaveChaosHub(childComplexity, args["projectID"].(string), args["request"].(model.CreateChaosHubRequest)), true
case "Mutation.stopExperimentRuns":
if e.complexity.Mutation.StopExperimentRuns == nil {
break
}
args, err := ec.field_Mutation_stopExperimentRuns_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.StopExperimentRuns(childComplexity, args["projectID"].(string), args["experimentID"].(string), args["experimentRunID"].(*string), args["notifyID"].(*string)), true
case "Mutation.syncChaosHub":
if e.complexity.Mutation.SyncChaosHub == nil {
break
}
args, err := ec.field_Mutation_syncChaosHub_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.SyncChaosHub(childComplexity, args["id"].(string), args["projectID"].(string)), true
case "Mutation.updateChaosExperiment":
if e.complexity.Mutation.UpdateChaosExperiment == nil {
break
}
args, err := ec.field_Mutation_updateChaosExperiment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.UpdateChaosExperiment(childComplexity, args["request"].(model.ChaosExperimentRequest), args["projectID"].(string)), true
case "Mutation.updateChaosHub":
if e.complexity.Mutation.UpdateChaosHub == nil {
break
}
args, err := ec.field_Mutation_updateChaosHub_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.UpdateChaosHub(childComplexity, args["projectID"].(string), args["request"].(model.UpdateChaosHubRequest)), true
case "Mutation.updateCronExperimentState":
if e.complexity.Mutation.UpdateCronExperimentState == nil {
break
}
args, err := ec.field_Mutation_updateCronExperimentState_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.UpdateCronExperimentState(childComplexity, args["experimentID"].(string), args["disable"].(bool), args["projectID"].(string)), true
case "Mutation.updateEnvironment":
if e.complexity.Mutation.UpdateEnvironment == nil {
break
}
args, err := ec.field_Mutation_updateEnvironment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.UpdateEnvironment(childComplexity, args["projectID"].(string), args["request"].(*model.UpdateEnvironmentRequest)), true
case "Mutation.updateGitOps":
if e.complexity.Mutation.UpdateGitOps == nil {
break
}
args, err := ec.field_Mutation_updateGitOps_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.UpdateGitOps(childComplexity, args["projectID"].(string), args["configurations"].(model.GitConfig)), true
case "Mutation.updateImageRegistry":
if e.complexity.Mutation.UpdateImageRegistry == nil {
break
}
args, err := ec.field_Mutation_updateImageRegistry_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.UpdateImageRegistry(childComplexity, args["imageRegistryID"].(string), args["projectID"].(string), args["imageRegistryInfo"].(model.ImageRegistryInput)), true
case "Mutation.updateProbe":
if e.complexity.Mutation.UpdateProbe == nil {
break
}
args, err := ec.field_Mutation_updateProbe_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Mutation.UpdateProbe(childComplexity, args["request"].(model.ProbeRequest), args["projectID"].(string)), true
case "ObjectData.labels":
if e.complexity.ObjectData.Labels == nil {
break
}
return e.complexity.ObjectData.Labels(childComplexity), true
case "ObjectData.name":
if e.complexity.ObjectData.Name == nil {
break
}
return e.complexity.ObjectData.Name(childComplexity), true
case "POST.body":
if e.complexity.POST.Body == nil {
break
}
return e.complexity.POST.Body(childComplexity), true
case "POST.bodyPath":
if e.complexity.POST.BodyPath == nil {
break
}
return e.complexity.POST.BodyPath(childComplexity), true
case "POST.contentType":
if e.complexity.POST.ContentType == nil {
break
}
return e.complexity.POST.ContentType(childComplexity), true
case "POST.criteria":
if e.complexity.POST.Criteria == nil {
break
}
return e.complexity.POST.Criteria(childComplexity), true
case "POST.responseCode":
if e.complexity.POST.ResponseCode == nil {
break
}
return e.complexity.POST.ResponseCode(childComplexity), true
case "PROMProbe.attempt":
if e.complexity.PROMProbe.Attempt == nil {
break
}
return e.complexity.PROMProbe.Attempt(childComplexity), true
case "PROMProbe.comparator":
if e.complexity.PROMProbe.Comparator == nil {
break
}
return e.complexity.PROMProbe.Comparator(childComplexity), true
case "PROMProbe.endpoint":
if e.complexity.PROMProbe.Endpoint == nil {
break
}
return e.complexity.PROMProbe.Endpoint(childComplexity), true
case "PROMProbe.evaluationTimeout":
if e.complexity.PROMProbe.EvaluationTimeout == nil {
break
}
return e.complexity.PROMProbe.EvaluationTimeout(childComplexity), true
case "PROMProbe.initialDelay":
if e.complexity.PROMProbe.InitialDelay == nil {
break
}
return e.complexity.PROMProbe.InitialDelay(childComplexity), true
case "PROMProbe.interval":
if e.complexity.PROMProbe.Interval == nil {
break
}
return e.complexity.PROMProbe.Interval(childComplexity), true
case "PROMProbe.probePollingInterval":
if e.complexity.PROMProbe.ProbePollingInterval == nil {
break
}
return e.complexity.PROMProbe.ProbePollingInterval(childComplexity), true
case "PROMProbe.probeTimeout":
if e.complexity.PROMProbe.ProbeTimeout == nil {
break
}
return e.complexity.PROMProbe.ProbeTimeout(childComplexity), true
case "PROMProbe.query":
if e.complexity.PROMProbe.Query == nil {
break
}
return e.complexity.PROMProbe.Query(childComplexity), true
case "PROMProbe.queryPath":
if e.complexity.PROMProbe.QueryPath == nil {
break
}
return e.complexity.PROMProbe.QueryPath(childComplexity), true
case "PROMProbe.retry":
if e.complexity.PROMProbe.Retry == nil {
break
}
return e.complexity.PROMProbe.Retry(childComplexity), true
case "PROMProbe.stopOnFailure":
if e.complexity.PROMProbe.StopOnFailure == nil {
break
}
return e.complexity.PROMProbe.StopOnFailure(childComplexity), true
case "PackageInformation.experiments":
if e.complexity.PackageInformation.Experiments == nil {
break
}
return e.complexity.PackageInformation.Experiments(childComplexity), true
case "PackageInformation.packageName":
if e.complexity.PackageInformation.PackageName == nil {
break
}
return e.complexity.PackageInformation.PackageName(childComplexity), true
case "PodLogResponse.experimentRunID":
if e.complexity.PodLogResponse.ExperimentRunID == nil {
break
}
return e.complexity.PodLogResponse.ExperimentRunID(childComplexity), true
case "PodLogResponse.log":
if e.complexity.PodLogResponse.Log == nil {
break
}
return e.complexity.PodLogResponse.Log(childComplexity), true
case "PodLogResponse.podName":
if e.complexity.PodLogResponse.PodName == nil {
break
}
return e.complexity.PodLogResponse.PodName(childComplexity), true
case "PodLogResponse.podType":
if e.complexity.PodLogResponse.PodType == nil {
break
}
return e.complexity.PodLogResponse.PodType(childComplexity), true
case "PredefinedExperimentList.experimentCSV":
if e.complexity.PredefinedExperimentList.ExperimentCSV == nil {
break
}
return e.complexity.PredefinedExperimentList.ExperimentCSV(childComplexity), true
case "PredefinedExperimentList.experimentManifest":
if e.complexity.PredefinedExperimentList.ExperimentManifest == nil {
break
}
return e.complexity.PredefinedExperimentList.ExperimentManifest(childComplexity), true
case "PredefinedExperimentList.experimentName":
if e.complexity.PredefinedExperimentList.ExperimentName == nil {
break
}
return e.complexity.PredefinedExperimentList.ExperimentName(childComplexity), true
case "Probe.createdAt":
if e.complexity.Probe.CreatedAt == nil {
break
}
return e.complexity.Probe.CreatedAt(childComplexity), true
case "Probe.createdBy":
if e.complexity.Probe.CreatedBy == nil {
break
}
return e.complexity.Probe.CreatedBy(childComplexity), true
case "Probe.description":
if e.complexity.Probe.Description == nil {
break
}
return e.complexity.Probe.Description(childComplexity), true
case "Probe.infrastructureType":
if e.complexity.Probe.InfrastructureType == nil {
break
}
return e.complexity.Probe.InfrastructureType(childComplexity), true
case "Probe.k8sProperties":
if e.complexity.Probe.K8sProperties == nil {
break
}
return e.complexity.Probe.K8sProperties(childComplexity), true
case "Probe.kubernetesCMDProperties":
if e.complexity.Probe.KubernetesCMDProperties == nil {
break
}
return e.complexity.Probe.KubernetesCMDProperties(childComplexity), true
case "Probe.kubernetesHTTPProperties":
if e.complexity.Probe.KubernetesHTTPProperties == nil {
break
}
return e.complexity.Probe.KubernetesHTTPProperties(childComplexity), true
case "Probe.name":
if e.complexity.Probe.Name == nil {
break
}
return e.complexity.Probe.Name(childComplexity), true
case "Probe.projectID":
if e.complexity.Probe.ProjectID == nil {
break
}
return e.complexity.Probe.ProjectID(childComplexity), true
case "Probe.promProperties":
if e.complexity.Probe.PromProperties == nil {
break
}
return e.complexity.Probe.PromProperties(childComplexity), true
case "Probe.recentExecutions":
if e.complexity.Probe.RecentExecutions == nil {
break
}
return e.complexity.Probe.RecentExecutions(childComplexity), true
case "Probe.referencedBy":
if e.complexity.Probe.ReferencedBy == nil {
break
}
return e.complexity.Probe.ReferencedBy(childComplexity), true
case "Probe.tags":
if e.complexity.Probe.Tags == nil {
break
}
return e.complexity.Probe.Tags(childComplexity), true
case "Probe.type":
if e.complexity.Probe.Type == nil {
break
}
return e.complexity.Probe.Type(childComplexity), true
case "Probe.updatedAt":
if e.complexity.Probe.UpdatedAt == nil {
break
}
return e.complexity.Probe.UpdatedAt(childComplexity), true
case "Probe.updatedBy":
if e.complexity.Probe.UpdatedBy == nil {
break
}
return e.complexity.Probe.UpdatedBy(childComplexity), true
case "ProbeRecentExecutions.executedByExperiment":
if e.complexity.ProbeRecentExecutions.ExecutedByExperiment == nil {
break
}
return e.complexity.ProbeRecentExecutions.ExecutedByExperiment(childComplexity), true
case "ProbeRecentExecutions.faultName":
if e.complexity.ProbeRecentExecutions.FaultName == nil {
break
}
return e.complexity.ProbeRecentExecutions.FaultName(childComplexity), true
case "ProbeRecentExecutions.status":
if e.complexity.ProbeRecentExecutions.Status == nil {
break
}
return e.complexity.ProbeRecentExecutions.Status(childComplexity), true
case "Provider.name":
if e.complexity.Provider.Name == nil {
break
}
return e.complexity.Provider.Name(childComplexity), true
case "Query.getChaosFault":
if e.complexity.Query.GetChaosFault == nil {
break
}
args, err := ec.field_Query_getChaosFault_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetChaosFault(childComplexity, args["projectID"].(string), args["request"].(model.ExperimentRequest)), true
case "Query.getChaosHub":
if e.complexity.Query.GetChaosHub == nil {
break
}
args, err := ec.field_Query_getChaosHub_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetChaosHub(childComplexity, args["projectID"].(string), args["chaosHubID"].(string)), true
case "Query.getChaosHubStats":
if e.complexity.Query.GetChaosHubStats == nil {
break
}
args, err := ec.field_Query_getChaosHubStats_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetChaosHubStats(childComplexity, args["projectID"].(string)), true
case "Query.getEnvironment":
if e.complexity.Query.GetEnvironment == nil {
break
}
args, err := ec.field_Query_getEnvironment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetEnvironment(childComplexity, args["projectID"].(string), args["environmentID"].(string)), true
case "Query.getExperiment":
if e.complexity.Query.GetExperiment == nil {
break
}
args, err := ec.field_Query_getExperiment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetExperiment(childComplexity, args["projectID"].(string), args["experimentID"].(string)), true
case "Query.getExperimentRun":
if e.complexity.Query.GetExperimentRun == nil {
break
}
args, err := ec.field_Query_getExperimentRun_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetExperimentRun(childComplexity, args["projectID"].(string), args["experimentRunID"].(*string), args["notifyID"].(*string), args["infraID"].(*model.InfraIdentity)), true
case "Query.getExperimentRunStats":
if e.complexity.Query.GetExperimentRunStats == nil {
break
}
args, err := ec.field_Query_getExperimentRunStats_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetExperimentRunStats(childComplexity, args["projectID"].(string)), true
case "Query.getExperimentStats":
if e.complexity.Query.GetExperimentStats == nil {
break
}
args, err := ec.field_Query_getExperimentStats_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetExperimentStats(childComplexity, args["projectID"].(string)), true
case "Query.getGitOpsDetails":
if e.complexity.Query.GetGitOpsDetails == nil {
break
}
args, err := ec.field_Query_getGitOpsDetails_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetGitOpsDetails(childComplexity, args["projectID"].(string)), true
case "Query.getImageRegistry":
if e.complexity.Query.GetImageRegistry == nil {
break
}
args, err := ec.field_Query_getImageRegistry_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetImageRegistry(childComplexity, args["projectID"].(string)), true
case "Query.getInfra":
if e.complexity.Query.GetInfra == nil {
break
}
args, err := ec.field_Query_getInfra_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetInfra(childComplexity, args["projectID"].(string), args["infraID"].(string)), true
case "Query.getInfraDetails":
if e.complexity.Query.GetInfraDetails == nil {
break
}
args, err := ec.field_Query_getInfraDetails_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetInfraDetails(childComplexity, args["infraID"].(string), args["projectID"].(string)), true
case "Query.getInfraManifest":
if e.complexity.Query.GetInfraManifest == nil {
break
}
args, err := ec.field_Query_getInfraManifest_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetInfraManifest(childComplexity, args["infraID"].(string), args["upgrade"].(bool), args["projectID"].(string)), true
case "Query.getInfraStats":
if e.complexity.Query.GetInfraStats == nil {
break
}
args, err := ec.field_Query_getInfraStats_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetInfraStats(childComplexity, args["projectID"].(string)), true
case "Query.getPredefinedExperiment":
if e.complexity.Query.GetPredefinedExperiment == nil {
break
}
args, err := ec.field_Query_getPredefinedExperiment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetPredefinedExperiment(childComplexity, args["hubID"].(string), args["experimentName"].([]string), args["projectID"].(string)), true
case "Query.getProbe":
if e.complexity.Query.GetProbe == nil {
break
}
args, err := ec.field_Query_getProbe_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetProbe(childComplexity, args["projectID"].(string), args["probeName"].(string)), true
case "Query.getProbeReference":
if e.complexity.Query.GetProbeReference == nil {
break
}
args, err := ec.field_Query_getProbeReference_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetProbeReference(childComplexity, args["projectID"].(string), args["probeName"].(string)), true
case "Query.getProbeYAML":
if e.complexity.Query.GetProbeYaml == nil {
break
}
args, err := ec.field_Query_getProbeYAML_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetProbeYaml(childComplexity, args["projectID"].(string), args["request"].(model.GetProbeYAMLRequest)), true
case "Query.getProbesInExperimentRun":
if e.complexity.Query.GetProbesInExperimentRun == nil {
break
}
args, err := ec.field_Query_getProbesInExperimentRun_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetProbesInExperimentRun(childComplexity, args["projectID"].(string), args["experimentRunID"].(string), args["faultName"].(string)), true
case "Query.getServerVersion":
if e.complexity.Query.GetServerVersion == nil {
break
}
return e.complexity.Query.GetServerVersion(childComplexity), true
case "Query.getVersionDetails":
if e.complexity.Query.GetVersionDetails == nil {
break
}
args, err := ec.field_Query_getVersionDetails_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.GetVersionDetails(childComplexity, args["projectID"].(string)), true
case "Query.listChaosFaults":
if e.complexity.Query.ListChaosFaults == nil {
break
}
args, err := ec.field_Query_listChaosFaults_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.ListChaosFaults(childComplexity, args["hubID"].(string), args["projectID"].(string)), true
case "Query.listChaosHub":
if e.complexity.Query.ListChaosHub == nil {
break
}
args, err := ec.field_Query_listChaosHub_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.ListChaosHub(childComplexity, args["projectID"].(string), args["request"].(*model.ListChaosHubRequest)), true
case "Query.listEnvironments":
if e.complexity.Query.ListEnvironments == nil {
break
}
args, err := ec.field_Query_listEnvironments_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.ListEnvironments(childComplexity, args["projectID"].(string), args["request"].(*model.ListEnvironmentRequest)), true
case "Query.listExperiment":
if e.complexity.Query.ListExperiment == nil {
break
}
args, err := ec.field_Query_listExperiment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.ListExperiment(childComplexity, args["projectID"].(string), args["request"].(model.ListExperimentRequest)), true
case "Query.listExperimentRun":
if e.complexity.Query.ListExperimentRun == nil {
break
}
args, err := ec.field_Query_listExperimentRun_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.ListExperimentRun(childComplexity, args["projectID"].(string), args["request"].(model.ListExperimentRunRequest)), true
case "Query.listImageRegistry":
if e.complexity.Query.ListImageRegistry == nil {
break
}
args, err := ec.field_Query_listImageRegistry_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.ListImageRegistry(childComplexity, args["projectID"].(string)), true
case "Query.listInfras":
if e.complexity.Query.ListInfras == nil {
break
}
args, err := ec.field_Query_listInfras_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.ListInfras(childComplexity, args["projectID"].(string), args["request"].(*model.ListInfraRequest)), true
case "Query.listPredefinedExperiments":
if e.complexity.Query.ListPredefinedExperiments == nil {
break
}
args, err := ec.field_Query_listPredefinedExperiments_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.ListPredefinedExperiments(childComplexity, args["hubID"].(string), args["projectID"].(string)), true
case "Query.listProbes":
if e.complexity.Query.ListProbes == nil {
break
}
args, err := ec.field_Query_listProbes_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.ListProbes(childComplexity, args["projectID"].(string), args["infrastructureType"].(*model.InfrastructureType), args["probeNames"].([]string), args["filter"].(*model.ProbeFilterInput)), true
case "Query.validateUniqueProbe":
if e.complexity.Query.ValidateUniqueProbe == nil {
break
}
args, err := ec.field_Query_validateUniqueProbe_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.ValidateUniqueProbe(childComplexity, args["projectID"].(string), args["probeName"].(string)), true
case "RecentExecutions.executionHistory":
if e.complexity.RecentExecutions.ExecutionHistory == nil {
break
}
return e.complexity.RecentExecutions.ExecutionHistory(childComplexity), true
case "RecentExecutions.faultName":
if e.complexity.RecentExecutions.FaultName == nil {
break
}
return e.complexity.RecentExecutions.FaultName(childComplexity), true
case "RecentExecutions.mode":
if e.complexity.RecentExecutions.Mode == nil {
break
}
return e.complexity.RecentExecutions.Mode(childComplexity), true
case "RecentExperimentRun.createdAt":
if e.complexity.RecentExperimentRun.CreatedAt == nil {
break
}
return e.complexity.RecentExperimentRun.CreatedAt(childComplexity), true
case "RecentExperimentRun.createdBy":
if e.complexity.RecentExperimentRun.CreatedBy == nil {
break
}
return e.complexity.RecentExperimentRun.CreatedBy(childComplexity), true
case "RecentExperimentRun.experimentRunID":
if e.complexity.RecentExperimentRun.ExperimentRunID == nil {
break
}
return e.complexity.RecentExperimentRun.ExperimentRunID(childComplexity), true
case "RecentExperimentRun.phase":
if e.complexity.RecentExperimentRun.Phase == nil {
break
}
return e.complexity.RecentExperimentRun.Phase(childComplexity), true
case "RecentExperimentRun.resiliencyScore":
if e.complexity.RecentExperimentRun.ResiliencyScore == nil {
break
}
return e.complexity.RecentExperimentRun.ResiliencyScore(childComplexity), true
case "RecentExperimentRun.runSequence":
if e.complexity.RecentExperimentRun.RunSequence == nil {
break
}
return e.complexity.RecentExperimentRun.RunSequence(childComplexity), true
case "RecentExperimentRun.updatedAt":
if e.complexity.RecentExperimentRun.UpdatedAt == nil {
break
}
return e.complexity.RecentExperimentRun.UpdatedAt(childComplexity), true
case "RecentExperimentRun.updatedBy":
if e.complexity.RecentExperimentRun.UpdatedBy == nil {
break
}
return e.complexity.RecentExperimentRun.UpdatedBy(childComplexity), true
case "RegisterInfraResponse.infraID":
if e.complexity.RegisterInfraResponse.InfraID == nil {
break
}
return e.complexity.RegisterInfraResponse.InfraID(childComplexity), true
case "RegisterInfraResponse.manifest":
if e.complexity.RegisterInfraResponse.Manifest == nil {
break
}
return e.complexity.RegisterInfraResponse.Manifest(childComplexity), true
case "RegisterInfraResponse.name":
if e.complexity.RegisterInfraResponse.Name == nil {
break
}
return e.complexity.RegisterInfraResponse.Name(childComplexity), true
case "RegisterInfraResponse.token":
if e.complexity.RegisterInfraResponse.Token == nil {
break
}
return e.complexity.RegisterInfraResponse.Token(childComplexity), true
case "ResilienceScoreCategory.count":
if e.complexity.ResilienceScoreCategory.Count == nil {
break
}
return e.complexity.ResilienceScoreCategory.Count(childComplexity), true
case "ResilienceScoreCategory.id":
if e.complexity.ResilienceScoreCategory.ID == nil {
break
}
return e.complexity.ResilienceScoreCategory.ID(childComplexity), true
case "RunChaosExperimentResponse.notifyID":
if e.complexity.RunChaosExperimentResponse.NotifyID == nil {
break
}
return e.complexity.RunChaosExperimentResponse.NotifyID(childComplexity), true
case "SSHKey.privateKey":
if e.complexity.SSHKey.PrivateKey == nil {
break
}
return e.complexity.SSHKey.PrivateKey(childComplexity), true
case "SSHKey.publicKey":
if e.complexity.SSHKey.PublicKey == nil {
break
}
return e.complexity.SSHKey.PublicKey(childComplexity), true
case "ServerVersionResponse.key":
if e.complexity.ServerVersionResponse.Key == nil {
break
}
return e.complexity.ServerVersionResponse.Key(childComplexity), true
case "ServerVersionResponse.value":
if e.complexity.ServerVersionResponse.Value == nil {
break
}
return e.complexity.ServerVersionResponse.Value(childComplexity), true
case "Spec.categoryDescription":
if e.complexity.Spec.CategoryDescription == nil {
break
}
return e.complexity.Spec.CategoryDescription(childComplexity), true
case "Spec.chaosExpCRDLink":
if e.complexity.Spec.ChaosExpCRDLink == nil {
break
}
return e.complexity.Spec.ChaosExpCRDLink(childComplexity), true
case "Spec.chaosType":
if e.complexity.Spec.ChaosType == nil {
break
}
return e.complexity.Spec.ChaosType(childComplexity), true
case "Spec.displayName":
if e.complexity.Spec.DisplayName == nil {
break
}
return e.complexity.Spec.DisplayName(childComplexity), true
case "Spec.experiments":
if e.complexity.Spec.Experiments == nil {
break
}
return e.complexity.Spec.Experiments(childComplexity), true
case "Spec.faults":
if e.complexity.Spec.Faults == nil {
break
}
return e.complexity.Spec.Faults(childComplexity), true
case "Spec.keywords":
if e.complexity.Spec.Keywords == nil {
break
}
return e.complexity.Spec.Keywords(childComplexity), true
case "Spec.links":
if e.complexity.Spec.Links == nil {
break
}
return e.complexity.Spec.Links(childComplexity), true
case "Spec.maintainers":
if e.complexity.Spec.Maintainers == nil {
break
}
return e.complexity.Spec.Maintainers(childComplexity), true
case "Spec.maturity":
if e.complexity.Spec.Maturity == nil {
break
}
return e.complexity.Spec.Maturity(childComplexity), true
case "Spec.minKubeVersion":
if e.complexity.Spec.MinKubeVersion == nil {
break
}
return e.complexity.Spec.MinKubeVersion(childComplexity), true
case "Spec.platforms":
if e.complexity.Spec.Platforms == nil {
break
}
return e.complexity.Spec.Platforms(childComplexity), true
case "Spec.provider":
if e.complexity.Spec.Provider == nil {
break
}
return e.complexity.Spec.Provider(childComplexity), true
case "Status.description":
if e.complexity.Status.Description == nil {
break
}
return e.complexity.Status.Description(childComplexity), true
case "Status.verdict":
if e.complexity.Status.Verdict == nil {
break
}
return e.complexity.Status.Verdict(childComplexity), true
case "StopExperimentRunsRequest.experimentID":
if e.complexity.StopExperimentRunsRequest.ExperimentID == nil {
break
}
return e.complexity.StopExperimentRunsRequest.ExperimentID(childComplexity), true
case "StopExperimentRunsRequest.experimentRunID":
if e.complexity.StopExperimentRunsRequest.ExperimentRunID == nil {
break
}
return e.complexity.StopExperimentRunsRequest.ExperimentRunID(childComplexity), true
case "StopExperimentRunsRequest.projectID":
if e.complexity.StopExperimentRunsRequest.ProjectID == nil {
break
}
return e.complexity.StopExperimentRunsRequest.ProjectID(childComplexity), true
case "Subscription.getInfraEvents":
if e.complexity.Subscription.GetInfraEvents == nil {
break
}
args, err := ec.field_Subscription_getInfraEvents_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Subscription.GetInfraEvents(childComplexity, args["projectID"].(string)), true
case "Subscription.getKubeNamespace":
if e.complexity.Subscription.GetKubeNamespace == nil {
break
}
args, err := ec.field_Subscription_getKubeNamespace_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Subscription.GetKubeNamespace(childComplexity, args["request"].(model.KubeNamespaceRequest)), true
case "Subscription.getKubeObject":
if e.complexity.Subscription.GetKubeObject == nil {
break
}
args, err := ec.field_Subscription_getKubeObject_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Subscription.GetKubeObject(childComplexity, args["request"].(model.KubeObjectRequest)), true
case "Subscription.getPodLog":
if e.complexity.Subscription.GetPodLog == nil {
break
}
args, err := ec.field_Subscription_getPodLog_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Subscription.GetPodLog(childComplexity, args["request"].(model.PodLogRequest)), true
case "Subscription.infraConnect":
if e.complexity.Subscription.InfraConnect == nil {
break
}
args, err := ec.field_Subscription_infraConnect_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Subscription.InfraConnect(childComplexity, args["request"].(model.InfraIdentity)), true
case "UserDetails.email":
if e.complexity.UserDetails.Email == nil {
break
}
return e.complexity.UserDetails.Email(childComplexity), true
case "UserDetails.userID":
if e.complexity.UserDetails.UserID == nil {
break
}
return e.complexity.UserDetails.UserID(childComplexity), true
case "UserDetails.username":
if e.complexity.UserDetails.Username == nil {
break
}
return e.complexity.UserDetails.Username(childComplexity), true
case "Weightages.faultName":
if e.complexity.Weightages.FaultName == nil {
break
}
return e.complexity.Weightages.FaultName(childComplexity), true
case "Weightages.weightage":
if e.complexity.Weightages.Weightage == nil {
break
}
return e.complexity.Weightages.Weightage(childComplexity), true
}
return 0, false
}
func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
rc := graphql.GetOperationContext(ctx)
ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)}
inputUnmarshalMap := graphql.BuildUnmarshalerMap(
ec.unmarshalInputCMDProbeRequest,
ec.unmarshalInputChaosExperimentRequest,
ec.unmarshalInputChaosHubFilterInput,
ec.unmarshalInputCloningInput,
ec.unmarshalInputComparatorInput,
ec.unmarshalInputCreateChaosHubRequest,
ec.unmarshalInputCreateEnvironmentRequest,
ec.unmarshalInputCreateRemoteChaosHub,
ec.unmarshalInputDateRange,
ec.unmarshalInputEnvironmentFilterInput,
ec.unmarshalInputEnvironmentSortInput,
ec.unmarshalInputExperimentFilterInput,
ec.unmarshalInputExperimentRequest,
ec.unmarshalInputExperimentRunFilterInput,
ec.unmarshalInputExperimentRunRequest,
ec.unmarshalInputExperimentRunSortInput,
ec.unmarshalInputExperimentSortInput,
ec.unmarshalInputGETRequest,
ec.unmarshalInputGetProbeYAMLRequest,
ec.unmarshalInputGitConfig,
ec.unmarshalInputHTTPProbeRequest,
ec.unmarshalInputImageRegistryInput,
ec.unmarshalInputInfraFilterInput,
ec.unmarshalInputInfraIdentity,
ec.unmarshalInputK8SProbeRequest,
ec.unmarshalInputKubeGVRRequest,
ec.unmarshalInputKubeNamespaceData,
ec.unmarshalInputKubeNamespaceRequest,
ec.unmarshalInputKubeObjectData,
ec.unmarshalInputKubeObjectRequest,
ec.unmarshalInputKubernetesCMDProbeRequest,
ec.unmarshalInputKubernetesHTTPProbeRequest,
ec.unmarshalInputListChaosHubRequest,
ec.unmarshalInputListEnvironmentRequest,
ec.unmarshalInputListExperimentRequest,
ec.unmarshalInputListExperimentRunRequest,
ec.unmarshalInputListInfraRequest,
ec.unmarshalInputMethodRequest,
ec.unmarshalInputNewInfraEventRequest,
ec.unmarshalInputPOSTRequest,
ec.unmarshalInputPROMProbeRequest,
ec.unmarshalInputPagination,
ec.unmarshalInputPodLog,
ec.unmarshalInputPodLogRequest,
ec.unmarshalInputProbeFilterInput,
ec.unmarshalInputProbeRequest,
ec.unmarshalInputRegisterInfraRequest,
ec.unmarshalInputSaveChaosExperimentRequest,
ec.unmarshalInputToleration,
ec.unmarshalInputUpdateChaosHubRequest,
ec.unmarshalInputUpdateEnvironmentRequest,
ec.unmarshalInputWeightagesInput,
ec.unmarshalInputWorkload,
)
first := true
switch rc.Operation.Operation {
case ast.Query:
return func(ctx context.Context) *graphql.Response {
var response graphql.Response
var data graphql.Marshaler
if first {
first = false
ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
data = ec._Query(ctx, rc.Operation.SelectionSet)
} else {
if atomic.LoadInt32(&ec.pendingDeferred) > 0 {
result := <-ec.deferredResults
atomic.AddInt32(&ec.pendingDeferred, -1)
data = result.Result
response.Path = result.Path
response.Label = result.Label
response.Errors = result.Errors
} else {
return nil
}
}
var buf bytes.Buffer
data.MarshalGQL(&buf)
response.Data = buf.Bytes()
if atomic.LoadInt32(&ec.deferred) > 0 {
hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0
response.HasNext = &hasNext
}
return &response
}
case ast.Mutation:
return func(ctx context.Context) *graphql.Response {
if !first {
return nil
}
first = false
ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
data := ec._Mutation(ctx, rc.Operation.SelectionSet)
var buf bytes.Buffer
data.MarshalGQL(&buf)
return &graphql.Response{
Data: buf.Bytes(),
}
}
case ast.Subscription:
next := ec._Subscription(ctx, rc.Operation.SelectionSet)
var buf bytes.Buffer
return func(ctx context.Context) *graphql.Response {
buf.Reset()
data := next(ctx)
if data == nil {
return nil
}
data.MarshalGQL(&buf)
return &graphql.Response{
Data: buf.Bytes(),
}
}
default:
return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
}
}
type executionContext struct {
*graphql.OperationContext
*executableSchema
deferred int32
pendingDeferred int32
deferredResults chan graphql.DeferredResult
}
func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) {
atomic.AddInt32(&ec.pendingDeferred, 1)
go func() {
ctx := graphql.WithFreshResponseContext(dg.Context)
dg.FieldSet.Dispatch(ctx)
ds := graphql.DeferredResult{
Path: dg.Path,
Label: dg.Label,
Result: dg.FieldSet,
Errors: graphql.GetErrors(ctx),
}
// null fields should bubble up
if dg.FieldSet.Invalids > 0 {
ds.Result = graphql.Null
}
ec.deferredResults <- ds
}()
}
func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
if ec.DisableIntrospection {
return nil, errors.New("introspection disabled")
}
return introspection.WrapSchema(ec.Schema()), nil
}
func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
if ec.DisableIntrospection {
return nil, errors.New("introspection disabled")
}
return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil
}
var sources = []*ast.Source{
{Name: "../../../definitions/shared/chaos_experiment.graphqls", Input: `"""
Defines the details of the weightages of each chaos fault in the experiment
"""
input WeightagesInput {
"""
Name of the fault
"""
faultName: String!
"""
Weightage of the fault
"""
weightage: Int!
}
enum ExperimentType {
All
Experiment
CronExperiment
ChaosEngine
ChaosSchedule
}
enum ExperimentRunStatus {
All
Running
Completed
Completed_With_Error
Stopped
Skipped
Error
Timeout
Terminated
Queued
NA
}
enum ScheduleType {
CRON
NON_CRON
ALL
}
"""
Defines the details for a chaos experiment
"""
input SaveChaosExperimentRequest {
"""
ID of the experiment
"""
id: String!
"""
Type of the experiment
"""
type: ExperimentType
"""
Name of the experiment
"""
name: String!
"""
Description of the experiment
"""
description: String!
"""
Manifest of the experiment
"""
manifest: String!
"""
ID of the target infrastructure in which the experiment will run
"""
infraID: ID!
"""
Tags of the infrastructure
"""
tags: [String!]
}
"""
Defines the details for a chaos experiment
"""
input ChaosExperimentRequest {
"""
ID of the experiment
"""
experimentID: String
"""
Boolean check indicating if the created scenario will be executed or not
"""
runExperiment: Boolean
"""
Manifest of the experiment
"""
experimentManifest: String!
"""
Type of the experiment
"""
experimentType: ExperimentType
"""
Cron syntax of the experiment schedule
"""
cronSyntax: String!
"""
Name of the experiment
"""
experimentName: String!
"""
Description of the experiment
"""
experimentDescription: String!
"""
Array containing weightage and name of each chaos experiment in the experiment
"""
weightages: [WeightagesInput!]!
"""
Bool value indicating whether the experiment is a custom experiment or not
"""
isCustomExperiment: Boolean!
"""
ID of the target infra in which the experiment will run
"""
infraID: ID!
"""
Tags of the infra
"""
tags: [String!]
}
"""
Defines the response received for querying the details of chaos experiment
"""
type ChaosExperimentResponse {
"""
ID of the experiment
"""
experimentID: String!
projectID: ID!
"""
Cron syntax of the experiment schedule
"""
cronSyntax: String!
"""
Name of the experiment
"""
experimentName: String!
"""
Description of the experiment
"""
experimentDescription: String!
"""
Bool value indicating whether the experiment is a custom experiment or not
"""
isCustomExperiment: Boolean!
"""
Tags of the infra
"""
tags: [String!]
}
"""
Defines the details for a experiment run
"""
input ExperimentRunRequest {
"""
ID of the experiment
"""
experimentID: String!
"""
notifyID is required to give an ack for non cron experiment execution
"""
notifyID: String
"""
ID of the experiment run which is to be queried
"""
experimentRunID: String!
"""
Name of the experiment
"""
experimentName: String!
"""
Stores all the experiment run details related to the nodes of DAG graph and chaos results of the experiments
"""
executionData: String!
"""
ID of the infra infra in which the experiment is running
"""
infraID: InfraIdentity!
"""
ID of the revision which consists manifest details
"""
revisionID: String!
"""
Bool value indicating if the experiment run has completed
"""
completed: Boolean!
"""
Bool value indicating if the experiment run has removed
"""
isRemoved: Boolean
"""
User who has updated the experiment
"""
updatedBy: String!
}
"""
Defines the start date and end date for the filtering the data
"""
input DateRange {
"""
Start date
"""
startDate: String!
"""
End date
"""
endDate: String
}
"""
Defines input type for experiment run filter
"""
input ExperimentRunFilterInput {
"""
Name of the experiment
"""
experimentName: String
"""
Name of the infra infra
"""
infraID: String
"""
Type of the experiment
"""
experimentType: ScheduleType
"""
Status of the experiment run
"""
experimentStatus: ExperimentRunStatus
"""
Date range for filtering purpose
"""
dateRange: DateRange
"""
ID of experiment run
"""
experimentRunID: String
"""
Array of experiment run status
"""
experimentRunStatus: [String]
"""
Type of infras
"""
infraTypes: [InfrastructureType]
}
"""
Defines data required to fetch paginated data
"""
input Pagination {
"""
Page number for which data will be fetched
"""
page: Int!
"""
Number of data to be fetched
"""
limit: Int!
}
enum ExperimentSortingField {
NAME
TIME
}
"""
Defines sorting options for experiment runs
"""
input ExperimentRunSortInput {
"""
Field in which sorting will be done
"""
field: ExperimentSortingField!
"""
Bool value indicating whether the sorting will be done in ascending order
"""
ascending: Boolean
}
"""
Defines the details for experiment runs
"""
input ListExperimentRunRequest {
"""
Array of experiment run IDs for which details will be fetched
"""
experimentRunIDs: [ID]
"""
Array of experiment IDs for which details will be fetched
"""
experimentIDs: [ID]
"""
Details for fetching paginated data
"""
pagination: Pagination
"""
Details for fetching sorted data
"""
sort: ExperimentRunSortInput
"""
Details for fetching filtered data
"""
filter: ExperimentRunFilterInput
}
"""
Defines the details of the weightages of each chaos fault in the experiment
"""
type Weightages {
"""
Name of the fault
"""
faultName: String!
"""
Weightage of the experiment
"""
weightage: Int!
}
"""
Defines the details of a experiment run
"""
type ExperimentRun implements Audit {
projectID: ID!
"""
ID of the experiment run which is to be queried
"""
experimentRunID: ID!
"""
Type of the experiment
"""
experimentType: String
"""
ID of the experiment
"""
experimentID: ID!
"""
Array containing weightage and name of each chaos fault in the experiment
"""
weightages: [Weightages!]!
"""
Timestamp at which experiment run was last updated
"""
updatedAt: String!
"""
Timestamp at which experiment run was created
"""
createdAt: String!
"""
Target infra in which the experiment will run
"""
infra: Infra!
"""
Name of the experiment
"""
experimentName: String!
"""
Manifest of the experiment run
"""
experimentManifest: String!
"""
Phase of the experiment run
"""
phase: ExperimentRunStatus!
"""
Resiliency score of the experiment
"""
resiliencyScore: Float
"""
Number of faults passed
"""
faultsPassed: Int
"""
Number of faults failed
"""
faultsFailed: Int
"""
Number of faults awaited
"""
faultsAwaited: Int
"""
Number of faults stopped
"""
faultsStopped: Int
"""
Number of faults which are not available
"""
faultsNa: Int
"""
Total number of faults
"""
totalFaults: Int
"""
Stores all the experiment run details related to the nodes of DAG graph and chaos results of the faults
"""
executionData: String!
"""
Bool value indicating if the experiment run has removed
"""
isRemoved: Boolean
"""
User who has updated the experiment
"""
updatedBy: UserDetails
"""
User who has created the experiment run
"""
createdBy: UserDetails
"""
Notify ID of the experiment run
"""
notifyID: ID
"""
runSequence is the sequence number of experiment run
"""
runSequence: Int!
}
"""
Defines the details of a experiment to sent as response
"""
type ListExperimentRunResponse {
"""
Total number of experiment runs
"""
totalNoOfExperimentRuns: Int!
"""
Defines details of experiment runs
"""
experimentRuns: [ExperimentRun]!
}
"""
Defines filter options for experiments
"""
input ExperimentFilterInput {
"""
Name of the experiment
"""
experimentName: String
"""
Name of the infra in which the experiment is running
"""
infraName: String
"""
ID of the infra in which the experiment is running
"""
infraID: String
"""
Bool value indicating if Chaos Infrastructure is active
"""
infraActive: Boolean
"""
Scenario type of the experiment i.e. CRON or NON_CRON
"""
scheduleType: ScheduleType
"""
Status of the latest experiment run
"""
status: String
"""
Date range for filtering purpose
"""
dateRange: DateRange
"""
Type of infras
"""
infraTypes: [InfrastructureType]
}
"""
Defines the details for a experiment
"""
input ListExperimentRequest {
"""
Array of experiment IDs for which details will be fetched
"""
experimentIDs: [ID]
"""
Details for fetching paginated data
"""
pagination: Pagination
"""
Details for fetching sorted data
"""
sort: ExperimentSortInput
"""
Details for fetching filtered data
"""
filter: ExperimentFilterInput
}
"""
Defines sorting options for experiment
"""
input ExperimentSortInput {
"""
Field in which sorting will be done
"""
field: ExperimentSortingField!
"""
Bool value indicating whether the sorting will be done in ascending order
"""
ascending: Boolean
}
type RecentExperimentRun implements Audit {
"""
ID of the experiment run which is to be queried
"""
experimentRunID: ID!
"""
Phase of the experiment run
"""
phase: String!
"""
Resiliency score of the experiment
"""
resiliencyScore: Float
"""
Timestamp when the experiment was last updated
"""
updatedAt: String!
"""
Timestamp when the experiment was created
"""
createdAt: String!
"""
User who created the experiment run
"""
createdBy: UserDetails
"""
User who updated the experiment run
"""
updatedBy: UserDetails
"""
runSequence is the sequence number of experiment run
"""
runSequence: Int!
}
"""
Defines the details for a experiment
"""
type Experiment implements ResourceDetails & Audit {
projectID: ID!
"""
ID of the experiment
"""
experimentID: String!
"""
Type of the experiment
"""
experimentType: String
"""
Manifest of the experiment
"""
experimentManifest: String!
"""
Cron syntax of the experiment schedule
"""
cronSyntax: String!
"""
Name of the experiment
"""
name: String!
"""
Description of the experiment
"""
description: String!
"""
Array containing weightage and name of each chaos fault in the experiment
"""
weightages: [Weightages!]!
"""
Bool value indicating whether the experiment is a custom experiment or not
"""
isCustomExperiment: Boolean!
"""
Timestamp when the experiment was last updated
"""
updatedAt: String!
"""
Timestamp when the experiment was created
"""
createdAt: String!
"""
Target infra in which the experiment will run
"""
infra: Infra
"""
Bool value indicating if the experiment has removed
"""
isRemoved: Boolean!
"""
Tags of the experiment
"""
tags: [String!]
"""
User who created the experiment
"""
createdBy: UserDetails
"""
Array of object containing details of recent experiment runs
"""
recentExperimentRunDetails: [RecentExperimentRun]
"""
Details of the user who updated the experiment
"""
updatedBy: UserDetails
}
"""
Defines the details for a given experiment with some additional data
"""
type GetExperimentResponse {
"""
Details of experiment
"""
experimentDetails: Experiment!
"""
Average resiliency score of the experiment
"""
averageResiliencyScore: Float
}
"""
Defines the details for a experiment with total experiment count
"""
type ListExperimentResponse {
"""
Total number of experiments
"""
totalNoOfExperiments: Int!
"""
Details related to the experiments
"""
experiments: [Experiment]!
}
"""
Defines the request for stopping a experiment
"""
type StopExperimentRunsRequest {
projectID: ID!
"""
ID of the experiment to be stopped
"""
experimentID: String!
"""
ID of the experiment run to be stopped
"""
experimentRunID: String
}
type RunChaosExperimentResponse {
notifyID: ID!
}
type GetExperimentRunStatsResponse {
"""
Total number of experiment runs
"""
totalExperimentRuns: Int!
"""
Total number of completed experiments runs
"""
totalCompletedExperimentRuns: Int!
"""
Total number of stopped experiment runs
"""
totalTerminatedExperimentRuns: Int!
"""
Total number of running experiment runs
"""
totalRunningExperimentRuns: Int!
"""
Total number of stopped experiment runs
"""
totalStoppedExperimentRuns: Int!
"""
Total number of errored experiment runs
"""
totalErroredExperimentRuns: Int!
}
type ResilienceScoreCategory {
"""
Lower bound of the range(inclusive)
"""
id: Int!
"""
total experiments with avg resilience score between lower bound and upper bound(exclusive)
"""
count: Int!
}
type GetExperimentStatsResponse {
"""
Total number of experiments
"""
totalExperiments: Int!
"""
Total number of cron experiments
"""
totalExpCategorizedByResiliencyScore: [ResilienceScoreCategory]!
}
type Query {
"""
Returns the experiment based on experiment ID
"""
getExperiment(projectID: ID!, experimentID: String!): GetExperimentResponse!
"""
Returns the list of experiments based on various filter parameters
"""
listExperiment(
projectID: ID!
request: ListExperimentRequest!
): ListExperimentResponse!
"""
Query to get experiment stats
"""
getExperimentStats(projectID: ID!): GetExperimentStatsResponse!
}
type Mutation {
"""
Creates a new experiment and applies its manifest
"""
createChaosExperiment(
request: ChaosExperimentRequest!
projectID: ID!
): ChaosExperimentResponse!
"""
Saves a new experiment or updates if already exists
"""
saveChaosExperiment(
request: SaveChaosExperimentRequest!
projectID: ID!
): String!
"""
Updates the experiment
"""
updateChaosExperiment(
request: ChaosExperimentRequest!
projectID: ID!
): ChaosExperimentResponse!
"""
Removes a experiment from infra
"""
deleteChaosExperiment(
experimentID: String!
experimentRunID: String
projectID: ID!
): Boolean!
"""
Enable/Disable cron experiment state
"""
updateCronExperimentState(experimentID: String!
disable: Boolean!
projectID: ID!
): Boolean! @authorized
}
`, BuiltIn: false},
{Name: "../../../definitions/shared/chaos_experiment_run.graphqls", Input: `extend type Query {
"""
Returns experiment run based on experiment run ID
"""
getExperimentRun(projectID: ID!, experimentRunID: ID, notifyID: ID, infraID: InfraIdentity): ExperimentRun!
"""
Returns the list of experiment run based on various filter parameters
"""
listExperimentRun(
projectID: ID!
request: ListExperimentRunRequest!
): ListExperimentRunResponse!
"""
Query to get experiment run stats
"""
getExperimentRunStats(projectID: ID!): GetExperimentRunStatsResponse!
}
extend type Mutation {
"""
Creates a new experiment run and sends it to subscriber
"""
# authorized directive not required
chaosExperimentRun(request: ExperimentRunRequest!): String!
"""
Run the chaos experiment (used by frontend)
"""
runChaosExperiment(
experimentID: String!
projectID: ID!
): RunChaosExperimentResponse!
"""
stopExperiment will halt all the ongoing runs of a particular experiment
"""
stopExperimentRuns(projectID: ID!, experimentID:String!, experimentRunID: String, notifyID: String): Boolean! @authorized
}`, BuiltIn: false},
{Name: "../../../definitions/shared/chaos_infrastructure.graphqls", Input: `directive @authorized on FIELD_DEFINITION
"""
UpdateStatus represents if infra needs to be updated
"""
enum UpdateStatus {
AVAILABLE
MANDATORY
NOT_REQUIRED
}
"""
Defines the details for a infra
"""
type Infra implements ResourceDetails & Audit {
projectID: ID!
"""
ID of the infra
"""
infraID: ID!
"""
Name of the infra
"""
name: String!
"""
Description of the infra
"""
description: String
"""
Tags of the infra
"""
tags: [String!]
"""
Environment ID for the infra
"""
environmentID: String!
"""
Infra Platform Name eg. GKE,AWS, Others
"""
platformName: String!
"""
Boolean value indicating if chaos infrastructure is active or not
"""
isActive: Boolean!
"""
Boolean value indicating if chaos infrastructure is confirmed or not
"""
isInfraConfirmed: Boolean!
"""
Boolean value indicating if chaos infrastructure is removed or not
"""
isRemoved: Boolean!
"""
Timestamp when the infra was last updated
"""
updatedAt: String!
"""
Timestamp when the infra was created
"""
createdAt: String!
"""
Number of schedules created in the infra
"""
noOfExperiments: Int
"""
Number of experiments run in the infra
"""
noOfExperimentRuns: Int
"""
Token used to verify and retrieve the infra manifest
"""
token: String!
"""
Namespace where the infra is being installed
"""
infraNamespace: String
"""
Name of service account used by infra
"""
serviceAccount: String
"""
Scope of the infra : ns or cluster
"""
infraScope: String!
"""
Bool value indicating whether infra ns used already exists on infra or not
"""
infraNsExists: Boolean
"""
Bool value indicating whether service account used already exists on infra or not
"""
infraSaExists: Boolean
"""
Timestamp of the last experiment run in the infra
"""
lastExperimentTimestamp: String
"""
Timestamp when the infra got connected
"""
startTime: String!
"""
Version of the infra
"""
version: String!
"""
User who created the infra
"""
createdBy: UserDetails
"""
User who has updated the infra
"""
updatedBy: UserDetails
"""
Type of the infrastructure
"""
infraType: InfrastructureType
"""
update status of infra
"""
updateStatus: UpdateStatus!
}
enum InfrastructureType {
Kubernetes
}
"""
Defines the details for the new infra being connected
"""
input RegisterInfraRequest {
"""
Name of the infra
"""
name: String!
"""
Environment ID for the infra
"""
environmentID: String!
"""
Type of Infra : internal/external
"""
infrastructureType: InfrastructureType!
"""
Description of the infra
"""
description: String
"""
Infra Platform Name eg. GKE,AWS, Others
"""
platformName: String!
"""
Namespace where the infra is being installed
"""
infraNamespace: String
"""
Name of service account used by infra
"""
serviceAccount: String
"""
Scope of the infra : ns or infra
"""
infraScope: String!
"""
Bool value indicating whether infra ns used already exists on infra or not
"""
infraNsExists: Boolean
"""
Bool value indicating whether service account used already exists on infra or not
"""
infraSaExists: Boolean
"""
Bool value indicating whether infra will skip ssl checks or not
"""
skipSsl: Boolean
"""
Node selectors used by infra
"""
nodeSelector: String
"""
Node tolerations used by infra
"""
tolerations: [Toleration]
"""
Tags of the infra
"""
tags: [String!]
}
input Toleration {
tolerationSeconds: Int
key: String
operator: String
effect: String
value: String
}
type InfraEventResponse {
eventID: ID!
eventType: String!
eventName: String!
description: String!
infra: Infra!
}
type ActionPayload {
requestID: String!
requestType: String!
k8sManifest: String!
namespace: String!
externalData: String
username: String
}
type InfraActionResponse {
projectID: String!
action: ActionPayload!
}
input NewInfraEventRequest {
eventName: String!
description: String!
infraID: String!
accessKey: String!
}
type ConfirmInfraRegistrationResponse {
isInfraConfirmed: Boolean!
newAccessKey: String
infraID: String
}
"""
Response received for registering a new infra
"""
type RegisterInfraResponse {
"""
Token used to verify and retrieve the infra manifest
"""
token: String!
"""
Unique ID for the newly registered infra
"""
infraID: String!
"""
Infra name as sent in request
"""
name: String!
"""
Infra Manifest
"""
manifest: String!
}
"""
Defines the response received for querying querying the pod logs
"""
type PodLogResponse {
"""
ID of the experiment run which is to be queried
"""
experimentRunID: ID!
"""
Name of the pod for which logs are queried
"""
podName: String!
"""
Type of the pod: chaosengine
"""
podType: String!
"""
Logs for the pod
"""
log: String!
}
input InfraIdentity {
infraID: String!
accessKey: String!
version: String!
}
"""
Defines the details for fetching the pod logs
"""
input PodLogRequest {
"""
ID of the cluster
"""
infraID: ID!
"""
"""
projectID: ID!
"""
ID of a experiment run
"""
experimentRunID: ID!
"""
Name of the pod for which logs are required
"""
podName: String!
"""
Namespace where the pod is running
"""
podNamespace: String!
"""
Type of the pod: chaosEngine or not pod
"""
podType: String!
"""
Name of the experiment pod fetched from execution data
"""
expPod: String
"""
Name of the runner pod fetched from execution data
"""
runnerPod: String
"""
Namespace where the experiment is executing
"""
chaosNamespace: String
}
"""
Response received for querying pod logs
"""
input PodLog {
"""
ID of the cluster
"""
infraID: InfraIdentity!
"""
Unique request ID of a particular node which is being queried
"""
requestID: ID!
"""
ID of a experiment run
"""
experimentRunID: ID!
"""
Name of the pod for which logs are required
"""
podName: String!
"""
Type of the pod: chaosengine
"""
podType: String!
"""
Logs for the pod
"""
log: String!
}
"""
Response received for querying Kubernetes Object
"""
type KubeObjectResponse {
"""
ID of the infra in which the Kubernetes object is present
"""
infraID: ID!
"""
Type of the Kubernetes object
"""
kubeObj: KubeObject!
}
"""
KubeObject consists of the available resources in a namespace
"""
type KubeObject {
"""
Namespace of the resource
"""
namespace: String!
"""
Details of the resource
"""
data: [ObjectData]!
}
type ObjectData {
"""
Labels present in the resource
"""
labels: [String!]
"""
Name of the resource
"""
name: String!
}
input Workload {
name: String!
kind: String!
namespace: String!
}
"""
Defines details for fetching Kubernetes object data
"""
input KubeObjectRequest {
"""
ID of the infra in which the Kubernetes object is present
"""
infraID: ID!
"""
GVR Request
"""
kubeObjRequest: KubeGVRRequest
"""
Namespace in which the Kubernetes object is present
"""
namespace: String!
objectType: String!
workloads: [Workload]
}
"""
Defines details for fetching Kubernetes namespace data
"""
input KubeNamespaceRequest {
"""
ID of the infra
"""
infraID: ID!
}
"""
Define name in the infra (not really useful at the moment but maybe we will need other field later)
"""
type KubeNamespace{
"""
Name of the namespace
"""
name: String!
}
input KubeGVRRequest {
group: String!
version: String!
resource: String!
}
"""
Response received for querying Kubernetes Namespaces
"""
type KubeNamespaceResponse {
"""
ID of the infra in which the Kubernetes namespace is present
"""
infraID: ID!
"""
List of the Kubernetes namespace
"""
kubeNamespace: [KubeNamespace]!
}
"""
Defines the details of Kubernetes namespace
"""
input KubeNamespaceData {
"""
Unique request ID for fetching Kubernetes namespace details
"""
requestID: ID!
"""
ID of the infra in which the Kubernetes namespace is present
"""
infraID: InfraIdentity!
"""
List of KubeNamespace return by subscriber
"""
kubeNamespace: String!
}
"""
Defines the details of Kubernetes object
"""
input KubeObjectData {
"""
Unique request ID for fetching Kubernetes object details
"""
requestID: ID!
"""
ID of the infra in which the Kubernetes object is present
"""
infraID: InfraIdentity!
"""
Type of the Kubernetes object
"""
kubeObj: String!
}
"""
Defines filter options for infras
"""
input InfraFilterInput {
"""
Name of the infra
"""
name: String
"""
ID of the infra
"""
infraID: String
"""
ID of the infra
"""
description: String
"""
Platform name of infra
"""
platformName: String
"""
Scope of infra
"""
infraScope: INFRA_SCOPE
"""
Status of infra
"""
isActive: Boolean
"""
Tags of an infra
"""
tags: [String]
}
enum INFRA_SCOPE {
namespace
cluster
}
"""
Defines the details for a infra
"""
input ListInfraRequest {
"""
Array of infra IDs for which details will be fetched
"""
infraIDs: [ID!]
"""
Environment ID
"""
environmentIDs: [ID!]
"""
Details for fetching paginated data
"""
pagination: Pagination
"""
Details for fetching filtered data
"""
filter: InfraFilterInput
}
"""
Defines the details for a infras with total infras count
"""
type ListInfraResponse {
"""
Total number of infras
"""
totalNoOfInfras: Int!
"""
Details related to the infras
"""
infras: [Infra]!
}
type GetInfraStatsResponse {
"""
Total number of infrastructures
"""
totalInfrastructures: Int!
"""
Total number of active infrastructures
"""
totalActiveInfrastructure: Int!
"""
Total number of inactive infrastructures
"""
totalInactiveInfrastructures: Int!
"""
Total number of confirmed infrastructures
"""
totalConfirmedInfrastructure: Int!
"""
Total number of non confirmed infrastructures
"""
totalNonConfirmedInfrastructures: Int!
}
"""
InfraVersionDetails returns the details of compatible infra versions and the latest infra version supported
"""
type InfraVersionDetails {
"""
Latest infra version supported
"""
latestVersion: String!
"""
List of all infra versions supported
"""
compatibleVersions: [String!]!
}
"""
Response received for fetching GQL server version
"""
type ServerVersionResponse {
"""
Returns server version key
"""
key: String!
"""
Returns server version value
"""
value: String!
}
extend type Query {
# INFRA OPERATIONS
"""
Returns infra with a particular infraID in the project
"""
getInfra(projectID: ID!, infraID: String!): Infra! @authorized
"""
Returns infras with a particular infra type in the project
"""
listInfras(projectID: ID!, request: ListInfraRequest): ListInfraResponse!
@authorized
"""
Returns infra details based on identifiers
"""
getInfraDetails(infraID: ID!, projectID: ID!): Infra! @authorized
"""
Returns the manifest for a given infraID
"""
getInfraManifest(infraID: ID!, upgrade: Boolean!, projectID: ID!): String!
@authorized
"""
Query to get experiment stats
"""
getInfraStats(projectID: ID!): GetInfraStatsResponse! @authorized
"""
Query to get the latest version of infra available
"""
getVersionDetails(projectID: ID!): InfraVersionDetails! @authorized
"""
Returns version of gql server
"""
getServerVersion: ServerVersionResponse!
}
extend type Mutation {
"""
Connect a new infra for a user in a specified project
"""
registerInfra(
projectID: ID!
request: RegisterInfraRequest!
): RegisterInfraResponse!
"""
Confirms the subscriber's registration with the control plane
"""
# authorized directive not required
confirmInfraRegistration(
request: InfraIdentity!
): ConfirmInfraRegistrationResponse!
"""
Disconnects an infra and deletes its configuration from the control plane
"""
deleteInfra(projectID: ID!, infraID: String!): String! @authorized
"""
Fetches manifest details
"""
getManifestWithInfraID(
projectID: ID!
infraID: String!
accessKey: String!
): String!
"""
Receives pod logs for experiments from infra
"""
# authorized directive not required
podLog(request: PodLog!): String!
"""
Receives kubernetes object data from subscriber
"""
# authorized directive not required
kubeObj(request: KubeObjectData!): String!
"""
Receives kubernetes namespace data from subscriber
"""
# authorized directive not required
kubeNamespace(request: KubeNamespaceData!): String!
}
type Subscription {
# INFRA OPERATIONS
"""
Listens infra events from the graphql server
"""
getInfraEvents(projectID: String!): InfraEventResponse! @authorized
"""
Listens infra operation request from the graphql server
"""
# authorized directive not required
infraConnect(request: InfraIdentity!): InfraActionResponse!
"""
Returns experiment logs from the pods
"""
getPodLog(request: PodLogRequest!): PodLogResponse!
# K8S OPERATIONS
"""
Returns a kubernetes object given an input
"""
getKubeObject(request: KubeObjectRequest!): KubeObjectResponse!
"""
Returns a kubernetes namespaces given an input
"""
getKubeNamespace(request: KubeNamespaceRequest!): KubeNamespaceResponse!
}
`, BuiltIn: false},
{Name: "../../../definitions/shared/chaoshub.graphqls", Input: `enum AuthType {
BASIC
NONE
SSH
TOKEN
}
enum FileType {
EXPERIMENT
ENGINE
WORKFLOW
CSV
}
enum HubType {
GIT
REMOTE
}
type ChaosHub implements ResourceDetails & Audit {
"""
ID of the chaos hub
"""
id: ID!
"""
URL of the git repository
"""
repoURL: String!
"""
Branch of the git repository
"""
repoBranch: String!
"""
Connected Hub of remote repository
"""
remoteHub: String!
"""
ID of the project in which the chaos hub is present
"""
projectID: ID!
"""
Default Hub Identifier
"""
isDefault: Boolean!
"""
Name of the chaos hub
"""
name: String!
"""
Tags of the ChaosHub
"""
tags: [String!]
"""
User who created the ChaosHub
"""
createdBy: UserDetails
"""
User who has updated the ChaosHub
"""
updatedBy: UserDetails
"""
Description of ChaosHub
"""
description: String
"""
Type of ChaosHub
"""
hubType: HubType!
"""
Bool value indicating whether the hub is private or not.
"""
isPrivate: Boolean!
# Auth Types-
# token: Token based authentication
# basic: Username/Password based authentication
# ssh: SSH based authentication
"""
Type of authentication used: BASIC, SSH, TOKEN
"""
authType: AuthType!
"""
Token for authentication of private chaos hub
"""
token: String
"""
Git username
"""
userName: String
"""
Git password
"""
password: String
"""
Private SSH key for authenticating into private chaos hub
"""
sshPrivateKey: String
"""
Bool value indicating if the chaos hub is removed
"""
isRemoved: Boolean!
"""
Timestamp when the chaos hub was created
"""
createdAt: String!
"""
Timestamp when the chaos hub was last updated
"""
updatedAt: String!
"""
Timestamp when the chaos hub was last synced
"""
lastSyncedAt: String!
}
#type Charts {
# charts: [Chart!]!
#}
type Chart {
apiVersion: String!
kind: String!
metadata: Metadata!
spec: Spec!
packageInfo: PackageInformation!
}
"""
Defines the details of the maintainer
"""
type Maintainer {
"""
Name of the maintainer
"""
name: String!
"""
Email of the maintainer
"""
email: String!
}
type Link {
name: String!
url: String!
}
type Metadata {
name: String!
version: String!
annotations: Annotation!
}
type Annotation {
categories: String!
vendor: String!
createdAt: String!
repository: String!
support: String!
chartDescription: String!
}
type FaultList{
name: String!
displayName: String!
description: String!
plan: [String!]
}
type Spec {
displayName: String!
categoryDescription: String!
keywords: [String!]!
maturity: String!
maintainers: [Maintainer!]!
minKubeVersion: String!
provider: Provider!
links: [Link!]!
faults: [FaultList!]!
experiments: [String!]
chaosExpCRDLink: String!
platforms: [String!]!
chaosType: String
}
type Provider {
name: String!
}
type PackageInformation {
packageName: String!
experiments: [Experiments!]!
}
type Experiments {
name: String!
CSV: String!
desc: String!
}
type ChaosHubStatus implements ResourceDetails & Audit {
"""
ID of the hub
"""
id: ID!
"""
URL of the git repository
"""
repoURL: String!
"""
Branch of the git repository
"""
repoBranch: String!
"""
Connected Hub of remote repository
"""
remoteHub: String!
"""
Bool value indicating whether the hub is available or not.
"""
isAvailable: Boolean!
"""
Total number of experiments in the hub
"""
totalFaults: String!
"""
Total experiments
"""
totalExperiments: String!
"""
Name of the chaos hub
"""
name: String!
"""
Type of ChaosHub
"""
hubType: HubType!
"""
Bool value indicating whether the hub is private or not.
"""
isPrivate: Boolean!
# Auth Types-
# token: Token based authentication
# basic: Username/Password based authentication
# ssh: SSH based authentication
"""
Type of authentication used: BASIC, SSH, TOKEN
"""
authType: AuthType!
"""
Token for authentication of private chaos hub
"""
token: String
"""
Git username
"""
userName: String
"""
Git password
"""
password: String
"""
Bool value indicating whether the hub is private or not.
"""
isRemoved: Boolean!
"""
Private SSH key for authenticating into private chaos hub
"""
sshPrivateKey: String
"""
Public SSH key for authenticating into private chaos hub
"""
sshPublicKey: String
"""
Timestamp when the chaos hub was last synced
"""
lastSyncedAt: String!
"""
Tags of the ChaosHub
"""
tags: [String!]
"""
User who created the ChaosHub
"""
createdBy: UserDetails
"""
User who has updated the ChaosHub
"""
updatedBy: UserDetails
"""
Created at timestamp
"""
createdAt: String!
"""
Updated at timestamp
"""
updatedAt: String!
"""
Description of ChaosHub
"""
description: String
"""
Default Hub Identifier
"""
isDefault: Boolean!
}
"""
Defines the details required for creating a chaos hub
"""
input CreateChaosHubRequest {
"""
Name of the chaos hub
"""
name: String!
"""
Tags of the ChaosHub
"""
tags: [String!]
"""
Description of ChaosHub
"""
description: String
"""
URL of the git repository
"""
repoURL: String!
"""
Branch of the git repository
"""
repoBranch: String!
"""
Connected Hub of remote repository
"""
remoteHub: String!
"""
Bool value indicating whether the hub is private or not.
"""
isPrivate: Boolean!
# Auth Types-
# token: Token based authentication
# basic: Username/Password based authentication
# ssh: SSH based authentication
"""
Type of authentication used: BASIC, SSH, TOKEN
"""
authType: AuthType!
"""
Token for authentication of private chaos hub
"""
token: String
"""
Git username
"""
userName: String
"""
Git password
"""
password: String
"""
Private SSH key for authenticating into private chaos hub
"""
sshPrivateKey: String
"""
Public SSH key for authenticating into private chaos hub
"""
sshPublicKey: String
}
input ExperimentRequest {
"""
Name of the chart being used
"""
category: String!
"""
Name of the experiment
"""
experimentName: String!
"""
ID of the hub
"""
hubID: String!
}
input CloningInput {
"""
Name of the chaos hub
"""
name: String!
"""
Branch of the git repository
"""
repoBranch: String!
"""
URL of the git repository
"""
repoURL: String!
"""
Connected Hub of remote repository
"""
remoteHub: String!
"""
Bool value indicating whether the hub is private or not.
"""
isPrivate: Boolean!
# Auth Types-
# token: Token based authentication
# basic: Username/Password based authentication
# ssh: SSH based authentication
"""
Type of authentication used: BASIC, SSH, TOKEN
"""
authType: AuthType!
"""
Token for authentication of private chaos hub
"""
token: String
"""
Git username
"""
userName: String
"""
Git password
"""
password: String
sshPrivateKey: String
isDefault:Boolean!
}
input CreateRemoteChaosHub {
"""
Name of the chaos hub
"""
name: String!
"""
Tags of the ChaosHub
"""
tags: [String!]
"""
Description of ChaosHub
"""
description: String
"""
URL of the git repository
"""
repoURL: String!
"""
Connected Hub of remote repository
"""
remoteHub: String!
}
input UpdateChaosHubRequest {
"""
ID of the chaos hub
"""
id: String!
"""
Name of the chaos hub
"""
name: String!
"""
Description of the infra
"""
description: String
"""
Tags of the infra
"""
tags: [String!]
"""
URL of the git repository
"""
repoURL: String!
"""
Branch of the git repository
"""
repoBranch: String!
"""
Connected Hub of remote repository
"""
remoteHub: String!
"""
Bool value indicating whether the hub is private or not.
"""
isPrivate: Boolean!
"""
Type of authentication used: BASIC, SSH, TOKEN
"""
authType: AuthType!
"""
Token for authentication of private chaos hub
"""
token: String
"""
Git username
"""
userName: String
"""
Git password
"""
password: String
"""
Private SSH key for authenticating into private chaos hub
"""
sshPrivateKey: String
"""
Public SSH key for authenticating into private chaos hub
"""
sshPublicKey: String
}
type ExperimentDetails{
"""
Engine Manifest
"""
engineDetails: String!
"""
Experiment Manifest
"""
experimentDetails: String!
}
type PredefinedExperimentList {
"""
Name of the experiment
"""
experimentName: String!
"""
Experiment CSV
"""
experimentCSV: String!
"""
Experiment Manifest
"""
experimentManifest: String!
}
"""
Defines filter options for ChaosHub
"""
input ChaosHubFilterInput {
"""
Name of the ChaosHub
"""
chaosHubName: String
"""
Tags of a chaos hub
"""
tags: [String!]
"""
Description of a chaos hub
"""
description: String
}
input ListChaosHubRequest {
"""
Array of ChaosHub IDs for which details will be fetched
"""
chaosHubIDs: [ID!]
"""
Details for fetching filtered data
"""
filter: ChaosHubFilterInput
}
"""
Fault Detail consists of all the fault related details
"""
type FaultDetails {
"""
fault consists of fault.yaml
"""
fault: String!
"""
engine consists engine.yaml
"""
engine: String!
"""
csv consists chartserviceversion.yaml
"""
csv: String!
}
type GetChaosHubStatsResponse{
"""
Total number of chaoshubs
"""
totalChaosHubs: Int!
}
extend type Query {
# CHAOS-HUB OPERATIONS
"""
List the Charts details of a ChaosHub
"""
listChaosFaults(hubID: ID!, projectID: ID!): [Chart!]! @authorized
"""
Get the fault list from a ChaosHub
"""
getChaosFault(projectID: ID!,request: ExperimentRequest!): FaultDetails! @authorized
"""
Lists all the connected ChaosHub
"""
listChaosHub(projectID: ID!, request: ListChaosHubRequest): [ChaosHubStatus]! @authorized
"""
Get the details of a requested ChaosHub
"""
getChaosHub(projectID: ID!, chaosHubID: ID!): ChaosHubStatus! @authorized
#
# """
# Get the YAML manifest of ChaosEngine/ChaosExperiment
# """
# getYAMLData(projectID: String!,request: ExperimentRequest!): String! @authorized
# """
# Get Engine and Experiment YAML
# """
# getExperimentDetails(projectID: String!,request: ExperimentRequest!): ExperimentDetails! @authorized
"""
List the PredefinedExperiments present in the hub
"""
listPredefinedExperiments(hubID: ID!, projectID: ID!): [PredefinedExperimentList!]! @authorized
"""
Returns predefined experiment details of selected experiments
"""
getPredefinedExperiment(
hubID: ID!
experimentName: [String!]!
projectID: ID!
): [PredefinedExperimentList!]! @authorized
"""
Query to get experiment stats
"""
getChaosHubStats(projectID: ID!): GetChaosHubStatsResponse! @authorized
}
extend type Mutation {
# CHAOS-HUB OPERATIONS
"""
Add a ChaosHub (includes the git clone operation)
"""
addChaosHub( projectID: ID!,request: CreateChaosHubRequest!): ChaosHub! @authorized
"""
Add a ChaosHub (remote hub download)
"""
addRemoteChaosHub(projectID: ID!,request: CreateRemoteChaosHub!): ChaosHub! @authorized
"""
Save a ChaosHub configuration without cloning it
"""
saveChaosHub(projectID: ID!,request: CreateChaosHubRequest!): ChaosHub! @authorized
"""
Sync changes from the Git repository of a ChaosHub
"""
syncChaosHub(id: ID!, projectID: ID!): String! @authorized
"""
Generates Private and Public key for SSH authentication
"""
generateSSHKey: SSHKey! @authorized
"""
Update the configuration of a ChaosHub
"""
updateChaosHub(projectID: ID!,request: UpdateChaosHubRequest!): ChaosHub! @authorized
"""
Delete the ChaosHub
"""
deleteChaosHub(projectID: ID!, hubID: ID!): Boolean! @authorized
}`, BuiltIn: false},
{Name: "../../../definitions/shared/common.graphqls", Input: `
interface ResourceDetails {
name: String!
description: String
tags:[String!]
}
interface Audit {
updatedAt: String
createdAt: String
updatedBy: UserDetails
createdBy: UserDetails
}
type UserDetails {
userID: String!
username: String!
email: String!
}
`, BuiltIn: false},
{Name: "../../../definitions/shared/environment.graphqls", Input: `
enum EnvironmentType{
PROD
NON_PROD
}
type Environment implements ResourceDetails & Audit {
projectID:String!
environmentID : String!
name: String!
description: String
tags:[String!]
type: EnvironmentType!
createdAt: String!
createdBy: UserDetails
updatedBy: UserDetails
updatedAt: String!
isRemoved: Boolean
infraIDs:[String!]
}
input CreateEnvironmentRequest{
environmentID : String! #check if human readable ID is required
name: String!
type: EnvironmentType!
description: String
tags:[String!]
}
input UpdateEnvironmentRequest{
environmentID : String!
name: String
description: String
tags:[String]
type: EnvironmentType
}
"""
Defines filter options for infras
"""
input EnvironmentFilterInput {
"""
Name of the environment
"""
name: String
"""
ID of the environment
"""
description: String
"""
Type name of environment
"""
type: EnvironmentType
"""
Tags of an environment
"""
tags: [String!]
}
enum EnvironmentSortingField {
NAME
TIME
}
"""
Defines sorting options for experiment
"""
input EnvironmentSortInput {
"""
Field in which sorting will be done
"""
field: EnvironmentSortingField!
"""
Bool value indicating whether the sorting will be done in ascending order
"""
ascending: Boolean
}
input ListEnvironmentRequest{
"""
Environment ID
"""
environmentIDs: [ID!]
"""
Details for fetching paginated data
"""
pagination: Pagination
"""
Details for fetching filtered data
"""
filter: EnvironmentFilterInput
"""
Details for fetching sorted data
"""
sort: EnvironmentSortInput
}
type ListEnvironmentResponse{
"""
Total number of environment
"""
totalNoOfEnvironments: Int!
environments:[Environment]
}
extend type Query {
getEnvironment(projectID: ID!, environmentID: ID!) : Environment @authorized
listEnvironments (projectID: ID!, request: ListEnvironmentRequest): ListEnvironmentResponse @authorized
}
extend type Mutation{
createEnvironment( projectID:ID!,request:CreateEnvironmentRequest): Environment @authorized
updateEnvironment( projectID:ID!,request:UpdateEnvironmentRequest): String! @authorized
deleteEnvironment(projectID:ID!,environmentID: ID!): String! @authorized
}`, BuiltIn: false},
{Name: "../../../definitions/shared/gitops.graphqls", Input: `
"""
Defines the SSHKey details
"""
type SSHKey {
"""
Public SSH key authenticating into git repository
"""
publicKey: String!
"""
Private SSH key authenticating into git repository
"""
privateKey: String!
}
"""
Details of setting a Git repository
"""
input GitConfig {
"""
Git branch where the chaos charts will be pushed and synced
"""
branch: String!
"""
URL of the Git repository
"""
repoURL: String!
"""
Type of authentication used: BASIC, SSH, TOKEN
"""
authType: AuthType!
"""
Token used for private repository
"""
token: String
"""
Git username
"""
userName: String
"""
Git password
"""
password: String
"""
Private SSH key authenticating into git repository
"""
sshPrivateKey: String
}
"""
Response received after configuring GitOps
"""
type GitConfigResponse {
"""
Bool value indicating whether GitOps is enabled or not
"""
enabled: Boolean!
"""
ID of the project where GitOps is configured
"""
projectID: String!
"""
Git branch where the chaos charts will be pushed and synced
"""
branch: String
"""
URL of the Git repository
"""
repoURL: String
"""
Type of authentication used: BASIC, SSH, TOKEN
"""
authType: AuthType
"""
Token used for private repository
"""
token: String
"""
Git username
"""
userName: String
"""
Git password
"""
password: String
"""
Private SSH key authenticating into git repository
"""
sshPrivateKey: String
}
extend type Query {
# GIT-OPS OPERATIONS
"""
Returns the git configuration for gitops
"""
getGitOpsDetails(projectID: ID!): GitConfigResponse! @authorized
}
extend type Mutation {
# GIT-OPS OPERATIONS
"""
Sends workflow run request(single run workflow only) to agent on gitops notification
"""
# authorized directive not required
gitopsNotifier(clusterInfo: InfraIdentity!, experimentID: ID!): String!
"""
Enables gitops settings in the project
"""
enableGitOps(projectID: ID!,configurations: GitConfig!): Boolean! @authorized
"""
Disables gitops settings in the project
"""
disableGitOps(projectID: ID!): Boolean! @authorized
"""
Updates gitops settings in the project
"""
updateGitOps(projectID: ID!,configurations: GitConfig!): Boolean! @authorized
}`, BuiltIn: false},
{Name: "../../../definitions/shared/image_registry.graphqls", Input: `"""
Defines details for image registry
"""
type ImageRegistry {
"""
Bool value indicating if the image registry is default or not; by default workflow uses LitmusChaos registry
"""
isDefault: Boolean
"""
Name of Image Registry
"""
imageRegistryName: String!
"""
Name of image repository
"""
imageRepoName: String!
"""
Type of the image registry: public/private
"""
imageRegistryType: String!
"""
Secret which is used for private registry
"""
secretName: String
"""
Namespace where the secret is available
"""
secretNamespace: String
"""
Bool value indicating if image registry is enabled or not
"""
enableRegistry: Boolean
}
"""
Defines input data for querying the details of an image registry
"""
input ImageRegistryInput {
"""
Bool value indicating if the image registry is default or not; by default workflow uses LitmusChaos registry
"""
isDefault: Boolean!
"""
Name of Image Registry
"""
imageRegistryName: String!
"""
Name of image repository
"""
imageRepoName: String!
"""
Type of the image registry: public/private
"""
imageRegistryType: String!
"""
Secret which is used for private registry
"""
secretName: String
"""
Namespace where the secret is available
"""
secretNamespace: String
"""
Bool value indicating if image registry is enabled or not
"""
enableRegistry: Boolean
}
"""
Defines response data for image registry
"""
type ImageRegistryResponse implements Audit {
"""
Bool value indicating if the image registry is default or not; by default workflow uses LitmusChaos registry
"""
isDefault: Boolean!
"""
Information Image Registry
"""
imageRegistryInfo: ImageRegistry
"""
ID of the image registry
"""
imageRegistryID: String!
"""
ID of the project in which image registry is created
"""
projectID: String!
"""
Timestamp when the image registry was last updated
"""
updatedAt: String
"""
Timestamp when the image registry was created
"""
createdAt: String
"""
User who created the infra
"""
createdBy: UserDetails
"""
User who has updated the infra
"""
updatedBy: UserDetails
"""
Bool value indicating if the image registry has been removed
"""
isRemoved: Boolean
}
extend type Query {
# IMAGE REGISTRY OPERATIONS
listImageRegistry(projectID: String!): [ImageRegistryResponse!] @authorized
getImageRegistry(
projectID: String!
): ImageRegistryResponse! @authorized
}
extend type Mutation {
# IMAGE REGISTRY OPERATIONS
"""
Create an Image Registry configuration
"""
createImageRegistry(
projectID: String!
imageRegistryInfo: ImageRegistryInput!
): ImageRegistryResponse! @authorized
"""
Update the Image Registry configuration
"""
updateImageRegistry(
imageRegistryID: String!
projectID: String!
imageRegistryInfo: ImageRegistryInput!
): ImageRegistryResponse! @authorized
"""
Delete the Image Registry
"""
deleteImageRegistry(imageRegistryID: String!, projectID: String!): String!
@authorized
}`, BuiltIn: false},
{Name: "../../../definitions/shared/probe.graphqls", Input: `"""
Defines the different types of Probes
"""
enum ProbeType {
httpProbe
cmdProbe
promProbe
k8sProbe
}
"""
Defines the different types of Image Pull Policy
"""
enum ImagePullPolicy {
IfNotPresent
Always
Never
}
"""
Defines the different modes of Probes
"""
enum Mode {
SOT
EOT
Edge
Continuous
OnChaos
}
"""
Defines the different statuses of Probes
"""
enum ProbeStatus {
Running
Completed
Stopped
Error
Queued
NA
}
"""
Defines the older different statuses of Probes
"""
enum ProbeVerdict {
Passed
Failed
NA
Awaited
}
"""
Defines the methods of the probe properties
"""
type Method {
"""
A GET request
"""
get: GET
"""
A POST request
"""
post: POST
}
"""
Details of GET request
"""
type GET {
"""
Criteria of the request
"""
criteria: String!
"""
Response Code of the request
"""
responseCode: String!
}
"""
Details of POST request
"""
type POST {
"""
Content Type of the request
"""
contentType: String
"""
Body of the request
"""
body: String
"""
Body Path of the HTTP body required for the http post request
"""
bodyPath: String
"""
Criteria of the request
"""
criteria: String!
"""
Response Code of the request
"""
responseCode: String!
}
"""
Defines the input for methods of the probe properties
"""
input MethodRequest {
"""
A GET request
"""
get: GETRequest
"""
A POST request
"""
post: POSTRequest
}
"""
Details for input of GET request
"""
input GETRequest {
"""
Criteria of the request
"""
criteria: String!
"""
Response Code of the request
"""
responseCode: String!
}
"""
Details for input of the POST request
"""
input POSTRequest {
"""
Content Type of the request
"""
contentType: String
"""
Body of the request
"""
body: String
"""
Body Path of the request for Body
"""
bodyPath: String
"""
Criteria of the request
"""
criteria: String!
"""
Response Code of the request
"""
responseCode: String!
}
"""
Defines the common probe properties shared across different ProbeTypes
"""
interface CommonProbeProperties {
"""
Timeout of the Probe
"""
probeTimeout: String!
"""
Interval of the Probe
"""
interval: String!
"""
Retry interval of the Probe
"""
retry: Int
"""
Attempt contains the total attempt count for the probe
"""
attempt: Int
"""
Polling interval of the Probe
"""
probePollingInterval: String
"""
Initial delay interval of the Probe in seconds
"""
initialDelay: String
"""
EvaluationTimeout is the timeout window in which the SLO metrics
"""
evaluationTimeout: String
"""
Is stop on failure enabled in the Probe
"""
stopOnFailure: Boolean
}
"""
Defines the details required for creating a Chaos Probe
"""
input ProbeRequest {
"""
Name of the Probe
"""
name: ID!
"""
Description of the Probe
"""
description: String
"""
Tags of the Probe
"""
tags: [String!]
"""
Type of the Probe [From list of ProbeType enum]
"""
type: ProbeType!
"""
Infrastructure type of the Probe
"""
infrastructureType: InfrastructureType!
"""
HTTP Properties of the specific type of the Probe
"""
kubernetesHTTPProperties: KubernetesHTTPProbeRequest
"""
CMD Properties of the specific type of the Probe
"""
kubernetesCMDProperties: KubernetesCMDProbeRequest
"""
K8S Properties of the specific type of the Probe
"""
k8sProperties: K8SProbeRequest
"""
PROM Properties of the specific type of the Probe
"""
promProperties: PROMProbeRequest
}
"""
Defines the input for Kubernetes HTTP probe properties
"""
input KubernetesHTTPProbeRequest {
"""
Timeout of the Probe
"""
probeTimeout: String!
"""
Interval of the Probe
"""
interval: String!
"""
Retry interval of the Probe
"""
retry: Int
"""
Attempt contains the total attempt count for the probe
"""
attempt: Int
"""
Polling interval of the Probe
"""
probePollingInterval: String
"""
Initial delay interval of the Probe in seconds
"""
initialDelay: String
"""
EvaluationTimeout is the timeout window in which the SLO metrics
"""
evaluationTimeout: String
"""
Is stop on failure enabled in the Probe
"""
stopOnFailure: Boolean
"""
URL of the Probe
"""
url: String!
"""
HTTP method of the Probe
"""
method: MethodRequest!
"""
If Insecure HTTP verification should be skipped
"""
insecureSkipVerify: Boolean
}
"""
Defines the properties of the comparator
"""
type Comparator {
"""
Type of the Comparator
"""
type: String!
"""
Value of the Comparator
"""
value: String!
"""
Operator of the Comparator
"""
criteria: String!
}
"""
Defines the input properties of the comparator
"""
input ComparatorInput {
"""
Type of the Comparator
"""
type: String!
"""
Value of the Comparator
"""
value: String!
"""
Operator of the Comparator
"""
criteria: String!
}
"""
Defines the Executed by which experiment details for Probes
"""
type ExecutedByExperiment {
"""
Experiment ID
"""
experimentID: String!
"""
Experiment Name
"""
experimentName: String!
"""
Timestamp at which the experiment was last updated
"""
updatedAt: Int!
"""
User who has updated the experiment
"""
updatedBy: UserDetails
}
"""
Defines the Execution History of experiment referenced by the Probe
"""
type ExecutionHistory {
"""
Probe Mode
"""
mode: Mode!
"""
Fault Name
"""
faultName: String!
"""
Fault Status
"""
status: Status!
"""
Fault executed by which experiment
"""
executedByExperiment: ExecutedByExperiment!
}
"""
Defines the Recent Executions of global probe in ListProbe API with different fault and execution history each time
"""
type ProbeRecentExecutions {
"""
Fault name
"""
faultName: String!
"""
Fault Status
"""
status: Status!
"""
Fault executed by which experiment
"""
executedByExperiment: ExecutedByExperiment!
}
"""
Defines the Recent Executions of experiment referenced by the Probe
"""
type RecentExecutions {
"""
Fault name
"""
faultName: String!
"""
Probe mode
"""
mode: Mode!
"""
Execution History
"""
executionHistory: [ExecutionHistory!]!
}
"""
Defines the response of the Probe reference API
"""
type GetProbeReferenceResponse {
"""
Harness identifiers
"""
projectID: ID!
"""
Name of the Probe
"""
name: String!
"""
Total Runs
"""
totalRuns: Int!
"""
Recent Executions of the probe
"""
recentExecutions: [RecentExecutions]!
}
"""
Defines the CMD probe properties
"""
type KubernetesCMDProbe implements CommonProbeProperties {
"""
Timeout of the Probe
"""
probeTimeout: String!
"""
Interval of the Probe
"""
interval: String!
"""
Retry interval of the Probe
"""
retry: Int
"""
Attempt contains the total attempt count for the probe
"""
attempt: Int
"""
Polling interval of the Probe
"""
probePollingInterval: String
"""
Initial delay interval of the Probe in seconds
"""
initialDelay: String
"""
EvaluationTimeout is the timeout window in which the SLO metrics
"""
evaluationTimeout: String
"""
Is stop on failure enabled in the Probe
"""
stopOnFailure: Boolean
"""
Command of the Probe
"""
command: String!
"""
Comparator of the Probe
"""
comparator: Comparator!
"""
Source of the Probe
"""
source: String
}
"""
Defines the details of the Probe entity
"""
type Probe implements ResourceDetails & Audit {
"""
Harness identifiers
"""
projectID: ID!
"""
Name of the Probe
"""
name: String!
"""
Description of the Probe
"""
description: String
"""
Tags of the Probe
"""
tags: [String!]
"""
Type of the Probe [From list of ProbeType enum]
"""
type: ProbeType!
"""
Infrastructure type of the Probe
"""
infrastructureType: InfrastructureType!
"""
Kubernetes HTTP Properties of the specific type of the Probe
"""
kubernetesHTTPProperties: KubernetesHTTPProbe
"""
Kubernetes CMD Properties of the specific type of the Probe
"""
kubernetesCMDProperties: KubernetesCMDProbe
"""
K8S Properties of the specific type of the Probe
"""
k8sProperties: K8SProbe
"""
PROM Properties of the specific type of the Probe
"""
promProperties: PROMProbe
"""
All execution histories of the probe
"""
recentExecutions: [ProbeRecentExecutions!]
"""
Referenced by how many faults
"""
referencedBy: Int
"""
Timestamp at which the Probe was last updated
"""
updatedAt: String!
"""
Timestamp at which the Probe was created
"""
createdAt: String!
"""
User who has updated the Probe
"""
updatedBy: UserDetails
"""
User who has created the Probe
"""
createdBy: UserDetails
}
"""
Defines the input for Probe filter
"""
input ProbeFilterInput {
"""
Name of the Probe
"""
name: String
"""
Date range for filtering purpose
"""
dateRange: DateRange
"""
Type of the Probe [From list of ProbeType enum]
"""
type: [ProbeType]
}
"""
Defines the input for PROM probe properties
"""
input PROMProbeRequest {
"""
Timeout of the Probe
"""
probeTimeout: String!
"""
Interval of the Probe
"""
interval: String!
"""
Retry interval of the Probe
"""
retry: Int
"""
Attempt contains the total attempt count for the probe
"""
attempt: Int
"""
Polling interval of the Probe
"""
probePollingInterval: String
"""
Initial delay interval of the Probe in seconds
"""
initialDelay: String
"""
EvaluationTimeout is the timeout window in which the SLO metrics
"""
evaluationTimeout: String
"""
Is stop on failure enabled in the Probe
"""
stopOnFailure: Boolean
"""
Endpoint of the Probe
"""
endpoint: String!
"""
Query of the Probe
"""
query: String
"""
Query path of the Probe
"""
queryPath: String
"""
Comparator of the Probe
"""
comparator: ComparatorInput!
}
"""
Defines the input for HTTP probe properties
"""
input HTTPProbeRequest {
"""
Timeout of the Probe
"""
probeTimeout: String!
"""
Interval of the Probe
"""
interval: String!
"""
Retry interval of the Probe
"""
retry: Int
"""
Attempt contains the total attempt count for the probe
"""
attempt: Int
"""
Polling interval of the Probe
"""
probePollingInterval: String
"""
Initial delay interval of the Probe in seconds
"""
initialDelay: String
"""
EvaluationTimeout is the timeout window in which the SLO metrics
"""
evaluationTimeout: String
"""
Is stop on failure enabled in the Probe
"""
stopOnFailure: Boolean
"""
URL of the Probe
"""
url: String!
"""
HTTP method of the Probe
"""
method: MethodRequest!
"""
If Insecure HTTP verification should be skipped
"""
insecureSkipVerify: Boolean
}
"""
Defines the input for K8S probe properties
"""
input K8SProbeRequest {
"""
Timeout of the Probe
"""
probeTimeout: String!
"""
Interval of the Probe
"""
interval: String!
"""
Retry interval of the Probe
"""
retry: Int
"""
Attempt contains the total attempt count for the probe
"""
attempt: Int
"""
Polling interval of the Probe
"""
probePollingInterval: String
"""
Initial delay interval of the Probe in seconds
"""
initialDelay: String
"""
EvaluationTimeout is the timeout window in which the SLO metrics
"""
evaluationTimeout: String
"""
Is stop on failure enabled in the Probe
"""
stopOnFailure: Boolean
"""
Group of the Probe
"""
group: String
"""
Version of the Probe
"""
version: String!
"""
Resource of the Probe
"""
resource: String!
"""
Namespace of the Probe
"""
namespace: String
"""
Resource Names of the Probe
"""
resourceNames: String
"""
Field Selector of the Probe
"""
fieldSelector: String
"""
Label Selector of the Probe
"""
labelSelector: String
"""
Operation of the Probe
"""
operation: String!
}
"""
Defines the PROM probe properties
"""
type PROMProbe implements CommonProbeProperties {
"""
Timeout of the Probe
"""
probeTimeout: String!
"""
Interval of the Probe
"""
interval: String!
"""
Retry interval of the Probe
"""
retry: Int
"""
Attempt contains the total attempt count for the probe
"""
attempt: Int
"""
Polling interval of the Probe
"""
probePollingInterval: String
"""
Initial delay interval of the Probe in seconds
"""
initialDelay: String
"""
EvaluationTimeout is the timeout window in which the SLO metrics
"""
evaluationTimeout: String
"""
Is stop on failure enabled in the Probe
"""
stopOnFailure: Boolean
"""
Endpoint of the Probe
"""
endpoint: String!
"""
Query of the Probe
"""
query: String
"""
Query path of the Probe
"""
queryPath: String
"""
Comparator of the Probe
"""
comparator: Comparator!
}
"""
Defines the input for Kubernetes CMD probe properties
"""
input KubernetesCMDProbeRequest {
"""
Timeout of the Probe
"""
probeTimeout: String!
"""
Interval of the Probe
"""
interval: String!
"""
Retry interval of the Probe
"""
retry: Int
"""
Attempt contains the total attempt count for the probe
"""
attempt: Int
"""
Polling interval of the Probe
"""
probePollingInterval: String
"""
Initial delay interval of the Probe in seconds
"""
initialDelay: String
"""
EvaluationTimeout is the timeout window in which the SLO metrics
"""
evaluationTimeout: String
"""
Is stop on failure enabled in the Probe
"""
stopOnFailure: Boolean
"""
Command of the Probe
"""
command: String!
"""
Comparator of the Probe
"""
comparator: ComparatorInput!
"""
Source of the Probe
"""
source: String
}
"""
Defines the Kubernetes HTTP probe properties
"""
type KubernetesHTTPProbe implements CommonProbeProperties {
"""
Timeout of the Probe
"""
probeTimeout: String!
"""
Interval of the Probe
"""
interval: String!
"""
Retry interval of the Probe
"""
retry: Int
"""
Attempt contains the total attempt count for the probe
"""
attempt: Int
"""
Polling interval of the Probe
"""
probePollingInterval: String
"""
Initial delay interval of the Probe in seconds
"""
initialDelay: String
"""
EvaluationTimeout is the timeout window in which the SLO metrics
"""
evaluationTimeout: String
"""
Is stop on failure enabled in the Probe
"""
stopOnFailure: Boolean
"""
URL of the Probe
"""
url: String!
"""
HTTP method of the Probe
"""
method: Method!
"""
If Insecure HTTP verification should be skipped
"""
insecureSkipVerify: Boolean
}
"""
Defines the input for CMD probe properties
"""
input CMDProbeRequest {
"""
Timeout of the Probe
"""
probeTimeout: String!
"""
Interval of the Probe
"""
interval: String!
"""
Retry interval of the Probe
"""
retry: Int
"""
Attempt contains the total attempt count for the probe
"""
attempt: Int
"""
Polling interval of the Probe
"""
probePollingInterval: String
"""
Initial delay interval of the Probe in seconds
"""
initialDelay: String
"""
EvaluationTimeout is the timeout window in which the SLO metrics
"""
evaluationTimeout: String
"""
Is stop on failure enabled in the Probe
"""
stopOnFailure: Boolean
"""
Command of the Probe
"""
command: String!
"""
Comparator of the Probe
"""
comparator: ComparatorInput!
"""
Source of the Probe
"""
source: String
}
"""
Defines the K8S probe properties
"""
type K8SProbe implements CommonProbeProperties {
"""
Timeout of the Probe
"""
probeTimeout: String!
"""
Interval of the Probe
"""
interval: String!
"""
Retry interval of the Probe
"""
retry: Int
"""
Attempt contains the total attempt count for the probe
"""
attempt: Int
"""
Polling interval of the Probe
"""
probePollingInterval: String
"""
Initial delay interval of the Probe in seconds
"""
initialDelay: String
"""
EvaluationTimeout is the timeout window in which the SLO metrics
"""
evaluationTimeout: String
"""
Is stop on failure enabled in the Probe
"""
stopOnFailure: Boolean
"""
Group of the Probe
"""
group: String
"""
Version of the Probe
"""
version: String!
"""
Resource of the Probe
"""
resource: String!
"""
Namespace of the Probe
"""
namespace: String
"""
Resource Names of the Probe
"""
resourceNames: String
"""
Field Selector of the Probe
"""
fieldSelector: String
"""
Label Selector of the Probe
"""
labelSelector: String
"""
Operation of the Probe
"""
operation: String!
}
"""
Status defines whether a probe is pass or fail
"""
type Status {
"""
Verdict defines the verdict of the probe, range: Passed, Failed, N/A
"""
verdict: ProbeVerdict!
"""
Description defines the description of probe status
"""
description: String
}
"""
Defines the response for Get Probe In Experiment Run Query
"""
type GetProbesInExperimentRunResponse {
"""
Probe Object
"""
probe: Probe!
"""
Mode of the probe
"""
mode: Mode!
"""
Status of the Probe
"""
status: Status!
}
"""
Defines the input requests for GetProbeYAML query
"""
input GetProbeYAMLRequest {
"""
Probe name of the probe
"""
probeName: ID!
"""
Mode of the Probe (SoT, EoT, Edge, Continuous or OnChaos)
"""
mode: Mode!
}
extend type Query {
"""
Returns the list of Probes based on various filter parameters
"""
listProbes(
projectID: ID!
infrastructureType: InfrastructureType
probeNames: [ID!]
filter: ProbeFilterInput
): [Probe]! @authorized
"""
Returns a single Probe based on ProbeName and various filter parameters
"""
getProbe(projectID: ID!, probeName: ID!): Probe! @authorized
"""
Returns the Probe YAML based on ProbeName which can be used in ChaosEngine manifest
"""
getProbeYAML(projectID: ID!, request: GetProbeYAMLRequest!): String!
@authorized
"""
Returns all the reference of the Probe based on ProbeName
"""
getProbeReference(projectID: ID!, probeName: ID!): GetProbeReferenceResponse!
@authorized
"""
Returns all the Probes attached to the requested Experiment Run
"""
getProbesInExperimentRun(
projectID: ID!
experimentRunID: String!
faultName: String!
): [GetProbesInExperimentRunResponse]! @authorized
"""
Validates if a probe is already present, returns true if unique
"""
validateUniqueProbe(projectID: ID!, probeName: ID!): Boolean! @authorized
}
extend type Mutation {
"""
Creates a new Probe
"""
addProbe(request: ProbeRequest!, projectID: ID!): Probe! @authorized
"""
Update the configuration of a Probe
"""
updateProbe(request: ProbeRequest!, projectID: ID!): String! @authorized
"""
Delete a Probe
"""
deleteProbe(probeName: ID!, projectID: ID!): Boolean! @authorized
}
`, BuiltIn: false},
{Name: "../../../definitions/shared/project.graphqls", Input: `enum Invitation {
Accepted
Pending
}
enum MemberRole {
Owner
Executor
Viewer
}
`, BuiltIn: false},
}
var parsedSchema = gqlparser.MustLoadSchema(sources...)
// endregion ************************** generated!.gotpl **************************
// region ***************************** args.gotpl *****************************
func (ec *executionContext) field_Mutation_addChaosHub_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 model.CreateChaosHubRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalNCreateChaosHubRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐCreateChaosHubRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_addProbe_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.ProbeRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNProbeRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_addRemoteChaosHub_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 model.CreateRemoteChaosHub
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalNCreateRemoteChaosHub2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐCreateRemoteChaosHub(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_chaosExperimentRun_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.ExperimentRunRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNExperimentRunRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_confirmInfraRegistration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.InfraIdentity
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNInfraIdentity2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_createChaosExperiment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.ChaosExperimentRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNChaosExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_createEnvironment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 *model.CreateEnvironmentRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalOCreateEnvironmentRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐCreateEnvironmentRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_createImageRegistry_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 model.ImageRegistryInput
if tmp, ok := rawArgs["imageRegistryInfo"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imageRegistryInfo"))
arg1, err = ec.unmarshalNImageRegistryInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryInput(ctx, tmp)
if err != nil {
return nil, err
}
}
args["imageRegistryInfo"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_deleteChaosExperiment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["experimentID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentID"))
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["experimentID"] = arg0
var arg1 *string
if tmp, ok := rawArgs["experimentRunID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunID"))
arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
if err != nil {
return nil, err
}
}
args["experimentRunID"] = arg1
var arg2 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg2, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg2
return args, nil
}
func (ec *executionContext) field_Mutation_deleteChaosHub_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["hubID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hubID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["hubID"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_deleteEnvironment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["environmentID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environmentID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["environmentID"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_deleteImageRegistry_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["imageRegistryID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imageRegistryID"))
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["imageRegistryID"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_deleteInfra_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["infraID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
arg1, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["infraID"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_deleteProbe_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["probeName"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeName"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["probeName"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_disableGitOps_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_enableGitOps_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 model.GitConfig
if tmp, ok := rawArgs["configurations"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("configurations"))
arg1, err = ec.unmarshalNGitConfig2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGitConfig(ctx, tmp)
if err != nil {
return nil, err
}
}
args["configurations"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_getManifestWithInfraID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["infraID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
arg1, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["infraID"] = arg1
var arg2 string
if tmp, ok := rawArgs["accessKey"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("accessKey"))
arg2, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["accessKey"] = arg2
return args, nil
}
func (ec *executionContext) field_Mutation_gitopsNotifier_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.InfraIdentity
if tmp, ok := rawArgs["clusterInfo"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterInfo"))
arg0, err = ec.unmarshalNInfraIdentity2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx, tmp)
if err != nil {
return nil, err
}
}
args["clusterInfo"] = arg0
var arg1 string
if tmp, ok := rawArgs["experimentID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["experimentID"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_kubeNamespace_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.KubeNamespaceData
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNKubeNamespaceData2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeNamespaceData(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_kubeObj_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.KubeObjectData
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNKubeObjectData2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObjectData(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_podLog_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.PodLog
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNPodLog2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPodLog(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_registerInfra_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 model.RegisterInfraRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalNRegisterInfraRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRegisterInfraRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_runChaosExperiment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["experimentID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentID"))
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["experimentID"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_saveChaosExperiment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.SaveChaosExperimentRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNSaveChaosExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐSaveChaosExperimentRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_saveChaosHub_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 model.CreateChaosHubRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalNCreateChaosHubRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐCreateChaosHubRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_stopExperimentRuns_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["experimentID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentID"))
arg1, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["experimentID"] = arg1
var arg2 *string
if tmp, ok := rawArgs["experimentRunID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunID"))
arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
if err != nil {
return nil, err
}
}
args["experimentRunID"] = arg2
var arg3 *string
if tmp, ok := rawArgs["notifyID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("notifyID"))
arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
if err != nil {
return nil, err
}
}
args["notifyID"] = arg3
return args, nil
}
func (ec *executionContext) field_Mutation_syncChaosHub_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["id"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["id"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_updateChaosExperiment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.ChaosExperimentRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNChaosExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_updateChaosHub_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 model.UpdateChaosHubRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalNUpdateChaosHubRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUpdateChaosHubRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_updateCronExperimentState_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["experimentID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentID"))
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["experimentID"] = arg0
var arg1 bool
if tmp, ok := rawArgs["disable"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("disable"))
arg1, err = ec.unmarshalNBoolean2bool(ctx, tmp)
if err != nil {
return nil, err
}
}
args["disable"] = arg1
var arg2 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg2, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg2
return args, nil
}
func (ec *executionContext) field_Mutation_updateEnvironment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 *model.UpdateEnvironmentRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalOUpdateEnvironmentRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUpdateEnvironmentRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_updateGitOps_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 model.GitConfig
if tmp, ok := rawArgs["configurations"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("configurations"))
arg1, err = ec.unmarshalNGitConfig2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGitConfig(ctx, tmp)
if err != nil {
return nil, err
}
}
args["configurations"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_updateImageRegistry_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["imageRegistryID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imageRegistryID"))
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["imageRegistryID"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
var arg2 model.ImageRegistryInput
if tmp, ok := rawArgs["imageRegistryInfo"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imageRegistryInfo"))
arg2, err = ec.unmarshalNImageRegistryInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryInput(ctx, tmp)
if err != nil {
return nil, err
}
}
args["imageRegistryInfo"] = arg2
return args, nil
}
func (ec *executionContext) field_Mutation_updateProbe_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.ProbeRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNProbeRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
return args, 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{}{}
var arg0 string
if tmp, ok := rawArgs["name"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["name"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_getChaosFault_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 model.ExperimentRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalNExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_getChaosHubStats_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_getChaosHub_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["chaosHubID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chaosHubID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["chaosHubID"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_getEnvironment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["environmentID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environmentID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["environmentID"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_getExperimentRunStats_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_getExperimentRun_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 *string
if tmp, ok := rawArgs["experimentRunID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunID"))
arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp)
if err != nil {
return nil, err
}
}
args["experimentRunID"] = arg1
var arg2 *string
if tmp, ok := rawArgs["notifyID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("notifyID"))
arg2, err = ec.unmarshalOID2ᚖstring(ctx, tmp)
if err != nil {
return nil, err
}
}
args["notifyID"] = arg2
var arg3 *model.InfraIdentity
if tmp, ok := rawArgs["infraID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
arg3, err = ec.unmarshalOInfraIdentity2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx, tmp)
if err != nil {
return nil, err
}
}
args["infraID"] = arg3
return args, nil
}
func (ec *executionContext) field_Query_getExperimentStats_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_getExperiment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["experimentID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentID"))
arg1, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["experimentID"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_getGitOpsDetails_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_getImageRegistry_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_getInfraDetails_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["infraID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["infraID"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_getInfraManifest_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["infraID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["infraID"] = arg0
var arg1 bool
if tmp, ok := rawArgs["upgrade"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("upgrade"))
arg1, err = ec.unmarshalNBoolean2bool(ctx, tmp)
if err != nil {
return nil, err
}
}
args["upgrade"] = arg1
var arg2 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg2, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg2
return args, nil
}
func (ec *executionContext) field_Query_getInfraStats_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_getInfra_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["infraID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
arg1, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["infraID"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_getPredefinedExperiment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["hubID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hubID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["hubID"] = arg0
var arg1 []string
if tmp, ok := rawArgs["experimentName"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentName"))
arg1, err = ec.unmarshalNString2ᚕstringᚄ(ctx, tmp)
if err != nil {
return nil, err
}
}
args["experimentName"] = arg1
var arg2 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg2, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg2
return args, nil
}
func (ec *executionContext) field_Query_getProbeReference_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["probeName"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeName"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["probeName"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_getProbeYAML_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 model.GetProbeYAMLRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalNGetProbeYAMLRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbeYAMLRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_getProbe_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["probeName"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeName"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["probeName"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_getProbesInExperimentRun_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["experimentRunID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunID"))
arg1, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["experimentRunID"] = arg1
var arg2 string
if tmp, ok := rawArgs["faultName"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("faultName"))
arg2, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["faultName"] = arg2
return args, nil
}
func (ec *executionContext) field_Query_getVersionDetails_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_listChaosFaults_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["hubID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hubID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["hubID"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_listChaosHub_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 *model.ListChaosHubRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalOListChaosHubRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListChaosHubRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_listEnvironments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 *model.ListEnvironmentRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalOListEnvironmentRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListEnvironmentRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_listExperimentRun_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 model.ListExperimentRunRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalNListExperimentRunRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentRunRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_listExperiment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 model.ListExperimentRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalNListExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_listImageRegistry_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_listInfras_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 *model.ListInfraRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg1, err = ec.unmarshalOListInfraRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListInfraRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_listPredefinedExperiments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["hubID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hubID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["hubID"] = arg0
var arg1 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_listProbes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 *model.InfrastructureType
if tmp, ok := rawArgs["infrastructureType"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infrastructureType"))
arg1, err = ec.unmarshalOInfrastructureType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, tmp)
if err != nil {
return nil, err
}
}
args["infrastructureType"] = arg1
var arg2 []string
if tmp, ok := rawArgs["probeNames"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeNames"))
arg2, err = ec.unmarshalOID2ᚕstringᚄ(ctx, tmp)
if err != nil {
return nil, err
}
}
args["probeNames"] = arg2
var arg3 *model.ProbeFilterInput
if tmp, ok := rawArgs["filter"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
arg3, err = ec.unmarshalOProbeFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeFilterInput(ctx, tmp)
if err != nil {
return nil, err
}
}
args["filter"] = arg3
return args, nil
}
func (ec *executionContext) field_Query_validateUniqueProbe_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
var arg1 string
if tmp, ok := rawArgs["probeName"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeName"))
arg1, err = ec.unmarshalNID2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["probeName"] = arg1
return args, nil
}
func (ec *executionContext) field_Subscription_getInfraEvents_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["projectID"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["projectID"] = arg0
return args, nil
}
func (ec *executionContext) field_Subscription_getKubeNamespace_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.KubeNamespaceRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNKubeNamespaceRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeNamespaceRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
return args, nil
}
func (ec *executionContext) field_Subscription_getKubeObject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.KubeObjectRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNKubeObjectRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObjectRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
return args, nil
}
func (ec *executionContext) field_Subscription_getPodLog_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.PodLogRequest
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNPodLogRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPodLogRequest(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
return args, nil
}
func (ec *executionContext) field_Subscription_infraConnect_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 model.InfraIdentity
if tmp, ok := rawArgs["request"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request"))
arg0, err = ec.unmarshalNInfraIdentity2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx, tmp)
if err != nil {
return nil, err
}
}
args["request"] = arg0
return args, 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{}{}
var arg0 bool
if tmp, ok := rawArgs["includeDeprecated"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
if err != nil {
return nil, err
}
}
args["includeDeprecated"] = arg0
return args, nil
}
func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 bool
if tmp, ok := rawArgs["includeDeprecated"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
if err != nil {
return nil, err
}
}
args["includeDeprecated"] = arg0
return args, nil
}
// endregion ***************************** args.gotpl *****************************
// region ************************** directives.gotpl **************************
// endregion ************************** directives.gotpl **************************
// region **************************** field.gotpl *****************************
func (ec *executionContext) _ActionPayload_requestID(ctx context.Context, field graphql.CollectedField, obj *model.ActionPayload) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ActionPayload_requestID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RequestID, nil
})
if err != nil {
ec.Error(ctx, 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_ActionPayload_requestID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ActionPayload",
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) _ActionPayload_requestType(ctx context.Context, field graphql.CollectedField, obj *model.ActionPayload) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ActionPayload_requestType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RequestType, nil
})
if err != nil {
ec.Error(ctx, 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_ActionPayload_requestType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ActionPayload",
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) _ActionPayload_k8sManifest(ctx context.Context, field graphql.CollectedField, obj *model.ActionPayload) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ActionPayload_k8sManifest(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.K8sManifest, nil
})
if err != nil {
ec.Error(ctx, 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_ActionPayload_k8sManifest(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ActionPayload",
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) _ActionPayload_namespace(ctx context.Context, field graphql.CollectedField, obj *model.ActionPayload) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ActionPayload_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 {
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_ActionPayload_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ActionPayload",
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) _ActionPayload_externalData(ctx context.Context, field graphql.CollectedField, obj *model.ActionPayload) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ActionPayload_externalData(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExternalData, 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_ActionPayload_externalData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ActionPayload",
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) _ActionPayload_username(ctx context.Context, field graphql.CollectedField, obj *model.ActionPayload) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ActionPayload_username(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Username, 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_ActionPayload_username(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ActionPayload",
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) _Annotation_categories(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Annotation_categories(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Categories, nil
})
if err != nil {
ec.Error(ctx, 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_Annotation_categories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Annotation",
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) _Annotation_vendor(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Annotation_vendor(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Vendor, nil
})
if err != nil {
ec.Error(ctx, 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_Annotation_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Annotation",
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) _Annotation_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Annotation_createdAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CreatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_Annotation_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Annotation",
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) _Annotation_repository(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Annotation_repository(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Repository, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Annotation_repository(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Annotation",
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) _Annotation_support(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Annotation_support(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Support, nil
})
if err != nil {
ec.Error(ctx, 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_Annotation_support(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Annotation",
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) _Annotation_chartDescription(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Annotation_chartDescription(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ChartDescription, nil
})
if err != nil {
ec.Error(ctx, 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_Annotation_chartDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Annotation",
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) _ChaosExperimentResponse_experimentID(ctx context.Context, field graphql.CollectedField, obj *model.ChaosExperimentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosExperimentResponse_experimentID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentID, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosExperimentResponse_experimentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosExperimentResponse",
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) _ChaosExperimentResponse_projectID(ctx context.Context, field graphql.CollectedField, obj *model.ChaosExperimentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosExperimentResponse_projectID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProjectID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosExperimentResponse_projectID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosExperimentResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ChaosExperimentResponse_cronSyntax(ctx context.Context, field graphql.CollectedField, obj *model.ChaosExperimentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosExperimentResponse_cronSyntax(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CronSyntax, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosExperimentResponse_cronSyntax(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosExperimentResponse",
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) _ChaosExperimentResponse_experimentName(ctx context.Context, field graphql.CollectedField, obj *model.ChaosExperimentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosExperimentResponse_experimentName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentName, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosExperimentResponse_experimentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosExperimentResponse",
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) _ChaosExperimentResponse_experimentDescription(ctx context.Context, field graphql.CollectedField, obj *model.ChaosExperimentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosExperimentResponse_experimentDescription(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentDescription, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosExperimentResponse_experimentDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosExperimentResponse",
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) _ChaosExperimentResponse_isCustomExperiment(ctx context.Context, field graphql.CollectedField, obj *model.ChaosExperimentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosExperimentResponse_isCustomExperiment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsCustomExperiment, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosExperimentResponse_isCustomExperiment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosExperimentResponse",
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) _ChaosExperimentResponse_tags(ctx context.Context, field graphql.CollectedField, obj *model.ChaosExperimentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosExperimentResponse_tags(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Tags, 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_ChaosExperimentResponse_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosExperimentResponse",
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) _ChaosHub_id(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_id(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHub_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ChaosHub_repoURL(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_repoURL(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RepoURL, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHub_repoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_repoBranch(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_repoBranch(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RepoBranch, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHub_repoBranch(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_remoteHub(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_remoteHub(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RemoteHub, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHub_remoteHub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_projectID(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_projectID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProjectID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHub_projectID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ChaosHub_isDefault(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_isDefault(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsDefault, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHub_isDefault(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_name(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_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_ChaosHub_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_tags(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_tags(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Tags, 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_ChaosHub_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_createdBy(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_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 {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHub_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ChaosHub_updatedBy(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_updatedBy(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedBy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHub_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ChaosHub_description(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHub_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_hubType(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_hubType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.HubType, nil
})
if err != nil {
ec.Error(ctx, 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.HubType)
fc.Result = res
return ec.marshalNHubType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐHubType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHub_hubType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type HubType does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ChaosHub_isPrivate(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_isPrivate(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsPrivate, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHub_isPrivate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_authType(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_authType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.AuthType, nil
})
if err != nil {
ec.Error(ctx, 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.AuthType)
fc.Result = res
return ec.marshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHub_authType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type AuthType does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ChaosHub_token(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_token(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Token, 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_ChaosHub_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_userName(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_userName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UserName, 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_ChaosHub_userName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_password(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_password(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Password, 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_ChaosHub_password(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_sshPrivateKey(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_sshPrivateKey(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.SSHPrivateKey, 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_ChaosHub_sshPrivateKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_isRemoved(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_isRemoved(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsRemoved, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHub_isRemoved(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_createdAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CreatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_ChaosHub_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_updatedAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_ChaosHub_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHub_lastSyncedAt(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHub) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHub_lastSyncedAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.LastSyncedAt, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHub_lastSyncedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHub",
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) _ChaosHubStatus_id(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_id(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHubStatus_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ChaosHubStatus_repoURL(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_repoURL(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RepoURL, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHubStatus_repoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_repoBranch(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_repoBranch(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RepoBranch, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHubStatus_repoBranch(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_remoteHub(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_remoteHub(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RemoteHub, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHubStatus_remoteHub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_isAvailable(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_isAvailable(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsAvailable, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHubStatus_isAvailable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_totalFaults(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_totalFaults(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalFaults, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHubStatus_totalFaults(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_totalExperiments(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_totalExperiments(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalExperiments, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHubStatus_totalExperiments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_name(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_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_ChaosHubStatus_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_hubType(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_hubType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.HubType, nil
})
if err != nil {
ec.Error(ctx, 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.HubType)
fc.Result = res
return ec.marshalNHubType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐHubType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHubStatus_hubType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type HubType does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ChaosHubStatus_isPrivate(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_isPrivate(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsPrivate, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHubStatus_isPrivate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_authType(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_authType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.AuthType, nil
})
if err != nil {
ec.Error(ctx, 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.AuthType)
fc.Result = res
return ec.marshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHubStatus_authType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type AuthType does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ChaosHubStatus_token(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_token(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Token, 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_ChaosHubStatus_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_userName(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_userName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UserName, 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_ChaosHubStatus_userName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_password(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_password(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Password, 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_ChaosHubStatus_password(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_isRemoved(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_isRemoved(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsRemoved, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHubStatus_isRemoved(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_sshPrivateKey(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_sshPrivateKey(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.SSHPrivateKey, 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_ChaosHubStatus_sshPrivateKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_sshPublicKey(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_sshPublicKey(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.SSHPublicKey, 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_ChaosHubStatus_sshPublicKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_lastSyncedAt(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_lastSyncedAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.LastSyncedAt, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHubStatus_lastSyncedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_tags(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_tags(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Tags, 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_ChaosHubStatus_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_createdBy(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_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 {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHubStatus_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ChaosHubStatus_updatedBy(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_updatedBy(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedBy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHubStatus_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ChaosHubStatus_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_createdAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CreatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_ChaosHubStatus_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_updatedAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_ChaosHubStatus_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_description(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ChaosHubStatus_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _ChaosHubStatus_isDefault(ctx context.Context, field graphql.CollectedField, obj *model.ChaosHubStatus) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ChaosHubStatus_isDefault(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsDefault, nil
})
if err != nil {
ec.Error(ctx, 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_ChaosHubStatus_isDefault(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ChaosHubStatus",
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) _Chart_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.Chart) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Chart_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 {
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_Chart_apiVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Chart",
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) _Chart_kind(ctx context.Context, field graphql.CollectedField, obj *model.Chart) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Chart_kind(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Kind, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Chart_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Chart",
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) _Chart_metadata(ctx context.Context, field graphql.CollectedField, obj *model.Chart) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Chart_metadata(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Metadata, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.Metadata)
fc.Result = res
return ec.marshalNMetadata2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMetadata(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Chart_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Chart",
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_Metadata_name(ctx, field)
case "version":
return ec.fieldContext_Metadata_version(ctx, field)
case "annotations":
return ec.fieldContext_Metadata_annotations(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Metadata", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Chart_spec(ctx context.Context, field graphql.CollectedField, obj *model.Chart) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Chart_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 obj.Spec, nil
})
if err != nil {
ec.Error(ctx, 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.Spec)
fc.Result = res
return ec.marshalNSpec2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐSpec(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Chart_spec(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Chart",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "displayName":
return ec.fieldContext_Spec_displayName(ctx, field)
case "categoryDescription":
return ec.fieldContext_Spec_categoryDescription(ctx, field)
case "keywords":
return ec.fieldContext_Spec_keywords(ctx, field)
case "maturity":
return ec.fieldContext_Spec_maturity(ctx, field)
case "maintainers":
return ec.fieldContext_Spec_maintainers(ctx, field)
case "minKubeVersion":
return ec.fieldContext_Spec_minKubeVersion(ctx, field)
case "provider":
return ec.fieldContext_Spec_provider(ctx, field)
case "links":
return ec.fieldContext_Spec_links(ctx, field)
case "faults":
return ec.fieldContext_Spec_faults(ctx, field)
case "experiments":
return ec.fieldContext_Spec_experiments(ctx, field)
case "chaosExpCRDLink":
return ec.fieldContext_Spec_chaosExpCRDLink(ctx, field)
case "platforms":
return ec.fieldContext_Spec_platforms(ctx, field)
case "chaosType":
return ec.fieldContext_Spec_chaosType(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Spec", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Chart_packageInfo(ctx context.Context, field graphql.CollectedField, obj *model.Chart) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Chart_packageInfo(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.PackageInfo, nil
})
if err != nil {
ec.Error(ctx, 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.PackageInformation)
fc.Result = res
return ec.marshalNPackageInformation2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPackageInformation(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Chart_packageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Chart",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "packageName":
return ec.fieldContext_PackageInformation_packageName(ctx, field)
case "experiments":
return ec.fieldContext_PackageInformation_experiments(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type PackageInformation", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Comparator_type(ctx context.Context, field graphql.CollectedField, obj *model.Comparator) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Comparator_type(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Type, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Comparator_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Comparator",
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) _Comparator_value(ctx context.Context, field graphql.CollectedField, obj *model.Comparator) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Comparator_value(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Value, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_Comparator_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Comparator",
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) _Comparator_criteria(ctx context.Context, field graphql.CollectedField, obj *model.Comparator) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Comparator_criteria(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Criteria, nil
})
if err != nil {
ec.Error(ctx, 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_Comparator_criteria(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Comparator",
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) _ConfirmInfraRegistrationResponse_isInfraConfirmed(ctx context.Context, field graphql.CollectedField, obj *model.ConfirmInfraRegistrationResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ConfirmInfraRegistrationResponse_isInfraConfirmed(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsInfraConfirmed, nil
})
if err != nil {
ec.Error(ctx, 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_ConfirmInfraRegistrationResponse_isInfraConfirmed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ConfirmInfraRegistrationResponse",
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) _ConfirmInfraRegistrationResponse_newAccessKey(ctx context.Context, field graphql.CollectedField, obj *model.ConfirmInfraRegistrationResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ConfirmInfraRegistrationResponse_newAccessKey(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.NewAccessKey, 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_ConfirmInfraRegistrationResponse_newAccessKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ConfirmInfraRegistrationResponse",
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) _ConfirmInfraRegistrationResponse_infraID(ctx context.Context, field graphql.CollectedField, obj *model.ConfirmInfraRegistrationResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ConfirmInfraRegistrationResponse_infraID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InfraID, 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_ConfirmInfraRegistrationResponse_infraID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ConfirmInfraRegistrationResponse",
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) _Environment_projectID(ctx context.Context, field graphql.CollectedField, obj *model.Environment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Environment_projectID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProjectID, nil
})
if err != nil {
ec.Error(ctx, 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_Environment_projectID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Environment",
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) _Environment_environmentID(ctx context.Context, field graphql.CollectedField, obj *model.Environment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Environment_environmentID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EnvironmentID, nil
})
if err != nil {
ec.Error(ctx, 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_Environment_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Environment",
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) _Environment_name(ctx context.Context, field graphql.CollectedField, obj *model.Environment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Environment_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_Environment_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Environment",
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) _Environment_description(ctx context.Context, field graphql.CollectedField, obj *model.Environment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Environment_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Environment_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Environment",
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) _Environment_tags(ctx context.Context, field graphql.CollectedField, obj *model.Environment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Environment_tags(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Tags, 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_Environment_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Environment",
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) _Environment_type(ctx context.Context, field graphql.CollectedField, obj *model.Environment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Environment_type(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Type, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(model.EnvironmentType)
fc.Result = res
return ec.marshalNEnvironmentType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Environment_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Environment",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type EnvironmentType does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _Environment_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.Environment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Environment_createdAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CreatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_Environment_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Environment",
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) _Environment_createdBy(ctx context.Context, field graphql.CollectedField, obj *model.Environment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Environment_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 {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Environment_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Environment",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Environment_updatedBy(ctx context.Context, field graphql.CollectedField, obj *model.Environment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Environment_updatedBy(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedBy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Environment_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Environment",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Environment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.Environment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Environment_updatedAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_Environment_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Environment",
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) _Environment_isRemoved(ctx context.Context, field graphql.CollectedField, obj *model.Environment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Environment_isRemoved(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsRemoved, 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_Environment_isRemoved(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Environment",
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) _Environment_infraIDs(ctx context.Context, field graphql.CollectedField, obj *model.Environment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Environment_infraIDs(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InfraIDs, 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_Environment_infraIDs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Environment",
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) _ExecutedByExperiment_experimentID(ctx context.Context, field graphql.CollectedField, obj *model.ExecutedByExperiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExecutedByExperiment_experimentID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentID, nil
})
if err != nil {
ec.Error(ctx, 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_ExecutedByExperiment_experimentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExecutedByExperiment",
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) _ExecutedByExperiment_experimentName(ctx context.Context, field graphql.CollectedField, obj *model.ExecutedByExperiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExecutedByExperiment_experimentName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentName, nil
})
if err != nil {
ec.Error(ctx, 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_ExecutedByExperiment_experimentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExecutedByExperiment",
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) _ExecutedByExperiment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.ExecutedByExperiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExecutedByExperiment_updatedAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_ExecutedByExperiment_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExecutedByExperiment",
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) _ExecutedByExperiment_updatedBy(ctx context.Context, field graphql.CollectedField, obj *model.ExecutedByExperiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExecutedByExperiment_updatedBy(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedBy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExecutedByExperiment_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExecutedByExperiment",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ExecutionHistory_mode(ctx context.Context, field graphql.CollectedField, obj *model.ExecutionHistory) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExecutionHistory_mode(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Mode, nil
})
if err != nil {
ec.Error(ctx, 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.Mode)
fc.Result = res
return ec.marshalNMode2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMode(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExecutionHistory_mode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExecutionHistory",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Mode does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ExecutionHistory_faultName(ctx context.Context, field graphql.CollectedField, obj *model.ExecutionHistory) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExecutionHistory_faultName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FaultName, nil
})
if err != nil {
ec.Error(ctx, 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_ExecutionHistory_faultName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExecutionHistory",
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) _ExecutionHistory_status(ctx context.Context, field graphql.CollectedField, obj *model.ExecutionHistory) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExecutionHistory_status(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Status, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.Status)
fc.Result = res
return ec.marshalNStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐStatus(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExecutionHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExecutionHistory",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "verdict":
return ec.fieldContext_Status_verdict(ctx, field)
case "description":
return ec.fieldContext_Status_description(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Status", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ExecutionHistory_executedByExperiment(ctx context.Context, field graphql.CollectedField, obj *model.ExecutionHistory) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExecutionHistory_executedByExperiment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExecutedByExperiment, nil
})
if err != nil {
ec.Error(ctx, 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.ExecutedByExperiment)
fc.Result = res
return ec.marshalNExecutedByExperiment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExecutedByExperiment(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExecutionHistory_executedByExperiment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExecutionHistory",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "experimentID":
return ec.fieldContext_ExecutedByExperiment_experimentID(ctx, field)
case "experimentName":
return ec.fieldContext_ExecutedByExperiment_experimentName(ctx, field)
case "updatedAt":
return ec.fieldContext_ExecutedByExperiment_updatedAt(ctx, field)
case "updatedBy":
return ec.fieldContext_ExecutedByExperiment_updatedBy(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ExecutedByExperiment", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Experiment_projectID(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_projectID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProjectID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Experiment_projectID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _Experiment_experimentID(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_experimentID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentID, nil
})
if err != nil {
ec.Error(ctx, 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_Experiment_experimentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
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) _Experiment_experimentType(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_experimentType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentType, 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_Experiment_experimentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
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) _Experiment_experimentManifest(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_experimentManifest(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentManifest, nil
})
if err != nil {
ec.Error(ctx, 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_Experiment_experimentManifest(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
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) _Experiment_cronSyntax(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_cronSyntax(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CronSyntax, nil
})
if err != nil {
ec.Error(ctx, 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_Experiment_cronSyntax(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
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) _Experiment_name(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_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_Experiment_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
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) _Experiment_description(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_Experiment_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
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) _Experiment_weightages(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_weightages(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Weightages, nil
})
if err != nil {
ec.Error(ctx, 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.Weightages)
fc.Result = res
return ec.marshalNWeightages2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Experiment_weightages(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "faultName":
return ec.fieldContext_Weightages_faultName(ctx, field)
case "weightage":
return ec.fieldContext_Weightages_weightage(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Weightages", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Experiment_isCustomExperiment(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_isCustomExperiment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsCustomExperiment, nil
})
if err != nil {
ec.Error(ctx, 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_Experiment_isCustomExperiment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
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) _Experiment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_updatedAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_Experiment_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
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) _Experiment_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_createdAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CreatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_Experiment_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
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) _Experiment_infra(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_infra(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Infra, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.Infra)
fc.Result = res
return ec.marshalOInfra2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Experiment_infra(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "projectID":
return ec.fieldContext_Infra_projectID(ctx, field)
case "infraID":
return ec.fieldContext_Infra_infraID(ctx, field)
case "name":
return ec.fieldContext_Infra_name(ctx, field)
case "description":
return ec.fieldContext_Infra_description(ctx, field)
case "tags":
return ec.fieldContext_Infra_tags(ctx, field)
case "environmentID":
return ec.fieldContext_Infra_environmentID(ctx, field)
case "platformName":
return ec.fieldContext_Infra_platformName(ctx, field)
case "isActive":
return ec.fieldContext_Infra_isActive(ctx, field)
case "isInfraConfirmed":
return ec.fieldContext_Infra_isInfraConfirmed(ctx, field)
case "isRemoved":
return ec.fieldContext_Infra_isRemoved(ctx, field)
case "updatedAt":
return ec.fieldContext_Infra_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_Infra_createdAt(ctx, field)
case "noOfExperiments":
return ec.fieldContext_Infra_noOfExperiments(ctx, field)
case "noOfExperimentRuns":
return ec.fieldContext_Infra_noOfExperimentRuns(ctx, field)
case "token":
return ec.fieldContext_Infra_token(ctx, field)
case "infraNamespace":
return ec.fieldContext_Infra_infraNamespace(ctx, field)
case "serviceAccount":
return ec.fieldContext_Infra_serviceAccount(ctx, field)
case "infraScope":
return ec.fieldContext_Infra_infraScope(ctx, field)
case "infraNsExists":
return ec.fieldContext_Infra_infraNsExists(ctx, field)
case "infraSaExists":
return ec.fieldContext_Infra_infraSaExists(ctx, field)
case "lastExperimentTimestamp":
return ec.fieldContext_Infra_lastExperimentTimestamp(ctx, field)
case "startTime":
return ec.fieldContext_Infra_startTime(ctx, field)
case "version":
return ec.fieldContext_Infra_version(ctx, field)
case "createdBy":
return ec.fieldContext_Infra_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_Infra_updatedBy(ctx, field)
case "infraType":
return ec.fieldContext_Infra_infraType(ctx, field)
case "updateStatus":
return ec.fieldContext_Infra_updateStatus(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Infra", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Experiment_isRemoved(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_isRemoved(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsRemoved, nil
})
if err != nil {
ec.Error(ctx, 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_Experiment_isRemoved(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
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) _Experiment_tags(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_tags(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Tags, 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_Experiment_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
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) _Experiment_createdBy(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_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 {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Experiment_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Experiment_recentExperimentRunDetails(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_recentExperimentRunDetails(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RecentExperimentRunDetails, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]*model.RecentExperimentRun)
fc.Result = res
return ec.marshalORecentExperimentRun2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRecentExperimentRun(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Experiment_recentExperimentRunDetails(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "experimentRunID":
return ec.fieldContext_RecentExperimentRun_experimentRunID(ctx, field)
case "phase":
return ec.fieldContext_RecentExperimentRun_phase(ctx, field)
case "resiliencyScore":
return ec.fieldContext_RecentExperimentRun_resiliencyScore(ctx, field)
case "updatedAt":
return ec.fieldContext_RecentExperimentRun_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_RecentExperimentRun_createdAt(ctx, field)
case "createdBy":
return ec.fieldContext_RecentExperimentRun_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_RecentExperimentRun_updatedBy(ctx, field)
case "runSequence":
return ec.fieldContext_RecentExperimentRun_runSequence(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type RecentExperimentRun", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Experiment_updatedBy(ctx context.Context, field graphql.CollectedField, obj *model.Experiment) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiment_updatedBy(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedBy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Experiment_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiment",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ExperimentDetails_engineDetails(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentDetails) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentDetails_engineDetails(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EngineDetails, nil
})
if err != nil {
ec.Error(ctx, 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_ExperimentDetails_engineDetails(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentDetails",
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) _ExperimentDetails_experimentDetails(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentDetails) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentDetails_experimentDetails(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentDetails, nil
})
if err != nil {
ec.Error(ctx, 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_ExperimentDetails_experimentDetails(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentDetails",
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) _ExperimentRun_projectID(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_projectID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProjectID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_projectID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ExperimentRun_experimentRunID(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_experimentRunID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentRunID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_experimentRunID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ExperimentRun_experimentType(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_experimentType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentType, 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_ExperimentRun_experimentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_experimentID(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_experimentID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_experimentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ExperimentRun_weightages(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_weightages(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Weightages, nil
})
if err != nil {
ec.Error(ctx, 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.Weightages)
fc.Result = res
return ec.marshalNWeightages2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_weightages(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "faultName":
return ec.fieldContext_Weightages_faultName(ctx, field)
case "weightage":
return ec.fieldContext_Weightages_weightage(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Weightages", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ExperimentRun_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_updatedAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_ExperimentRun_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_createdAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CreatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_ExperimentRun_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_infra(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_infra(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Infra, nil
})
if err != nil {
ec.Error(ctx, 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.Infra)
fc.Result = res
return ec.marshalNInfra2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_infra(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "projectID":
return ec.fieldContext_Infra_projectID(ctx, field)
case "infraID":
return ec.fieldContext_Infra_infraID(ctx, field)
case "name":
return ec.fieldContext_Infra_name(ctx, field)
case "description":
return ec.fieldContext_Infra_description(ctx, field)
case "tags":
return ec.fieldContext_Infra_tags(ctx, field)
case "environmentID":
return ec.fieldContext_Infra_environmentID(ctx, field)
case "platformName":
return ec.fieldContext_Infra_platformName(ctx, field)
case "isActive":
return ec.fieldContext_Infra_isActive(ctx, field)
case "isInfraConfirmed":
return ec.fieldContext_Infra_isInfraConfirmed(ctx, field)
case "isRemoved":
return ec.fieldContext_Infra_isRemoved(ctx, field)
case "updatedAt":
return ec.fieldContext_Infra_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_Infra_createdAt(ctx, field)
case "noOfExperiments":
return ec.fieldContext_Infra_noOfExperiments(ctx, field)
case "noOfExperimentRuns":
return ec.fieldContext_Infra_noOfExperimentRuns(ctx, field)
case "token":
return ec.fieldContext_Infra_token(ctx, field)
case "infraNamespace":
return ec.fieldContext_Infra_infraNamespace(ctx, field)
case "serviceAccount":
return ec.fieldContext_Infra_serviceAccount(ctx, field)
case "infraScope":
return ec.fieldContext_Infra_infraScope(ctx, field)
case "infraNsExists":
return ec.fieldContext_Infra_infraNsExists(ctx, field)
case "infraSaExists":
return ec.fieldContext_Infra_infraSaExists(ctx, field)
case "lastExperimentTimestamp":
return ec.fieldContext_Infra_lastExperimentTimestamp(ctx, field)
case "startTime":
return ec.fieldContext_Infra_startTime(ctx, field)
case "version":
return ec.fieldContext_Infra_version(ctx, field)
case "createdBy":
return ec.fieldContext_Infra_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_Infra_updatedBy(ctx, field)
case "infraType":
return ec.fieldContext_Infra_infraType(ctx, field)
case "updateStatus":
return ec.fieldContext_Infra_updateStatus(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Infra", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ExperimentRun_experimentName(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_experimentName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentName, nil
})
if err != nil {
ec.Error(ctx, 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_ExperimentRun_experimentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_experimentManifest(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_experimentManifest(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentManifest, nil
})
if err != nil {
ec.Error(ctx, 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_ExperimentRun_experimentManifest(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_phase(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_phase(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
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.(model.ExperimentRunStatus)
fc.Result = res
return ec.marshalNExperimentRunStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunStatus(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_phase(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ExperimentRunStatus does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ExperimentRun_resiliencyScore(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_resiliencyScore(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ResiliencyScore, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*float64)
fc.Result = res
return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_resiliencyScore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Float does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ExperimentRun_faultsPassed(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_faultsPassed(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FaultsPassed, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_faultsPassed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_faultsFailed(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_faultsFailed(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FaultsFailed, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_faultsFailed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_faultsAwaited(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_faultsAwaited(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FaultsAwaited, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_faultsAwaited(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_faultsStopped(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_faultsStopped(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FaultsStopped, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_faultsStopped(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_faultsNa(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_faultsNa(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FaultsNa, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_faultsNa(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_totalFaults(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_totalFaults(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalFaults, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_totalFaults(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_executionData(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_executionData(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExecutionData, nil
})
if err != nil {
ec.Error(ctx, 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_ExperimentRun_executionData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_isRemoved(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_isRemoved(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsRemoved, 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_ExperimentRun_isRemoved(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _ExperimentRun_updatedBy(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_updatedBy(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedBy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ExperimentRun_createdBy(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_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 {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ExperimentRun_notifyID(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_notifyID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.NotifyID, 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.marshalOID2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ExperimentRun_notifyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _ExperimentRun_runSequence(ctx context.Context, field graphql.CollectedField, obj *model.ExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ExperimentRun_runSequence(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RunSequence, nil
})
if err != nil {
ec.Error(ctx, 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_ExperimentRun_runSequence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ExperimentRun",
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) _Experiments_name(ctx context.Context, field graphql.CollectedField, obj *model.Experiments) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiments_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_Experiments_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiments",
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) _Experiments_CSV(ctx context.Context, field graphql.CollectedField, obj *model.Experiments) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiments_CSV(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CSV, nil
})
if err != nil {
ec.Error(ctx, 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_Experiments_CSV(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiments",
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) _Experiments_desc(ctx context.Context, field graphql.CollectedField, obj *model.Experiments) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Experiments_desc(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Desc, nil
})
if err != nil {
ec.Error(ctx, 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_Experiments_desc(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Experiments",
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) _FaultDetails_fault(ctx context.Context, field graphql.CollectedField, obj *model.FaultDetails) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_FaultDetails_fault(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Fault, nil
})
if err != nil {
ec.Error(ctx, 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_FaultDetails_fault(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "FaultDetails",
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) _FaultDetails_engine(ctx context.Context, field graphql.CollectedField, obj *model.FaultDetails) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_FaultDetails_engine(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Engine, nil
})
if err != nil {
ec.Error(ctx, 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_FaultDetails_engine(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "FaultDetails",
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) _FaultDetails_csv(ctx context.Context, field graphql.CollectedField, obj *model.FaultDetails) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_FaultDetails_csv(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CSV, nil
})
if err != nil {
ec.Error(ctx, 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_FaultDetails_csv(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "FaultDetails",
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) _FaultList_name(ctx context.Context, field graphql.CollectedField, obj *model.FaultList) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_FaultList_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_FaultList_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "FaultList",
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) _FaultList_displayName(ctx context.Context, field graphql.CollectedField, obj *model.FaultList) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_FaultList_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_FaultList_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "FaultList",
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) _FaultList_description(ctx context.Context, field graphql.CollectedField, obj *model.FaultList) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_FaultList_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_FaultList_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "FaultList",
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) _FaultList_plan(ctx context.Context, field graphql.CollectedField, obj *model.FaultList) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_FaultList_plan(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Plan, 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_FaultList_plan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "FaultList",
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) _GET_criteria(ctx context.Context, field graphql.CollectedField, obj *model.Get) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GET_criteria(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Criteria, nil
})
if err != nil {
ec.Error(ctx, 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_GET_criteria(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GET",
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) _GET_responseCode(ctx context.Context, field graphql.CollectedField, obj *model.Get) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GET_responseCode(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ResponseCode, nil
})
if err != nil {
ec.Error(ctx, 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_GET_responseCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GET",
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) _GetChaosHubStatsResponse_totalChaosHubs(ctx context.Context, field graphql.CollectedField, obj *model.GetChaosHubStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetChaosHubStatsResponse_totalChaosHubs(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalChaosHubs, nil
})
if err != nil {
ec.Error(ctx, 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_GetChaosHubStatsResponse_totalChaosHubs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetChaosHubStatsResponse",
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) _GetExperimentResponse_experimentDetails(ctx context.Context, field graphql.CollectedField, obj *model.GetExperimentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetExperimentResponse_experimentDetails(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentDetails, nil
})
if err != nil {
ec.Error(ctx, 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.Experiment)
fc.Result = res
return ec.marshalNExperiment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiment(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_GetExperimentResponse_experimentDetails(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetExperimentResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "projectID":
return ec.fieldContext_Experiment_projectID(ctx, field)
case "experimentID":
return ec.fieldContext_Experiment_experimentID(ctx, field)
case "experimentType":
return ec.fieldContext_Experiment_experimentType(ctx, field)
case "experimentManifest":
return ec.fieldContext_Experiment_experimentManifest(ctx, field)
case "cronSyntax":
return ec.fieldContext_Experiment_cronSyntax(ctx, field)
case "name":
return ec.fieldContext_Experiment_name(ctx, field)
case "description":
return ec.fieldContext_Experiment_description(ctx, field)
case "weightages":
return ec.fieldContext_Experiment_weightages(ctx, field)
case "isCustomExperiment":
return ec.fieldContext_Experiment_isCustomExperiment(ctx, field)
case "updatedAt":
return ec.fieldContext_Experiment_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_Experiment_createdAt(ctx, field)
case "infra":
return ec.fieldContext_Experiment_infra(ctx, field)
case "isRemoved":
return ec.fieldContext_Experiment_isRemoved(ctx, field)
case "tags":
return ec.fieldContext_Experiment_tags(ctx, field)
case "createdBy":
return ec.fieldContext_Experiment_createdBy(ctx, field)
case "recentExperimentRunDetails":
return ec.fieldContext_Experiment_recentExperimentRunDetails(ctx, field)
case "updatedBy":
return ec.fieldContext_Experiment_updatedBy(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Experiment", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _GetExperimentResponse_averageResiliencyScore(ctx context.Context, field graphql.CollectedField, obj *model.GetExperimentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetExperimentResponse_averageResiliencyScore(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.AverageResiliencyScore, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*float64)
fc.Result = res
return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_GetExperimentResponse_averageResiliencyScore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetExperimentResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Float does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _GetExperimentRunStatsResponse_totalExperimentRuns(ctx context.Context, field graphql.CollectedField, obj *model.GetExperimentRunStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetExperimentRunStatsResponse_totalExperimentRuns(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalExperimentRuns, nil
})
if err != nil {
ec.Error(ctx, 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_GetExperimentRunStatsResponse_totalExperimentRuns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetExperimentRunStatsResponse",
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) _GetExperimentRunStatsResponse_totalCompletedExperimentRuns(ctx context.Context, field graphql.CollectedField, obj *model.GetExperimentRunStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetExperimentRunStatsResponse_totalCompletedExperimentRuns(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalCompletedExperimentRuns, nil
})
if err != nil {
ec.Error(ctx, 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_GetExperimentRunStatsResponse_totalCompletedExperimentRuns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetExperimentRunStatsResponse",
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) _GetExperimentRunStatsResponse_totalTerminatedExperimentRuns(ctx context.Context, field graphql.CollectedField, obj *model.GetExperimentRunStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetExperimentRunStatsResponse_totalTerminatedExperimentRuns(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalTerminatedExperimentRuns, nil
})
if err != nil {
ec.Error(ctx, 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_GetExperimentRunStatsResponse_totalTerminatedExperimentRuns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetExperimentRunStatsResponse",
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) _GetExperimentRunStatsResponse_totalRunningExperimentRuns(ctx context.Context, field graphql.CollectedField, obj *model.GetExperimentRunStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetExperimentRunStatsResponse_totalRunningExperimentRuns(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalRunningExperimentRuns, nil
})
if err != nil {
ec.Error(ctx, 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_GetExperimentRunStatsResponse_totalRunningExperimentRuns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetExperimentRunStatsResponse",
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) _GetExperimentRunStatsResponse_totalStoppedExperimentRuns(ctx context.Context, field graphql.CollectedField, obj *model.GetExperimentRunStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetExperimentRunStatsResponse_totalStoppedExperimentRuns(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalStoppedExperimentRuns, nil
})
if err != nil {
ec.Error(ctx, 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_GetExperimentRunStatsResponse_totalStoppedExperimentRuns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetExperimentRunStatsResponse",
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) _GetExperimentRunStatsResponse_totalErroredExperimentRuns(ctx context.Context, field graphql.CollectedField, obj *model.GetExperimentRunStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetExperimentRunStatsResponse_totalErroredExperimentRuns(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalErroredExperimentRuns, nil
})
if err != nil {
ec.Error(ctx, 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_GetExperimentRunStatsResponse_totalErroredExperimentRuns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetExperimentRunStatsResponse",
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) _GetExperimentStatsResponse_totalExperiments(ctx context.Context, field graphql.CollectedField, obj *model.GetExperimentStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetExperimentStatsResponse_totalExperiments(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalExperiments, nil
})
if err != nil {
ec.Error(ctx, 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_GetExperimentStatsResponse_totalExperiments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetExperimentStatsResponse",
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) _GetExperimentStatsResponse_totalExpCategorizedByResiliencyScore(ctx context.Context, field graphql.CollectedField, obj *model.GetExperimentStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetExperimentStatsResponse_totalExpCategorizedByResiliencyScore(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalExpCategorizedByResiliencyScore, nil
})
if err != nil {
ec.Error(ctx, 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.ResilienceScoreCategory)
fc.Result = res
return ec.marshalNResilienceScoreCategory2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐResilienceScoreCategory(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_GetExperimentStatsResponse_totalExpCategorizedByResiliencyScore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetExperimentStatsResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
return ec.fieldContext_ResilienceScoreCategory_id(ctx, field)
case "count":
return ec.fieldContext_ResilienceScoreCategory_count(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ResilienceScoreCategory", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _GetInfraStatsResponse_totalInfrastructures(ctx context.Context, field graphql.CollectedField, obj *model.GetInfraStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetInfraStatsResponse_totalInfrastructures(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalInfrastructures, nil
})
if err != nil {
ec.Error(ctx, 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_GetInfraStatsResponse_totalInfrastructures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetInfraStatsResponse",
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) _GetInfraStatsResponse_totalActiveInfrastructure(ctx context.Context, field graphql.CollectedField, obj *model.GetInfraStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetInfraStatsResponse_totalActiveInfrastructure(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalActiveInfrastructure, nil
})
if err != nil {
ec.Error(ctx, 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_GetInfraStatsResponse_totalActiveInfrastructure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetInfraStatsResponse",
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) _GetInfraStatsResponse_totalInactiveInfrastructures(ctx context.Context, field graphql.CollectedField, obj *model.GetInfraStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetInfraStatsResponse_totalInactiveInfrastructures(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalInactiveInfrastructures, nil
})
if err != nil {
ec.Error(ctx, 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_GetInfraStatsResponse_totalInactiveInfrastructures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetInfraStatsResponse",
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) _GetInfraStatsResponse_totalConfirmedInfrastructure(ctx context.Context, field graphql.CollectedField, obj *model.GetInfraStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetInfraStatsResponse_totalConfirmedInfrastructure(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalConfirmedInfrastructure, nil
})
if err != nil {
ec.Error(ctx, 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_GetInfraStatsResponse_totalConfirmedInfrastructure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetInfraStatsResponse",
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) _GetInfraStatsResponse_totalNonConfirmedInfrastructures(ctx context.Context, field graphql.CollectedField, obj *model.GetInfraStatsResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetInfraStatsResponse_totalNonConfirmedInfrastructures(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalNonConfirmedInfrastructures, nil
})
if err != nil {
ec.Error(ctx, 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_GetInfraStatsResponse_totalNonConfirmedInfrastructures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetInfraStatsResponse",
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) _GetProbeReferenceResponse_projectID(ctx context.Context, field graphql.CollectedField, obj *model.GetProbeReferenceResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetProbeReferenceResponse_projectID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProjectID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_GetProbeReferenceResponse_projectID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetProbeReferenceResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _GetProbeReferenceResponse_name(ctx context.Context, field graphql.CollectedField, obj *model.GetProbeReferenceResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetProbeReferenceResponse_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_GetProbeReferenceResponse_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetProbeReferenceResponse",
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) _GetProbeReferenceResponse_totalRuns(ctx context.Context, field graphql.CollectedField, obj *model.GetProbeReferenceResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetProbeReferenceResponse_totalRuns(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalRuns, nil
})
if err != nil {
ec.Error(ctx, 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_GetProbeReferenceResponse_totalRuns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetProbeReferenceResponse",
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) _GetProbeReferenceResponse_recentExecutions(ctx context.Context, field graphql.CollectedField, obj *model.GetProbeReferenceResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetProbeReferenceResponse_recentExecutions(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RecentExecutions, nil
})
if err != nil {
ec.Error(ctx, 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.RecentExecutions)
fc.Result = res
return ec.marshalNRecentExecutions2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRecentExecutions(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_GetProbeReferenceResponse_recentExecutions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetProbeReferenceResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "faultName":
return ec.fieldContext_RecentExecutions_faultName(ctx, field)
case "mode":
return ec.fieldContext_RecentExecutions_mode(ctx, field)
case "executionHistory":
return ec.fieldContext_RecentExecutions_executionHistory(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type RecentExecutions", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _GetProbesInExperimentRunResponse_probe(ctx context.Context, field graphql.CollectedField, obj *model.GetProbesInExperimentRunResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetProbesInExperimentRunResponse_probe(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Probe, nil
})
if err != nil {
ec.Error(ctx, 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.Probe)
fc.Result = res
return ec.marshalNProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbe(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_GetProbesInExperimentRunResponse_probe(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetProbesInExperimentRunResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "projectID":
return ec.fieldContext_Probe_projectID(ctx, field)
case "name":
return ec.fieldContext_Probe_name(ctx, field)
case "description":
return ec.fieldContext_Probe_description(ctx, field)
case "tags":
return ec.fieldContext_Probe_tags(ctx, field)
case "type":
return ec.fieldContext_Probe_type(ctx, field)
case "infrastructureType":
return ec.fieldContext_Probe_infrastructureType(ctx, field)
case "kubernetesHTTPProperties":
return ec.fieldContext_Probe_kubernetesHTTPProperties(ctx, field)
case "kubernetesCMDProperties":
return ec.fieldContext_Probe_kubernetesCMDProperties(ctx, field)
case "k8sProperties":
return ec.fieldContext_Probe_k8sProperties(ctx, field)
case "promProperties":
return ec.fieldContext_Probe_promProperties(ctx, field)
case "recentExecutions":
return ec.fieldContext_Probe_recentExecutions(ctx, field)
case "referencedBy":
return ec.fieldContext_Probe_referencedBy(ctx, field)
case "updatedAt":
return ec.fieldContext_Probe_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_Probe_createdAt(ctx, field)
case "updatedBy":
return ec.fieldContext_Probe_updatedBy(ctx, field)
case "createdBy":
return ec.fieldContext_Probe_createdBy(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Probe", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _GetProbesInExperimentRunResponse_mode(ctx context.Context, field graphql.CollectedField, obj *model.GetProbesInExperimentRunResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetProbesInExperimentRunResponse_mode(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Mode, nil
})
if err != nil {
ec.Error(ctx, 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.Mode)
fc.Result = res
return ec.marshalNMode2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMode(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_GetProbesInExperimentRunResponse_mode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetProbesInExperimentRunResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Mode does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _GetProbesInExperimentRunResponse_status(ctx context.Context, field graphql.CollectedField, obj *model.GetProbesInExperimentRunResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GetProbesInExperimentRunResponse_status(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Status, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.Status)
fc.Result = res
return ec.marshalNStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐStatus(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_GetProbesInExperimentRunResponse_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GetProbesInExperimentRunResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "verdict":
return ec.fieldContext_Status_verdict(ctx, field)
case "description":
return ec.fieldContext_Status_description(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Status", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _GitConfigResponse_enabled(ctx context.Context, field graphql.CollectedField, obj *model.GitConfigResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GitConfigResponse_enabled(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
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.(bool)
fc.Result = res
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_GitConfigResponse_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GitConfigResponse",
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) _GitConfigResponse_projectID(ctx context.Context, field graphql.CollectedField, obj *model.GitConfigResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GitConfigResponse_projectID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProjectID, nil
})
if err != nil {
ec.Error(ctx, 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_GitConfigResponse_projectID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GitConfigResponse",
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) _GitConfigResponse_branch(ctx context.Context, field graphql.CollectedField, obj *model.GitConfigResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GitConfigResponse_branch(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Branch, 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_GitConfigResponse_branch(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GitConfigResponse",
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) _GitConfigResponse_repoURL(ctx context.Context, field graphql.CollectedField, obj *model.GitConfigResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GitConfigResponse_repoURL(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RepoURL, 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_GitConfigResponse_repoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GitConfigResponse",
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) _GitConfigResponse_authType(ctx context.Context, field graphql.CollectedField, obj *model.GitConfigResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GitConfigResponse_authType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.AuthType, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.AuthType)
fc.Result = res
return ec.marshalOAuthType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_GitConfigResponse_authType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GitConfigResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type AuthType does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _GitConfigResponse_token(ctx context.Context, field graphql.CollectedField, obj *model.GitConfigResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GitConfigResponse_token(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Token, 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_GitConfigResponse_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GitConfigResponse",
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) _GitConfigResponse_userName(ctx context.Context, field graphql.CollectedField, obj *model.GitConfigResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GitConfigResponse_userName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UserName, 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_GitConfigResponse_userName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GitConfigResponse",
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) _GitConfigResponse_password(ctx context.Context, field graphql.CollectedField, obj *model.GitConfigResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GitConfigResponse_password(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Password, 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_GitConfigResponse_password(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GitConfigResponse",
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) _GitConfigResponse_sshPrivateKey(ctx context.Context, field graphql.CollectedField, obj *model.GitConfigResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_GitConfigResponse_sshPrivateKey(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.SSHPrivateKey, 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_GitConfigResponse_sshPrivateKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "GitConfigResponse",
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) _ImageRegistry_isDefault(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistry) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistry_isDefault(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsDefault, 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_ImageRegistry_isDefault(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistry",
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) _ImageRegistry_imageRegistryName(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistry) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistry_imageRegistryName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ImageRegistryName, nil
})
if err != nil {
ec.Error(ctx, 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_ImageRegistry_imageRegistryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistry",
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) _ImageRegistry_imageRepoName(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistry) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistry_imageRepoName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ImageRepoName, nil
})
if err != nil {
ec.Error(ctx, 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_ImageRegistry_imageRepoName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistry",
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) _ImageRegistry_imageRegistryType(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistry) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistry_imageRegistryType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ImageRegistryType, nil
})
if err != nil {
ec.Error(ctx, 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_ImageRegistry_imageRegistryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistry",
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) _ImageRegistry_secretName(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistry) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistry_secretName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.SecretName, 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_ImageRegistry_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistry",
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) _ImageRegistry_secretNamespace(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistry) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistry_secretNamespace(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.SecretNamespace, 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_ImageRegistry_secretNamespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistry",
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) _ImageRegistry_enableRegistry(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistry) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistry_enableRegistry(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EnableRegistry, 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_ImageRegistry_enableRegistry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistry",
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) _ImageRegistryResponse_isDefault(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistryResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistryResponse_isDefault(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsDefault, nil
})
if err != nil {
ec.Error(ctx, 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_ImageRegistryResponse_isDefault(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistryResponse",
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) _ImageRegistryResponse_imageRegistryInfo(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistryResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistryResponse_imageRegistryInfo(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ImageRegistryInfo, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.ImageRegistry)
fc.Result = res
return ec.marshalOImageRegistry2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistry(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ImageRegistryResponse_imageRegistryInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistryResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "isDefault":
return ec.fieldContext_ImageRegistry_isDefault(ctx, field)
case "imageRegistryName":
return ec.fieldContext_ImageRegistry_imageRegistryName(ctx, field)
case "imageRepoName":
return ec.fieldContext_ImageRegistry_imageRepoName(ctx, field)
case "imageRegistryType":
return ec.fieldContext_ImageRegistry_imageRegistryType(ctx, field)
case "secretName":
return ec.fieldContext_ImageRegistry_secretName(ctx, field)
case "secretNamespace":
return ec.fieldContext_ImageRegistry_secretNamespace(ctx, field)
case "enableRegistry":
return ec.fieldContext_ImageRegistry_enableRegistry(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ImageRegistry", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ImageRegistryResponse_imageRegistryID(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistryResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistryResponse_imageRegistryID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ImageRegistryID, nil
})
if err != nil {
ec.Error(ctx, 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_ImageRegistryResponse_imageRegistryID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistryResponse",
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) _ImageRegistryResponse_projectID(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistryResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistryResponse_projectID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProjectID, nil
})
if err != nil {
ec.Error(ctx, 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_ImageRegistryResponse_projectID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistryResponse",
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) _ImageRegistryResponse_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistryResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistryResponse_updatedAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ImageRegistryResponse_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistryResponse",
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) _ImageRegistryResponse_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistryResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistryResponse_createdAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CreatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ImageRegistryResponse_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistryResponse",
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) _ImageRegistryResponse_createdBy(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistryResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistryResponse_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 {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ImageRegistryResponse_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistryResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ImageRegistryResponse_updatedBy(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistryResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistryResponse_updatedBy(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedBy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ImageRegistryResponse_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistryResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ImageRegistryResponse_isRemoved(ctx context.Context, field graphql.CollectedField, obj *model.ImageRegistryResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ImageRegistryResponse_isRemoved(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsRemoved, 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_ImageRegistryResponse_isRemoved(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ImageRegistryResponse",
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) _Infra_projectID(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_projectID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProjectID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Infra_projectID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _Infra_infraID(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_infraID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InfraID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Infra_infraID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _Infra_name(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_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_Infra_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_description(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Infra_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_tags(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_tags(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Tags, 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_Infra_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_environmentID(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_environmentID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EnvironmentID, nil
})
if err != nil {
ec.Error(ctx, 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_Infra_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_platformName(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_platformName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.PlatformName, nil
})
if err != nil {
ec.Error(ctx, 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_Infra_platformName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_isActive(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_isActive(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsActive, nil
})
if err != nil {
ec.Error(ctx, 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_Infra_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_isInfraConfirmed(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_isInfraConfirmed(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsInfraConfirmed, nil
})
if err != nil {
ec.Error(ctx, 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_Infra_isInfraConfirmed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_isRemoved(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_isRemoved(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsRemoved, nil
})
if err != nil {
ec.Error(ctx, 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_Infra_isRemoved(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_updatedAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_Infra_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_createdAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CreatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_Infra_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_noOfExperiments(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_noOfExperiments(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.NoOfExperiments, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Infra_noOfExperiments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_noOfExperimentRuns(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_noOfExperimentRuns(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.NoOfExperimentRuns, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Infra_noOfExperimentRuns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_token(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_token(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Token, nil
})
if err != nil {
ec.Error(ctx, 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_Infra_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_infraNamespace(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_infraNamespace(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InfraNamespace, 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_Infra_infraNamespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_serviceAccount(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_serviceAccount(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ServiceAccount, 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_Infra_serviceAccount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_infraScope(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_infraScope(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InfraScope, nil
})
if err != nil {
ec.Error(ctx, 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_Infra_infraScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_infraNsExists(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_infraNsExists(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InfraNsExists, 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_Infra_infraNsExists(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_infraSaExists(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_infraSaExists(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InfraSaExists, 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_Infra_infraSaExists(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_lastExperimentTimestamp(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_lastExperimentTimestamp(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.LastExperimentTimestamp, 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_Infra_lastExperimentTimestamp(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_startTime(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_startTime(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.StartTime, nil
})
if err != nil {
ec.Error(ctx, 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_Infra_startTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_version(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_version(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Version, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_Infra_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
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) _Infra_createdBy(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_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 {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Infra_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Infra_updatedBy(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_updatedBy(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedBy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Infra_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Infra_infraType(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_infraType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InfraType, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.InfrastructureType)
fc.Result = res
return ec.marshalOInfrastructureType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Infra_infraType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type InfrastructureType does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _Infra_updateStatus(ctx context.Context, field graphql.CollectedField, obj *model.Infra) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Infra_updateStatus(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdateStatus, nil
})
if err != nil {
ec.Error(ctx, 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.UpdateStatus)
fc.Result = res
return ec.marshalNUpdateStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUpdateStatus(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Infra_updateStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Infra",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type UpdateStatus does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _InfraActionResponse_projectID(ctx context.Context, field graphql.CollectedField, obj *model.InfraActionResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_InfraActionResponse_projectID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProjectID, nil
})
if err != nil {
ec.Error(ctx, 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_InfraActionResponse_projectID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "InfraActionResponse",
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) _InfraActionResponse_action(ctx context.Context, field graphql.CollectedField, obj *model.InfraActionResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_InfraActionResponse_action(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Action, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.ActionPayload)
fc.Result = res
return ec.marshalNActionPayload2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐActionPayload(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_InfraActionResponse_action(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "InfraActionResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "requestID":
return ec.fieldContext_ActionPayload_requestID(ctx, field)
case "requestType":
return ec.fieldContext_ActionPayload_requestType(ctx, field)
case "k8sManifest":
return ec.fieldContext_ActionPayload_k8sManifest(ctx, field)
case "namespace":
return ec.fieldContext_ActionPayload_namespace(ctx, field)
case "externalData":
return ec.fieldContext_ActionPayload_externalData(ctx, field)
case "username":
return ec.fieldContext_ActionPayload_username(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ActionPayload", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _InfraEventResponse_eventID(ctx context.Context, field graphql.CollectedField, obj *model.InfraEventResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_InfraEventResponse_eventID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EventID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_InfraEventResponse_eventID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "InfraEventResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _InfraEventResponse_eventType(ctx context.Context, field graphql.CollectedField, obj *model.InfraEventResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_InfraEventResponse_eventType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EventType, nil
})
if err != nil {
ec.Error(ctx, 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_InfraEventResponse_eventType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "InfraEventResponse",
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) _InfraEventResponse_eventName(ctx context.Context, field graphql.CollectedField, obj *model.InfraEventResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_InfraEventResponse_eventName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EventName, nil
})
if err != nil {
ec.Error(ctx, 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_InfraEventResponse_eventName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "InfraEventResponse",
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) _InfraEventResponse_description(ctx context.Context, field graphql.CollectedField, obj *model.InfraEventResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_InfraEventResponse_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_InfraEventResponse_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "InfraEventResponse",
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) _InfraEventResponse_infra(ctx context.Context, field graphql.CollectedField, obj *model.InfraEventResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_InfraEventResponse_infra(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Infra, nil
})
if err != nil {
ec.Error(ctx, 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.Infra)
fc.Result = res
return ec.marshalNInfra2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_InfraEventResponse_infra(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "InfraEventResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "projectID":
return ec.fieldContext_Infra_projectID(ctx, field)
case "infraID":
return ec.fieldContext_Infra_infraID(ctx, field)
case "name":
return ec.fieldContext_Infra_name(ctx, field)
case "description":
return ec.fieldContext_Infra_description(ctx, field)
case "tags":
return ec.fieldContext_Infra_tags(ctx, field)
case "environmentID":
return ec.fieldContext_Infra_environmentID(ctx, field)
case "platformName":
return ec.fieldContext_Infra_platformName(ctx, field)
case "isActive":
return ec.fieldContext_Infra_isActive(ctx, field)
case "isInfraConfirmed":
return ec.fieldContext_Infra_isInfraConfirmed(ctx, field)
case "isRemoved":
return ec.fieldContext_Infra_isRemoved(ctx, field)
case "updatedAt":
return ec.fieldContext_Infra_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_Infra_createdAt(ctx, field)
case "noOfExperiments":
return ec.fieldContext_Infra_noOfExperiments(ctx, field)
case "noOfExperimentRuns":
return ec.fieldContext_Infra_noOfExperimentRuns(ctx, field)
case "token":
return ec.fieldContext_Infra_token(ctx, field)
case "infraNamespace":
return ec.fieldContext_Infra_infraNamespace(ctx, field)
case "serviceAccount":
return ec.fieldContext_Infra_serviceAccount(ctx, field)
case "infraScope":
return ec.fieldContext_Infra_infraScope(ctx, field)
case "infraNsExists":
return ec.fieldContext_Infra_infraNsExists(ctx, field)
case "infraSaExists":
return ec.fieldContext_Infra_infraSaExists(ctx, field)
case "lastExperimentTimestamp":
return ec.fieldContext_Infra_lastExperimentTimestamp(ctx, field)
case "startTime":
return ec.fieldContext_Infra_startTime(ctx, field)
case "version":
return ec.fieldContext_Infra_version(ctx, field)
case "createdBy":
return ec.fieldContext_Infra_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_Infra_updatedBy(ctx, field)
case "infraType":
return ec.fieldContext_Infra_infraType(ctx, field)
case "updateStatus":
return ec.fieldContext_Infra_updateStatus(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Infra", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _InfraVersionDetails_latestVersion(ctx context.Context, field graphql.CollectedField, obj *model.InfraVersionDetails) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_InfraVersionDetails_latestVersion(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.LatestVersion, nil
})
if err != nil {
ec.Error(ctx, 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_InfraVersionDetails_latestVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "InfraVersionDetails",
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) _InfraVersionDetails_compatibleVersions(ctx context.Context, field graphql.CollectedField, obj *model.InfraVersionDetails) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_InfraVersionDetails_compatibleVersions(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CompatibleVersions, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]string)
fc.Result = res
return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_InfraVersionDetails_compatibleVersions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "InfraVersionDetails",
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) _K8SProbe_probeTimeout(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_probeTimeout(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProbeTimeout, nil
})
if err != nil {
ec.Error(ctx, 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_K8SProbe_probeTimeout(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_interval(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_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
}
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_K8SProbe_interval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_retry(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_retry(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Retry, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_K8SProbe_retry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_attempt(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_attempt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Attempt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_K8SProbe_attempt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_probePollingInterval(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_probePollingInterval(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProbePollingInterval, 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_K8SProbe_probePollingInterval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_initialDelay(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_initialDelay(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InitialDelay, 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_K8SProbe_initialDelay(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_evaluationTimeout(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_evaluationTimeout(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EvaluationTimeout, 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_K8SProbe_evaluationTimeout(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_stopOnFailure(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_stopOnFailure(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.StopOnFailure, 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_K8SProbe_stopOnFailure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_group(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_group(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Group, 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_K8SProbe_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_version(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_version(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Version, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_K8SProbe_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_resource(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_resource(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Resource, nil
})
if err != nil {
ec.Error(ctx, 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_K8SProbe_resource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_namespace(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_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.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_K8SProbe_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_resourceNames(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_resourceNames(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ResourceNames, 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_K8SProbe_resourceNames(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_fieldSelector(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_fieldSelector(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FieldSelector, 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_K8SProbe_fieldSelector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_labelSelector(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_labelSelector(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.LabelSelector, 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_K8SProbe_labelSelector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _K8SProbe_operation(ctx context.Context, field graphql.CollectedField, obj *model.K8SProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_K8SProbe_operation(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Operation, nil
})
if err != nil {
ec.Error(ctx, 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_K8SProbe_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "K8SProbe",
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) _KubeNamespace_name(ctx context.Context, field graphql.CollectedField, obj *model.KubeNamespace) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubeNamespace_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_KubeNamespace_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubeNamespace",
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) _KubeNamespaceResponse_infraID(ctx context.Context, field graphql.CollectedField, obj *model.KubeNamespaceResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubeNamespaceResponse_infraID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InfraID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_KubeNamespaceResponse_infraID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubeNamespaceResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _KubeNamespaceResponse_kubeNamespace(ctx context.Context, field graphql.CollectedField, obj *model.KubeNamespaceResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubeNamespaceResponse_kubeNamespace(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.KubeNamespace, nil
})
if err != nil {
ec.Error(ctx, 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.KubeNamespace)
fc.Result = res
return ec.marshalNKubeNamespace2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeNamespace(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_KubeNamespaceResponse_kubeNamespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubeNamespaceResponse",
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_KubeNamespace_name(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type KubeNamespace", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _KubeObject_namespace(ctx context.Context, field graphql.CollectedField, obj *model.KubeObject) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubeObject_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 {
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_KubeObject_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubeObject",
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) _KubeObject_data(ctx context.Context, field graphql.CollectedField, obj *model.KubeObject) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubeObject_data(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Data, nil
})
if err != nil {
ec.Error(ctx, 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.ObjectData)
fc.Result = res
return ec.marshalNObjectData2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐObjectData(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_KubeObject_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubeObject",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "labels":
return ec.fieldContext_ObjectData_labels(ctx, field)
case "name":
return ec.fieldContext_ObjectData_name(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ObjectData", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _KubeObjectResponse_infraID(ctx context.Context, field graphql.CollectedField, obj *model.KubeObjectResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubeObjectResponse_infraID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InfraID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_KubeObjectResponse_infraID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubeObjectResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _KubeObjectResponse_kubeObj(ctx context.Context, field graphql.CollectedField, obj *model.KubeObjectResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubeObjectResponse_kubeObj(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.KubeObj, nil
})
if err != nil {
ec.Error(ctx, 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.KubeObject)
fc.Result = res
return ec.marshalNKubeObject2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObject(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_KubeObjectResponse_kubeObj(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubeObjectResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "namespace":
return ec.fieldContext_KubeObject_namespace(ctx, field)
case "data":
return ec.fieldContext_KubeObject_data(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type KubeObject", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _KubernetesCMDProbe_probeTimeout(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesCMDProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesCMDProbe_probeTimeout(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProbeTimeout, nil
})
if err != nil {
ec.Error(ctx, 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_KubernetesCMDProbe_probeTimeout(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesCMDProbe",
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) _KubernetesCMDProbe_interval(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesCMDProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesCMDProbe_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
}
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_KubernetesCMDProbe_interval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesCMDProbe",
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) _KubernetesCMDProbe_retry(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesCMDProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesCMDProbe_retry(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Retry, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_KubernetesCMDProbe_retry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesCMDProbe",
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) _KubernetesCMDProbe_attempt(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesCMDProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesCMDProbe_attempt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Attempt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_KubernetesCMDProbe_attempt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesCMDProbe",
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) _KubernetesCMDProbe_probePollingInterval(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesCMDProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesCMDProbe_probePollingInterval(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProbePollingInterval, 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_KubernetesCMDProbe_probePollingInterval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesCMDProbe",
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) _KubernetesCMDProbe_initialDelay(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesCMDProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesCMDProbe_initialDelay(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InitialDelay, 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_KubernetesCMDProbe_initialDelay(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesCMDProbe",
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) _KubernetesCMDProbe_evaluationTimeout(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesCMDProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesCMDProbe_evaluationTimeout(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EvaluationTimeout, 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_KubernetesCMDProbe_evaluationTimeout(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesCMDProbe",
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) _KubernetesCMDProbe_stopOnFailure(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesCMDProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesCMDProbe_stopOnFailure(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.StopOnFailure, 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_KubernetesCMDProbe_stopOnFailure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesCMDProbe",
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) _KubernetesCMDProbe_command(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesCMDProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesCMDProbe_command(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Command, nil
})
if err != nil {
ec.Error(ctx, 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_KubernetesCMDProbe_command(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesCMDProbe",
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) _KubernetesCMDProbe_comparator(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesCMDProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesCMDProbe_comparator(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Comparator, nil
})
if err != nil {
ec.Error(ctx, 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.Comparator)
fc.Result = res
return ec.marshalNComparator2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparator(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_KubernetesCMDProbe_comparator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesCMDProbe",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "type":
return ec.fieldContext_Comparator_type(ctx, field)
case "value":
return ec.fieldContext_Comparator_value(ctx, field)
case "criteria":
return ec.fieldContext_Comparator_criteria(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Comparator", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _KubernetesCMDProbe_source(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesCMDProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesCMDProbe_source(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Source, 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_KubernetesCMDProbe_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesCMDProbe",
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) _KubernetesHTTPProbe_probeTimeout(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesHTTPProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesHTTPProbe_probeTimeout(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProbeTimeout, nil
})
if err != nil {
ec.Error(ctx, 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_KubernetesHTTPProbe_probeTimeout(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesHTTPProbe",
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) _KubernetesHTTPProbe_interval(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesHTTPProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesHTTPProbe_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
}
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_KubernetesHTTPProbe_interval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesHTTPProbe",
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) _KubernetesHTTPProbe_retry(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesHTTPProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesHTTPProbe_retry(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Retry, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_KubernetesHTTPProbe_retry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesHTTPProbe",
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) _KubernetesHTTPProbe_attempt(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesHTTPProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesHTTPProbe_attempt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Attempt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_KubernetesHTTPProbe_attempt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesHTTPProbe",
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) _KubernetesHTTPProbe_probePollingInterval(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesHTTPProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesHTTPProbe_probePollingInterval(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProbePollingInterval, 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_KubernetesHTTPProbe_probePollingInterval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesHTTPProbe",
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) _KubernetesHTTPProbe_initialDelay(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesHTTPProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesHTTPProbe_initialDelay(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InitialDelay, 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_KubernetesHTTPProbe_initialDelay(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesHTTPProbe",
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) _KubernetesHTTPProbe_evaluationTimeout(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesHTTPProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesHTTPProbe_evaluationTimeout(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EvaluationTimeout, 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_KubernetesHTTPProbe_evaluationTimeout(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesHTTPProbe",
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) _KubernetesHTTPProbe_stopOnFailure(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesHTTPProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesHTTPProbe_stopOnFailure(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.StopOnFailure, 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_KubernetesHTTPProbe_stopOnFailure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesHTTPProbe",
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) _KubernetesHTTPProbe_url(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesHTTPProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesHTTPProbe_url(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.URL, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_KubernetesHTTPProbe_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesHTTPProbe",
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) _KubernetesHTTPProbe_method(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesHTTPProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesHTTPProbe_method(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Method, nil
})
if err != nil {
ec.Error(ctx, 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.Method)
fc.Result = res
return ec.marshalNMethod2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMethod(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_KubernetesHTTPProbe_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesHTTPProbe",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "get":
return ec.fieldContext_Method_get(ctx, field)
case "post":
return ec.fieldContext_Method_post(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Method", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _KubernetesHTTPProbe_insecureSkipVerify(ctx context.Context, field graphql.CollectedField, obj *model.KubernetesHTTPProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_KubernetesHTTPProbe_insecureSkipVerify(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InsecureSkipVerify, 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_KubernetesHTTPProbe_insecureSkipVerify(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "KubernetesHTTPProbe",
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) _Link_name(ctx context.Context, field graphql.CollectedField, obj *model.Link) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Link_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_Link_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Link",
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) _Link_url(ctx context.Context, field graphql.CollectedField, obj *model.Link) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Link_url(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.URL, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Link_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Link",
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) _ListEnvironmentResponse_totalNoOfEnvironments(ctx context.Context, field graphql.CollectedField, obj *model.ListEnvironmentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ListEnvironmentResponse_totalNoOfEnvironments(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalNoOfEnvironments, nil
})
if err != nil {
ec.Error(ctx, 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_ListEnvironmentResponse_totalNoOfEnvironments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ListEnvironmentResponse",
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) _ListEnvironmentResponse_environments(ctx context.Context, field graphql.CollectedField, obj *model.ListEnvironmentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ListEnvironmentResponse_environments(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Environments, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]*model.Environment)
fc.Result = res
return ec.marshalOEnvironment2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironment(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ListEnvironmentResponse_environments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ListEnvironmentResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "projectID":
return ec.fieldContext_Environment_projectID(ctx, field)
case "environmentID":
return ec.fieldContext_Environment_environmentID(ctx, field)
case "name":
return ec.fieldContext_Environment_name(ctx, field)
case "description":
return ec.fieldContext_Environment_description(ctx, field)
case "tags":
return ec.fieldContext_Environment_tags(ctx, field)
case "type":
return ec.fieldContext_Environment_type(ctx, field)
case "createdAt":
return ec.fieldContext_Environment_createdAt(ctx, field)
case "createdBy":
return ec.fieldContext_Environment_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_Environment_updatedBy(ctx, field)
case "updatedAt":
return ec.fieldContext_Environment_updatedAt(ctx, field)
case "isRemoved":
return ec.fieldContext_Environment_isRemoved(ctx, field)
case "infraIDs":
return ec.fieldContext_Environment_infraIDs(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Environment", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ListExperimentResponse_totalNoOfExperiments(ctx context.Context, field graphql.CollectedField, obj *model.ListExperimentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ListExperimentResponse_totalNoOfExperiments(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalNoOfExperiments, nil
})
if err != nil {
ec.Error(ctx, 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_ListExperimentResponse_totalNoOfExperiments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ListExperimentResponse",
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) _ListExperimentResponse_experiments(ctx context.Context, field graphql.CollectedField, obj *model.ListExperimentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ListExperimentResponse_experiments(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Experiments, nil
})
if err != nil {
ec.Error(ctx, 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.Experiment)
fc.Result = res
return ec.marshalNExperiment2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiment(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ListExperimentResponse_experiments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ListExperimentResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "projectID":
return ec.fieldContext_Experiment_projectID(ctx, field)
case "experimentID":
return ec.fieldContext_Experiment_experimentID(ctx, field)
case "experimentType":
return ec.fieldContext_Experiment_experimentType(ctx, field)
case "experimentManifest":
return ec.fieldContext_Experiment_experimentManifest(ctx, field)
case "cronSyntax":
return ec.fieldContext_Experiment_cronSyntax(ctx, field)
case "name":
return ec.fieldContext_Experiment_name(ctx, field)
case "description":
return ec.fieldContext_Experiment_description(ctx, field)
case "weightages":
return ec.fieldContext_Experiment_weightages(ctx, field)
case "isCustomExperiment":
return ec.fieldContext_Experiment_isCustomExperiment(ctx, field)
case "updatedAt":
return ec.fieldContext_Experiment_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_Experiment_createdAt(ctx, field)
case "infra":
return ec.fieldContext_Experiment_infra(ctx, field)
case "isRemoved":
return ec.fieldContext_Experiment_isRemoved(ctx, field)
case "tags":
return ec.fieldContext_Experiment_tags(ctx, field)
case "createdBy":
return ec.fieldContext_Experiment_createdBy(ctx, field)
case "recentExperimentRunDetails":
return ec.fieldContext_Experiment_recentExperimentRunDetails(ctx, field)
case "updatedBy":
return ec.fieldContext_Experiment_updatedBy(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Experiment", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ListExperimentRunResponse_totalNoOfExperimentRuns(ctx context.Context, field graphql.CollectedField, obj *model.ListExperimentRunResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ListExperimentRunResponse_totalNoOfExperimentRuns(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalNoOfExperimentRuns, nil
})
if err != nil {
ec.Error(ctx, 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_ListExperimentRunResponse_totalNoOfExperimentRuns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ListExperimentRunResponse",
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) _ListExperimentRunResponse_experimentRuns(ctx context.Context, field graphql.CollectedField, obj *model.ListExperimentRunResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ListExperimentRunResponse_experimentRuns(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentRuns, nil
})
if err != nil {
ec.Error(ctx, 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.ExperimentRun)
fc.Result = res
return ec.marshalNExperimentRun2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRun(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ListExperimentRunResponse_experimentRuns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ListExperimentRunResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "projectID":
return ec.fieldContext_ExperimentRun_projectID(ctx, field)
case "experimentRunID":
return ec.fieldContext_ExperimentRun_experimentRunID(ctx, field)
case "experimentType":
return ec.fieldContext_ExperimentRun_experimentType(ctx, field)
case "experimentID":
return ec.fieldContext_ExperimentRun_experimentID(ctx, field)
case "weightages":
return ec.fieldContext_ExperimentRun_weightages(ctx, field)
case "updatedAt":
return ec.fieldContext_ExperimentRun_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_ExperimentRun_createdAt(ctx, field)
case "infra":
return ec.fieldContext_ExperimentRun_infra(ctx, field)
case "experimentName":
return ec.fieldContext_ExperimentRun_experimentName(ctx, field)
case "experimentManifest":
return ec.fieldContext_ExperimentRun_experimentManifest(ctx, field)
case "phase":
return ec.fieldContext_ExperimentRun_phase(ctx, field)
case "resiliencyScore":
return ec.fieldContext_ExperimentRun_resiliencyScore(ctx, field)
case "faultsPassed":
return ec.fieldContext_ExperimentRun_faultsPassed(ctx, field)
case "faultsFailed":
return ec.fieldContext_ExperimentRun_faultsFailed(ctx, field)
case "faultsAwaited":
return ec.fieldContext_ExperimentRun_faultsAwaited(ctx, field)
case "faultsStopped":
return ec.fieldContext_ExperimentRun_faultsStopped(ctx, field)
case "faultsNa":
return ec.fieldContext_ExperimentRun_faultsNa(ctx, field)
case "totalFaults":
return ec.fieldContext_ExperimentRun_totalFaults(ctx, field)
case "executionData":
return ec.fieldContext_ExperimentRun_executionData(ctx, field)
case "isRemoved":
return ec.fieldContext_ExperimentRun_isRemoved(ctx, field)
case "updatedBy":
return ec.fieldContext_ExperimentRun_updatedBy(ctx, field)
case "createdBy":
return ec.fieldContext_ExperimentRun_createdBy(ctx, field)
case "notifyID":
return ec.fieldContext_ExperimentRun_notifyID(ctx, field)
case "runSequence":
return ec.fieldContext_ExperimentRun_runSequence(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ExperimentRun", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ListInfraResponse_totalNoOfInfras(ctx context.Context, field graphql.CollectedField, obj *model.ListInfraResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ListInfraResponse_totalNoOfInfras(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalNoOfInfras, nil
})
if err != nil {
ec.Error(ctx, 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_ListInfraResponse_totalNoOfInfras(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ListInfraResponse",
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) _ListInfraResponse_infras(ctx context.Context, field graphql.CollectedField, obj *model.ListInfraResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ListInfraResponse_infras(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Infras, nil
})
if err != nil {
ec.Error(ctx, 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.Infra)
fc.Result = res
return ec.marshalNInfra2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ListInfraResponse_infras(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ListInfraResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "projectID":
return ec.fieldContext_Infra_projectID(ctx, field)
case "infraID":
return ec.fieldContext_Infra_infraID(ctx, field)
case "name":
return ec.fieldContext_Infra_name(ctx, field)
case "description":
return ec.fieldContext_Infra_description(ctx, field)
case "tags":
return ec.fieldContext_Infra_tags(ctx, field)
case "environmentID":
return ec.fieldContext_Infra_environmentID(ctx, field)
case "platformName":
return ec.fieldContext_Infra_platformName(ctx, field)
case "isActive":
return ec.fieldContext_Infra_isActive(ctx, field)
case "isInfraConfirmed":
return ec.fieldContext_Infra_isInfraConfirmed(ctx, field)
case "isRemoved":
return ec.fieldContext_Infra_isRemoved(ctx, field)
case "updatedAt":
return ec.fieldContext_Infra_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_Infra_createdAt(ctx, field)
case "noOfExperiments":
return ec.fieldContext_Infra_noOfExperiments(ctx, field)
case "noOfExperimentRuns":
return ec.fieldContext_Infra_noOfExperimentRuns(ctx, field)
case "token":
return ec.fieldContext_Infra_token(ctx, field)
case "infraNamespace":
return ec.fieldContext_Infra_infraNamespace(ctx, field)
case "serviceAccount":
return ec.fieldContext_Infra_serviceAccount(ctx, field)
case "infraScope":
return ec.fieldContext_Infra_infraScope(ctx, field)
case "infraNsExists":
return ec.fieldContext_Infra_infraNsExists(ctx, field)
case "infraSaExists":
return ec.fieldContext_Infra_infraSaExists(ctx, field)
case "lastExperimentTimestamp":
return ec.fieldContext_Infra_lastExperimentTimestamp(ctx, field)
case "startTime":
return ec.fieldContext_Infra_startTime(ctx, field)
case "version":
return ec.fieldContext_Infra_version(ctx, field)
case "createdBy":
return ec.fieldContext_Infra_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_Infra_updatedBy(ctx, field)
case "infraType":
return ec.fieldContext_Infra_infraType(ctx, field)
case "updateStatus":
return ec.fieldContext_Infra_updateStatus(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Infra", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Maintainer_name(ctx context.Context, field graphql.CollectedField, obj *model.Maintainer) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Maintainer_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_Maintainer_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Maintainer",
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) _Maintainer_email(ctx context.Context, field graphql.CollectedField, obj *model.Maintainer) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Maintainer_email(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Email, nil
})
if err != nil {
ec.Error(ctx, 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_Maintainer_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Maintainer",
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_name(ctx context.Context, field graphql.CollectedField, obj *model.Metadata) (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_version(ctx context.Context, field graphql.CollectedField, obj *model.Metadata) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Metadata_version(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Version, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_version(_ 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_annotations(ctx context.Context, field graphql.CollectedField, obj *model.Metadata) (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 obj.Annotations, nil
})
if err != nil {
ec.Error(ctx, 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.Annotation)
fc.Result = res
return ec.marshalNAnnotation2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAnnotation(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: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "categories":
return ec.fieldContext_Annotation_categories(ctx, field)
case "vendor":
return ec.fieldContext_Annotation_vendor(ctx, field)
case "createdAt":
return ec.fieldContext_Annotation_createdAt(ctx, field)
case "repository":
return ec.fieldContext_Annotation_repository(ctx, field)
case "support":
return ec.fieldContext_Annotation_support(ctx, field)
case "chartDescription":
return ec.fieldContext_Annotation_chartDescription(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Annotation", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Method_get(ctx context.Context, field graphql.CollectedField, obj *model.Method) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Method_get(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Get, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.Get)
fc.Result = res
return ec.marshalOGET2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGet(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Method_get(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Method",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "criteria":
return ec.fieldContext_GET_criteria(ctx, field)
case "responseCode":
return ec.fieldContext_GET_responseCode(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type GET", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Method_post(ctx context.Context, field graphql.CollectedField, obj *model.Method) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Method_post(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Post, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.Post)
fc.Result = res
return ec.marshalOPOST2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPost(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Method_post(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Method",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "contentType":
return ec.fieldContext_POST_contentType(ctx, field)
case "body":
return ec.fieldContext_POST_body(ctx, field)
case "bodyPath":
return ec.fieldContext_POST_bodyPath(ctx, field)
case "criteria":
return ec.fieldContext_POST_criteria(ctx, field)
case "responseCode":
return ec.fieldContext_POST_responseCode(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type POST", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Mutation_createChaosExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_createChaosExperiment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().CreateChaosExperiment(rctx, fc.Args["request"].(model.ChaosExperimentRequest), fc.Args["projectID"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.ChaosExperimentResponse)
fc.Result = res
return ec.marshalNChaosExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_createChaosExperiment(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 "experimentID":
return ec.fieldContext_ChaosExperimentResponse_experimentID(ctx, field)
case "projectID":
return ec.fieldContext_ChaosExperimentResponse_projectID(ctx, field)
case "cronSyntax":
return ec.fieldContext_ChaosExperimentResponse_cronSyntax(ctx, field)
case "experimentName":
return ec.fieldContext_ChaosExperimentResponse_experimentName(ctx, field)
case "experimentDescription":
return ec.fieldContext_ChaosExperimentResponse_experimentDescription(ctx, field)
case "isCustomExperiment":
return ec.fieldContext_ChaosExperimentResponse_isCustomExperiment(ctx, field)
case "tags":
return ec.fieldContext_ChaosExperimentResponse_tags(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ChaosExperimentResponse", 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_createChaosExperiment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_saveChaosExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_saveChaosExperiment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().SaveChaosExperiment(rctx, fc.Args["request"].(model.SaveChaosExperimentRequest), fc.Args["projectID"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_saveChaosExperiment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_saveChaosExperiment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_updateChaosExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_updateChaosExperiment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().UpdateChaosExperiment(rctx, fc.Args["request"].(model.ChaosExperimentRequest), fc.Args["projectID"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.ChaosExperimentResponse)
fc.Result = res
return ec.marshalNChaosExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_updateChaosExperiment(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 "experimentID":
return ec.fieldContext_ChaosExperimentResponse_experimentID(ctx, field)
case "projectID":
return ec.fieldContext_ChaosExperimentResponse_projectID(ctx, field)
case "cronSyntax":
return ec.fieldContext_ChaosExperimentResponse_cronSyntax(ctx, field)
case "experimentName":
return ec.fieldContext_ChaosExperimentResponse_experimentName(ctx, field)
case "experimentDescription":
return ec.fieldContext_ChaosExperimentResponse_experimentDescription(ctx, field)
case "isCustomExperiment":
return ec.fieldContext_ChaosExperimentResponse_isCustomExperiment(ctx, field)
case "tags":
return ec.fieldContext_ChaosExperimentResponse_tags(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ChaosExperimentResponse", 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_updateChaosExperiment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_deleteChaosExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_deleteChaosExperiment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().DeleteChaosExperiment(rctx, fc.Args["experimentID"].(string), fc.Args["experimentRunID"].(*string), fc.Args["projectID"].(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.(bool)
fc.Result = res
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_deleteChaosExperiment(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_deleteChaosExperiment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_updateCronExperimentState(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_updateCronExperimentState(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().UpdateCronExperimentState(rctx, fc.Args["experimentID"].(string), fc.Args["disable"].(bool), fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(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_updateCronExperimentState(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_updateCronExperimentState_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_chaosExperimentRun(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_chaosExperimentRun(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().ChaosExperimentRun(rctx, fc.Args["request"].(model.ExperimentRunRequest))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_chaosExperimentRun(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_chaosExperimentRun_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_runChaosExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_runChaosExperiment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().RunChaosExperiment(rctx, fc.Args["experimentID"].(string), fc.Args["projectID"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.RunChaosExperimentResponse)
fc.Result = res
return ec.marshalNRunChaosExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRunChaosExperimentResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_runChaosExperiment(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 "notifyID":
return ec.fieldContext_RunChaosExperimentResponse_notifyID(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type RunChaosExperimentResponse", 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_runChaosExperiment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_stopExperimentRuns(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_stopExperimentRuns(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().StopExperimentRuns(rctx, fc.Args["projectID"].(string), fc.Args["experimentID"].(string), fc.Args["experimentRunID"].(*string), fc.Args["notifyID"].(*string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(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_stopExperimentRuns(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_stopExperimentRuns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_registerInfra(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_registerInfra(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().RegisterInfra(rctx, fc.Args["projectID"].(string), fc.Args["request"].(model.RegisterInfraRequest))
})
if err != nil {
ec.Error(ctx, 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.RegisterInfraResponse)
fc.Result = res
return ec.marshalNRegisterInfraResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRegisterInfraResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_registerInfra(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 "token":
return ec.fieldContext_RegisterInfraResponse_token(ctx, field)
case "infraID":
return ec.fieldContext_RegisterInfraResponse_infraID(ctx, field)
case "name":
return ec.fieldContext_RegisterInfraResponse_name(ctx, field)
case "manifest":
return ec.fieldContext_RegisterInfraResponse_manifest(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type RegisterInfraResponse", 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_registerInfra_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_confirmInfraRegistration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_confirmInfraRegistration(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().ConfirmInfraRegistration(rctx, fc.Args["request"].(model.InfraIdentity))
})
if err != nil {
ec.Error(ctx, 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.ConfirmInfraRegistrationResponse)
fc.Result = res
return ec.marshalNConfirmInfraRegistrationResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐConfirmInfraRegistrationResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_confirmInfraRegistration(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 "isInfraConfirmed":
return ec.fieldContext_ConfirmInfraRegistrationResponse_isInfraConfirmed(ctx, field)
case "newAccessKey":
return ec.fieldContext_ConfirmInfraRegistrationResponse_newAccessKey(ctx, field)
case "infraID":
return ec.fieldContext_ConfirmInfraRegistrationResponse_infraID(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ConfirmInfraRegistrationResponse", 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_confirmInfraRegistration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_deleteInfra(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_deleteInfra(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().DeleteInfra(rctx, fc.Args["projectID"].(string), fc.Args["infraID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(string); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, 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)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_deleteInfra(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_deleteInfra_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_getManifestWithInfraID(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_getManifestWithInfraID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().GetManifestWithInfraID(rctx, fc.Args["projectID"].(string), fc.Args["infraID"].(string), fc.Args["accessKey"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_getManifestWithInfraID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_getManifestWithInfraID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_podLog(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_podLog(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().PodLog(rctx, fc.Args["request"].(model.PodLog))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_podLog(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_podLog_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_kubeObj(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_kubeObj(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().KubeObj(rctx, fc.Args["request"].(model.KubeObjectData))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_kubeObj(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_kubeObj_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_kubeNamespace(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_kubeNamespace(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().KubeNamespace(rctx, fc.Args["request"].(model.KubeNamespaceData))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_kubeNamespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_kubeNamespace_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_addChaosHub(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_addChaosHub(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().AddChaosHub(rctx, fc.Args["projectID"].(string), fc.Args["request"].(model.CreateChaosHubRequest))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.ChaosHub); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.ChaosHub`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.ChaosHub)
fc.Result = res
return ec.marshalNChaosHub2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHub(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_addChaosHub(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
return ec.fieldContext_ChaosHub_id(ctx, field)
case "repoURL":
return ec.fieldContext_ChaosHub_repoURL(ctx, field)
case "repoBranch":
return ec.fieldContext_ChaosHub_repoBranch(ctx, field)
case "remoteHub":
return ec.fieldContext_ChaosHub_remoteHub(ctx, field)
case "projectID":
return ec.fieldContext_ChaosHub_projectID(ctx, field)
case "isDefault":
return ec.fieldContext_ChaosHub_isDefault(ctx, field)
case "name":
return ec.fieldContext_ChaosHub_name(ctx, field)
case "tags":
return ec.fieldContext_ChaosHub_tags(ctx, field)
case "createdBy":
return ec.fieldContext_ChaosHub_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_ChaosHub_updatedBy(ctx, field)
case "description":
return ec.fieldContext_ChaosHub_description(ctx, field)
case "hubType":
return ec.fieldContext_ChaosHub_hubType(ctx, field)
case "isPrivate":
return ec.fieldContext_ChaosHub_isPrivate(ctx, field)
case "authType":
return ec.fieldContext_ChaosHub_authType(ctx, field)
case "token":
return ec.fieldContext_ChaosHub_token(ctx, field)
case "userName":
return ec.fieldContext_ChaosHub_userName(ctx, field)
case "password":
return ec.fieldContext_ChaosHub_password(ctx, field)
case "sshPrivateKey":
return ec.fieldContext_ChaosHub_sshPrivateKey(ctx, field)
case "isRemoved":
return ec.fieldContext_ChaosHub_isRemoved(ctx, field)
case "createdAt":
return ec.fieldContext_ChaosHub_createdAt(ctx, field)
case "updatedAt":
return ec.fieldContext_ChaosHub_updatedAt(ctx, field)
case "lastSyncedAt":
return ec.fieldContext_ChaosHub_lastSyncedAt(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ChaosHub", 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_addChaosHub_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_addRemoteChaosHub(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_addRemoteChaosHub(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().AddRemoteChaosHub(rctx, fc.Args["projectID"].(string), fc.Args["request"].(model.CreateRemoteChaosHub))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.ChaosHub); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.ChaosHub`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.ChaosHub)
fc.Result = res
return ec.marshalNChaosHub2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHub(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_addRemoteChaosHub(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
return ec.fieldContext_ChaosHub_id(ctx, field)
case "repoURL":
return ec.fieldContext_ChaosHub_repoURL(ctx, field)
case "repoBranch":
return ec.fieldContext_ChaosHub_repoBranch(ctx, field)
case "remoteHub":
return ec.fieldContext_ChaosHub_remoteHub(ctx, field)
case "projectID":
return ec.fieldContext_ChaosHub_projectID(ctx, field)
case "isDefault":
return ec.fieldContext_ChaosHub_isDefault(ctx, field)
case "name":
return ec.fieldContext_ChaosHub_name(ctx, field)
case "tags":
return ec.fieldContext_ChaosHub_tags(ctx, field)
case "createdBy":
return ec.fieldContext_ChaosHub_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_ChaosHub_updatedBy(ctx, field)
case "description":
return ec.fieldContext_ChaosHub_description(ctx, field)
case "hubType":
return ec.fieldContext_ChaosHub_hubType(ctx, field)
case "isPrivate":
return ec.fieldContext_ChaosHub_isPrivate(ctx, field)
case "authType":
return ec.fieldContext_ChaosHub_authType(ctx, field)
case "token":
return ec.fieldContext_ChaosHub_token(ctx, field)
case "userName":
return ec.fieldContext_ChaosHub_userName(ctx, field)
case "password":
return ec.fieldContext_ChaosHub_password(ctx, field)
case "sshPrivateKey":
return ec.fieldContext_ChaosHub_sshPrivateKey(ctx, field)
case "isRemoved":
return ec.fieldContext_ChaosHub_isRemoved(ctx, field)
case "createdAt":
return ec.fieldContext_ChaosHub_createdAt(ctx, field)
case "updatedAt":
return ec.fieldContext_ChaosHub_updatedAt(ctx, field)
case "lastSyncedAt":
return ec.fieldContext_ChaosHub_lastSyncedAt(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ChaosHub", 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_addRemoteChaosHub_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_saveChaosHub(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_saveChaosHub(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().SaveChaosHub(rctx, fc.Args["projectID"].(string), fc.Args["request"].(model.CreateChaosHubRequest))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.ChaosHub); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.ChaosHub`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.ChaosHub)
fc.Result = res
return ec.marshalNChaosHub2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHub(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_saveChaosHub(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
return ec.fieldContext_ChaosHub_id(ctx, field)
case "repoURL":
return ec.fieldContext_ChaosHub_repoURL(ctx, field)
case "repoBranch":
return ec.fieldContext_ChaosHub_repoBranch(ctx, field)
case "remoteHub":
return ec.fieldContext_ChaosHub_remoteHub(ctx, field)
case "projectID":
return ec.fieldContext_ChaosHub_projectID(ctx, field)
case "isDefault":
return ec.fieldContext_ChaosHub_isDefault(ctx, field)
case "name":
return ec.fieldContext_ChaosHub_name(ctx, field)
case "tags":
return ec.fieldContext_ChaosHub_tags(ctx, field)
case "createdBy":
return ec.fieldContext_ChaosHub_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_ChaosHub_updatedBy(ctx, field)
case "description":
return ec.fieldContext_ChaosHub_description(ctx, field)
case "hubType":
return ec.fieldContext_ChaosHub_hubType(ctx, field)
case "isPrivate":
return ec.fieldContext_ChaosHub_isPrivate(ctx, field)
case "authType":
return ec.fieldContext_ChaosHub_authType(ctx, field)
case "token":
return ec.fieldContext_ChaosHub_token(ctx, field)
case "userName":
return ec.fieldContext_ChaosHub_userName(ctx, field)
case "password":
return ec.fieldContext_ChaosHub_password(ctx, field)
case "sshPrivateKey":
return ec.fieldContext_ChaosHub_sshPrivateKey(ctx, field)
case "isRemoved":
return ec.fieldContext_ChaosHub_isRemoved(ctx, field)
case "createdAt":
return ec.fieldContext_ChaosHub_createdAt(ctx, field)
case "updatedAt":
return ec.fieldContext_ChaosHub_updatedAt(ctx, field)
case "lastSyncedAt":
return ec.fieldContext_ChaosHub_lastSyncedAt(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ChaosHub", 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_saveChaosHub_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_syncChaosHub(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_syncChaosHub(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().SyncChaosHub(rctx, fc.Args["id"].(string), fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(string); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, 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)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_syncChaosHub(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_syncChaosHub_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_generateSSHKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_generateSSHKey(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GenerateSSHKey(rctx)
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.SSHKey); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.SSHKey`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.SSHKey)
fc.Result = res
return ec.marshalNSSHKey2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐSSHKey(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_generateSSHKey(_ 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 "publicKey":
return ec.fieldContext_SSHKey_publicKey(ctx, field)
case "privateKey":
return ec.fieldContext_SSHKey_privateKey(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type SSHKey", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Mutation_updateChaosHub(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_updateChaosHub(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().UpdateChaosHub(rctx, fc.Args["projectID"].(string), fc.Args["request"].(model.UpdateChaosHubRequest))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.ChaosHub); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.ChaosHub`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.ChaosHub)
fc.Result = res
return ec.marshalNChaosHub2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHub(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_updateChaosHub(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
return ec.fieldContext_ChaosHub_id(ctx, field)
case "repoURL":
return ec.fieldContext_ChaosHub_repoURL(ctx, field)
case "repoBranch":
return ec.fieldContext_ChaosHub_repoBranch(ctx, field)
case "remoteHub":
return ec.fieldContext_ChaosHub_remoteHub(ctx, field)
case "projectID":
return ec.fieldContext_ChaosHub_projectID(ctx, field)
case "isDefault":
return ec.fieldContext_ChaosHub_isDefault(ctx, field)
case "name":
return ec.fieldContext_ChaosHub_name(ctx, field)
case "tags":
return ec.fieldContext_ChaosHub_tags(ctx, field)
case "createdBy":
return ec.fieldContext_ChaosHub_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_ChaosHub_updatedBy(ctx, field)
case "description":
return ec.fieldContext_ChaosHub_description(ctx, field)
case "hubType":
return ec.fieldContext_ChaosHub_hubType(ctx, field)
case "isPrivate":
return ec.fieldContext_ChaosHub_isPrivate(ctx, field)
case "authType":
return ec.fieldContext_ChaosHub_authType(ctx, field)
case "token":
return ec.fieldContext_ChaosHub_token(ctx, field)
case "userName":
return ec.fieldContext_ChaosHub_userName(ctx, field)
case "password":
return ec.fieldContext_ChaosHub_password(ctx, field)
case "sshPrivateKey":
return ec.fieldContext_ChaosHub_sshPrivateKey(ctx, field)
case "isRemoved":
return ec.fieldContext_ChaosHub_isRemoved(ctx, field)
case "createdAt":
return ec.fieldContext_ChaosHub_createdAt(ctx, field)
case "updatedAt":
return ec.fieldContext_ChaosHub_updatedAt(ctx, field)
case "lastSyncedAt":
return ec.fieldContext_ChaosHub_lastSyncedAt(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ChaosHub", 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_updateChaosHub_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_deleteChaosHub(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_deleteChaosHub(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().DeleteChaosHub(rctx, fc.Args["projectID"].(string), fc.Args["hubID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(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_deleteChaosHub(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_deleteChaosHub_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_createEnvironment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_createEnvironment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().CreateEnvironment(rctx, fc.Args["projectID"].(string), fc.Args["request"].(*model.CreateEnvironmentRequest))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.Environment); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.Environment`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.Environment)
fc.Result = res
return ec.marshalOEnvironment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironment(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_createEnvironment(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 "projectID":
return ec.fieldContext_Environment_projectID(ctx, field)
case "environmentID":
return ec.fieldContext_Environment_environmentID(ctx, field)
case "name":
return ec.fieldContext_Environment_name(ctx, field)
case "description":
return ec.fieldContext_Environment_description(ctx, field)
case "tags":
return ec.fieldContext_Environment_tags(ctx, field)
case "type":
return ec.fieldContext_Environment_type(ctx, field)
case "createdAt":
return ec.fieldContext_Environment_createdAt(ctx, field)
case "createdBy":
return ec.fieldContext_Environment_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_Environment_updatedBy(ctx, field)
case "updatedAt":
return ec.fieldContext_Environment_updatedAt(ctx, field)
case "isRemoved":
return ec.fieldContext_Environment_isRemoved(ctx, field)
case "infraIDs":
return ec.fieldContext_Environment_infraIDs(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Environment", 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_createEnvironment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_updateEnvironment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_updateEnvironment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().UpdateEnvironment(rctx, fc.Args["projectID"].(string), fc.Args["request"].(*model.UpdateEnvironmentRequest))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(string); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, 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)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_updateEnvironment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_updateEnvironment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_deleteEnvironment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_deleteEnvironment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().DeleteEnvironment(rctx, fc.Args["projectID"].(string), fc.Args["environmentID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(string); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, 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)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_deleteEnvironment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_deleteEnvironment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_gitopsNotifier(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_gitopsNotifier(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Mutation().GitopsNotifier(rctx, fc.Args["clusterInfo"].(model.InfraIdentity), fc.Args["experimentID"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_gitopsNotifier(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_gitopsNotifier_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_enableGitOps(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_enableGitOps(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().EnableGitOps(rctx, fc.Args["projectID"].(string), fc.Args["configurations"].(model.GitConfig))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(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_enableGitOps(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_enableGitOps_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_disableGitOps(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_disableGitOps(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().DisableGitOps(rctx, fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(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_disableGitOps(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_disableGitOps_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_updateGitOps(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_updateGitOps(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().UpdateGitOps(rctx, fc.Args["projectID"].(string), fc.Args["configurations"].(model.GitConfig))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(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_updateGitOps(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_updateGitOps_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_createImageRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_createImageRegistry(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().CreateImageRegistry(rctx, fc.Args["projectID"].(string), fc.Args["imageRegistryInfo"].(model.ImageRegistryInput))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.ImageRegistryResponse); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.ImageRegistryResponse`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.ImageRegistryResponse)
fc.Result = res
return ec.marshalNImageRegistryResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_createImageRegistry(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 "isDefault":
return ec.fieldContext_ImageRegistryResponse_isDefault(ctx, field)
case "imageRegistryInfo":
return ec.fieldContext_ImageRegistryResponse_imageRegistryInfo(ctx, field)
case "imageRegistryID":
return ec.fieldContext_ImageRegistryResponse_imageRegistryID(ctx, field)
case "projectID":
return ec.fieldContext_ImageRegistryResponse_projectID(ctx, field)
case "updatedAt":
return ec.fieldContext_ImageRegistryResponse_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_ImageRegistryResponse_createdAt(ctx, field)
case "createdBy":
return ec.fieldContext_ImageRegistryResponse_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_ImageRegistryResponse_updatedBy(ctx, field)
case "isRemoved":
return ec.fieldContext_ImageRegistryResponse_isRemoved(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ImageRegistryResponse", 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_createImageRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_updateImageRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_updateImageRegistry(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().UpdateImageRegistry(rctx, fc.Args["imageRegistryID"].(string), fc.Args["projectID"].(string), fc.Args["imageRegistryInfo"].(model.ImageRegistryInput))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.ImageRegistryResponse); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.ImageRegistryResponse`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.ImageRegistryResponse)
fc.Result = res
return ec.marshalNImageRegistryResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_updateImageRegistry(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 "isDefault":
return ec.fieldContext_ImageRegistryResponse_isDefault(ctx, field)
case "imageRegistryInfo":
return ec.fieldContext_ImageRegistryResponse_imageRegistryInfo(ctx, field)
case "imageRegistryID":
return ec.fieldContext_ImageRegistryResponse_imageRegistryID(ctx, field)
case "projectID":
return ec.fieldContext_ImageRegistryResponse_projectID(ctx, field)
case "updatedAt":
return ec.fieldContext_ImageRegistryResponse_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_ImageRegistryResponse_createdAt(ctx, field)
case "createdBy":
return ec.fieldContext_ImageRegistryResponse_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_ImageRegistryResponse_updatedBy(ctx, field)
case "isRemoved":
return ec.fieldContext_ImageRegistryResponse_isRemoved(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ImageRegistryResponse", 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_updateImageRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_deleteImageRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_deleteImageRegistry(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().DeleteImageRegistry(rctx, fc.Args["imageRegistryID"].(string), fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(string); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, 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)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_deleteImageRegistry(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_deleteImageRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_addProbe(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_addProbe(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().AddProbe(rctx, fc.Args["request"].(model.ProbeRequest), fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.Probe); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.Probe`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.Probe)
fc.Result = res
return ec.marshalNProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbe(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_addProbe(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 "projectID":
return ec.fieldContext_Probe_projectID(ctx, field)
case "name":
return ec.fieldContext_Probe_name(ctx, field)
case "description":
return ec.fieldContext_Probe_description(ctx, field)
case "tags":
return ec.fieldContext_Probe_tags(ctx, field)
case "type":
return ec.fieldContext_Probe_type(ctx, field)
case "infrastructureType":
return ec.fieldContext_Probe_infrastructureType(ctx, field)
case "kubernetesHTTPProperties":
return ec.fieldContext_Probe_kubernetesHTTPProperties(ctx, field)
case "kubernetesCMDProperties":
return ec.fieldContext_Probe_kubernetesCMDProperties(ctx, field)
case "k8sProperties":
return ec.fieldContext_Probe_k8sProperties(ctx, field)
case "promProperties":
return ec.fieldContext_Probe_promProperties(ctx, field)
case "recentExecutions":
return ec.fieldContext_Probe_recentExecutions(ctx, field)
case "referencedBy":
return ec.fieldContext_Probe_referencedBy(ctx, field)
case "updatedAt":
return ec.fieldContext_Probe_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_Probe_createdAt(ctx, field)
case "updatedBy":
return ec.fieldContext_Probe_updatedBy(ctx, field)
case "createdBy":
return ec.fieldContext_Probe_createdBy(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Probe", 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_addProbe_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_updateProbe(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_updateProbe(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().UpdateProbe(rctx, fc.Args["request"].(model.ProbeRequest), fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(string); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, 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)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Mutation_updateProbe(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_updateProbe_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_deleteProbe(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Mutation_deleteProbe(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().DeleteProbe(rctx, fc.Args["probeName"].(string), fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(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_deleteProbe(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_deleteProbe_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _ObjectData_labels(ctx context.Context, field graphql.CollectedField, obj *model.ObjectData) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ObjectData_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 obj.Labels, 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_ObjectData_labels(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ObjectData",
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) _ObjectData_name(ctx context.Context, field graphql.CollectedField, obj *model.ObjectData) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ObjectData_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_ObjectData_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ObjectData",
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) _POST_contentType(ctx context.Context, field graphql.CollectedField, obj *model.Post) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_POST_contentType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ContentType, 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_POST_contentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "POST",
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) _POST_body(ctx context.Context, field graphql.CollectedField, obj *model.Post) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_POST_body(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Body, 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_POST_body(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "POST",
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) _POST_bodyPath(ctx context.Context, field graphql.CollectedField, obj *model.Post) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_POST_bodyPath(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.BodyPath, 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_POST_bodyPath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "POST",
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) _POST_criteria(ctx context.Context, field graphql.CollectedField, obj *model.Post) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_POST_criteria(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Criteria, nil
})
if err != nil {
ec.Error(ctx, 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_POST_criteria(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "POST",
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) _POST_responseCode(ctx context.Context, field graphql.CollectedField, obj *model.Post) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_POST_responseCode(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ResponseCode, nil
})
if err != nil {
ec.Error(ctx, 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_POST_responseCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "POST",
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) _PROMProbe_probeTimeout(ctx context.Context, field graphql.CollectedField, obj *model.PROMProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PROMProbe_probeTimeout(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProbeTimeout, nil
})
if err != nil {
ec.Error(ctx, 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_PROMProbe_probeTimeout(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PROMProbe",
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) _PROMProbe_interval(ctx context.Context, field graphql.CollectedField, obj *model.PROMProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PROMProbe_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
}
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_PROMProbe_interval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PROMProbe",
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) _PROMProbe_retry(ctx context.Context, field graphql.CollectedField, obj *model.PROMProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PROMProbe_retry(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Retry, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_PROMProbe_retry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PROMProbe",
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) _PROMProbe_attempt(ctx context.Context, field graphql.CollectedField, obj *model.PROMProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PROMProbe_attempt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Attempt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_PROMProbe_attempt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PROMProbe",
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) _PROMProbe_probePollingInterval(ctx context.Context, field graphql.CollectedField, obj *model.PROMProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PROMProbe_probePollingInterval(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProbePollingInterval, 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_PROMProbe_probePollingInterval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PROMProbe",
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) _PROMProbe_initialDelay(ctx context.Context, field graphql.CollectedField, obj *model.PROMProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PROMProbe_initialDelay(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InitialDelay, 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_PROMProbe_initialDelay(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PROMProbe",
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) _PROMProbe_evaluationTimeout(ctx context.Context, field graphql.CollectedField, obj *model.PROMProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PROMProbe_evaluationTimeout(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EvaluationTimeout, 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_PROMProbe_evaluationTimeout(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PROMProbe",
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) _PROMProbe_stopOnFailure(ctx context.Context, field graphql.CollectedField, obj *model.PROMProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PROMProbe_stopOnFailure(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.StopOnFailure, 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_PROMProbe_stopOnFailure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PROMProbe",
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) _PROMProbe_endpoint(ctx context.Context, field graphql.CollectedField, obj *model.PROMProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PROMProbe_endpoint(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Endpoint, nil
})
if err != nil {
ec.Error(ctx, 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_PROMProbe_endpoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PROMProbe",
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) _PROMProbe_query(ctx context.Context, field graphql.CollectedField, obj *model.PROMProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PROMProbe_query(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Query, 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_PROMProbe_query(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PROMProbe",
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) _PROMProbe_queryPath(ctx context.Context, field graphql.CollectedField, obj *model.PROMProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PROMProbe_queryPath(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.QueryPath, 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_PROMProbe_queryPath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PROMProbe",
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) _PROMProbe_comparator(ctx context.Context, field graphql.CollectedField, obj *model.PROMProbe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PROMProbe_comparator(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Comparator, nil
})
if err != nil {
ec.Error(ctx, 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.Comparator)
fc.Result = res
return ec.marshalNComparator2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparator(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_PROMProbe_comparator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PROMProbe",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "type":
return ec.fieldContext_Comparator_type(ctx, field)
case "value":
return ec.fieldContext_Comparator_value(ctx, field)
case "criteria":
return ec.fieldContext_Comparator_criteria(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Comparator", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _PackageInformation_packageName(ctx context.Context, field graphql.CollectedField, obj *model.PackageInformation) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PackageInformation_packageName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.PackageName, nil
})
if err != nil {
ec.Error(ctx, 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_PackageInformation_packageName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PackageInformation",
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) _PackageInformation_experiments(ctx context.Context, field graphql.CollectedField, obj *model.PackageInformation) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PackageInformation_experiments(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Experiments, nil
})
if err != nil {
ec.Error(ctx, 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.Experiments)
fc.Result = res
return ec.marshalNExperiments2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentsᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_PackageInformation_experiments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PackageInformation",
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_Experiments_name(ctx, field)
case "CSV":
return ec.fieldContext_Experiments_CSV(ctx, field)
case "desc":
return ec.fieldContext_Experiments_desc(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Experiments", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _PodLogResponse_experimentRunID(ctx context.Context, field graphql.CollectedField, obj *model.PodLogResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PodLogResponse_experimentRunID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentRunID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_PodLogResponse_experimentRunID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PodLogResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _PodLogResponse_podName(ctx context.Context, field graphql.CollectedField, obj *model.PodLogResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PodLogResponse_podName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.PodName, nil
})
if err != nil {
ec.Error(ctx, 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_PodLogResponse_podName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PodLogResponse",
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) _PodLogResponse_podType(ctx context.Context, field graphql.CollectedField, obj *model.PodLogResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PodLogResponse_podType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.PodType, nil
})
if err != nil {
ec.Error(ctx, 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_PodLogResponse_podType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PodLogResponse",
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) _PodLogResponse_log(ctx context.Context, field graphql.CollectedField, obj *model.PodLogResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PodLogResponse_log(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Log, nil
})
if err != nil {
ec.Error(ctx, 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_PodLogResponse_log(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PodLogResponse",
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) _PredefinedExperimentList_experimentName(ctx context.Context, field graphql.CollectedField, obj *model.PredefinedExperimentList) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PredefinedExperimentList_experimentName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentName, nil
})
if err != nil {
ec.Error(ctx, 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_PredefinedExperimentList_experimentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PredefinedExperimentList",
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) _PredefinedExperimentList_experimentCSV(ctx context.Context, field graphql.CollectedField, obj *model.PredefinedExperimentList) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PredefinedExperimentList_experimentCSV(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentCSV, nil
})
if err != nil {
ec.Error(ctx, 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_PredefinedExperimentList_experimentCSV(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PredefinedExperimentList",
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) _PredefinedExperimentList_experimentManifest(ctx context.Context, field graphql.CollectedField, obj *model.PredefinedExperimentList) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_PredefinedExperimentList_experimentManifest(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentManifest, nil
})
if err != nil {
ec.Error(ctx, 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_PredefinedExperimentList_experimentManifest(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "PredefinedExperimentList",
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) _Probe_projectID(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_projectID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProjectID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Probe_projectID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "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 ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _Probe_name(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_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_Probe_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "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")
},
}
return fc, nil
}
func (ec *executionContext) _Probe_description(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Probe_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "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")
},
}
return fc, nil
}
func (ec *executionContext) _Probe_tags(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_tags(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Tags, 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_Probe_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "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")
},
}
return fc, nil
}
func (ec *executionContext) _Probe_type(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_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)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(model.ProbeType)
fc.Result = res
return ec.marshalNProbeType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Probe_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "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 ProbeType does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _Probe_infrastructureType(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_infrastructureType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InfrastructureType, nil
})
if err != nil {
ec.Error(ctx, 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.InfrastructureType)
fc.Result = res
return ec.marshalNInfrastructureType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Probe_infrastructureType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "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 InfrastructureType does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _Probe_kubernetesHTTPProperties(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_kubernetesHTTPProperties(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.KubernetesHTTPProperties, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.KubernetesHTTPProbe)
fc.Result = res
return ec.marshalOKubernetesHTTPProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesHTTPProbe(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Probe_kubernetesHTTPProperties(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Probe",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "probeTimeout":
return ec.fieldContext_KubernetesHTTPProbe_probeTimeout(ctx, field)
case "interval":
return ec.fieldContext_KubernetesHTTPProbe_interval(ctx, field)
case "retry":
return ec.fieldContext_KubernetesHTTPProbe_retry(ctx, field)
case "attempt":
return ec.fieldContext_KubernetesHTTPProbe_attempt(ctx, field)
case "probePollingInterval":
return ec.fieldContext_KubernetesHTTPProbe_probePollingInterval(ctx, field)
case "initialDelay":
return ec.fieldContext_KubernetesHTTPProbe_initialDelay(ctx, field)
case "evaluationTimeout":
return ec.fieldContext_KubernetesHTTPProbe_evaluationTimeout(ctx, field)
case "stopOnFailure":
return ec.fieldContext_KubernetesHTTPProbe_stopOnFailure(ctx, field)
case "url":
return ec.fieldContext_KubernetesHTTPProbe_url(ctx, field)
case "method":
return ec.fieldContext_KubernetesHTTPProbe_method(ctx, field)
case "insecureSkipVerify":
return ec.fieldContext_KubernetesHTTPProbe_insecureSkipVerify(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type KubernetesHTTPProbe", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Probe_kubernetesCMDProperties(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_kubernetesCMDProperties(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.KubernetesCMDProperties, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.KubernetesCMDProbe)
fc.Result = res
return ec.marshalOKubernetesCMDProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesCMDProbe(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Probe_kubernetesCMDProperties(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Probe",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "probeTimeout":
return ec.fieldContext_KubernetesCMDProbe_probeTimeout(ctx, field)
case "interval":
return ec.fieldContext_KubernetesCMDProbe_interval(ctx, field)
case "retry":
return ec.fieldContext_KubernetesCMDProbe_retry(ctx, field)
case "attempt":
return ec.fieldContext_KubernetesCMDProbe_attempt(ctx, field)
case "probePollingInterval":
return ec.fieldContext_KubernetesCMDProbe_probePollingInterval(ctx, field)
case "initialDelay":
return ec.fieldContext_KubernetesCMDProbe_initialDelay(ctx, field)
case "evaluationTimeout":
return ec.fieldContext_KubernetesCMDProbe_evaluationTimeout(ctx, field)
case "stopOnFailure":
return ec.fieldContext_KubernetesCMDProbe_stopOnFailure(ctx, field)
case "command":
return ec.fieldContext_KubernetesCMDProbe_command(ctx, field)
case "comparator":
return ec.fieldContext_KubernetesCMDProbe_comparator(ctx, field)
case "source":
return ec.fieldContext_KubernetesCMDProbe_source(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type KubernetesCMDProbe", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Probe_k8sProperties(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_k8sProperties(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.K8sProperties, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.K8SProbe)
fc.Result = res
return ec.marshalOK8SProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐK8SProbe(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Probe_k8sProperties(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Probe",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "probeTimeout":
return ec.fieldContext_K8SProbe_probeTimeout(ctx, field)
case "interval":
return ec.fieldContext_K8SProbe_interval(ctx, field)
case "retry":
return ec.fieldContext_K8SProbe_retry(ctx, field)
case "attempt":
return ec.fieldContext_K8SProbe_attempt(ctx, field)
case "probePollingInterval":
return ec.fieldContext_K8SProbe_probePollingInterval(ctx, field)
case "initialDelay":
return ec.fieldContext_K8SProbe_initialDelay(ctx, field)
case "evaluationTimeout":
return ec.fieldContext_K8SProbe_evaluationTimeout(ctx, field)
case "stopOnFailure":
return ec.fieldContext_K8SProbe_stopOnFailure(ctx, field)
case "group":
return ec.fieldContext_K8SProbe_group(ctx, field)
case "version":
return ec.fieldContext_K8SProbe_version(ctx, field)
case "resource":
return ec.fieldContext_K8SProbe_resource(ctx, field)
case "namespace":
return ec.fieldContext_K8SProbe_namespace(ctx, field)
case "resourceNames":
return ec.fieldContext_K8SProbe_resourceNames(ctx, field)
case "fieldSelector":
return ec.fieldContext_K8SProbe_fieldSelector(ctx, field)
case "labelSelector":
return ec.fieldContext_K8SProbe_labelSelector(ctx, field)
case "operation":
return ec.fieldContext_K8SProbe_operation(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type K8SProbe", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Probe_promProperties(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_promProperties(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.PromProperties, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.PROMProbe)
fc.Result = res
return ec.marshalOPROMProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPROMProbe(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Probe_promProperties(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Probe",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "probeTimeout":
return ec.fieldContext_PROMProbe_probeTimeout(ctx, field)
case "interval":
return ec.fieldContext_PROMProbe_interval(ctx, field)
case "retry":
return ec.fieldContext_PROMProbe_retry(ctx, field)
case "attempt":
return ec.fieldContext_PROMProbe_attempt(ctx, field)
case "probePollingInterval":
return ec.fieldContext_PROMProbe_probePollingInterval(ctx, field)
case "initialDelay":
return ec.fieldContext_PROMProbe_initialDelay(ctx, field)
case "evaluationTimeout":
return ec.fieldContext_PROMProbe_evaluationTimeout(ctx, field)
case "stopOnFailure":
return ec.fieldContext_PROMProbe_stopOnFailure(ctx, field)
case "endpoint":
return ec.fieldContext_PROMProbe_endpoint(ctx, field)
case "query":
return ec.fieldContext_PROMProbe_query(ctx, field)
case "queryPath":
return ec.fieldContext_PROMProbe_queryPath(ctx, field)
case "comparator":
return ec.fieldContext_PROMProbe_comparator(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type PROMProbe", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Probe_recentExecutions(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_recentExecutions(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RecentExecutions, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]*model.ProbeRecentExecutions)
fc.Result = res
return ec.marshalOProbeRecentExecutions2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeRecentExecutionsᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Probe_recentExecutions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Probe",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "faultName":
return ec.fieldContext_ProbeRecentExecutions_faultName(ctx, field)
case "status":
return ec.fieldContext_ProbeRecentExecutions_status(ctx, field)
case "executedByExperiment":
return ec.fieldContext_ProbeRecentExecutions_executedByExperiment(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ProbeRecentExecutions", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Probe_referencedBy(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_referencedBy(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ReferencedBy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*int)
fc.Result = res
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Probe_referencedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "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) _Probe_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_updatedAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_Probe_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "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")
},
}
return fc, nil
}
func (ec *executionContext) _Probe_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_createdAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CreatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_Probe_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "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")
},
}
return fc, nil
}
func (ec *executionContext) _Probe_updatedBy(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_updatedBy(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedBy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Probe_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Probe",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Probe_createdBy(ctx context.Context, field graphql.CollectedField, obj *model.Probe) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Probe_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 {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Probe_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Probe",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ProbeRecentExecutions_faultName(ctx context.Context, field graphql.CollectedField, obj *model.ProbeRecentExecutions) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ProbeRecentExecutions_faultName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FaultName, nil
})
if err != nil {
ec.Error(ctx, 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_ProbeRecentExecutions_faultName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ProbeRecentExecutions",
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) _ProbeRecentExecutions_status(ctx context.Context, field graphql.CollectedField, obj *model.ProbeRecentExecutions) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ProbeRecentExecutions_status(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Status, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.Status)
fc.Result = res
return ec.marshalNStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐStatus(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ProbeRecentExecutions_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ProbeRecentExecutions",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "verdict":
return ec.fieldContext_Status_verdict(ctx, field)
case "description":
return ec.fieldContext_Status_description(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Status", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _ProbeRecentExecutions_executedByExperiment(ctx context.Context, field graphql.CollectedField, obj *model.ProbeRecentExecutions) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ProbeRecentExecutions_executedByExperiment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExecutedByExperiment, nil
})
if err != nil {
ec.Error(ctx, 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.ExecutedByExperiment)
fc.Result = res
return ec.marshalNExecutedByExperiment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExecutedByExperiment(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ProbeRecentExecutions_executedByExperiment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ProbeRecentExecutions",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "experimentID":
return ec.fieldContext_ExecutedByExperiment_experimentID(ctx, field)
case "experimentName":
return ec.fieldContext_ExecutedByExperiment_experimentName(ctx, field)
case "updatedAt":
return ec.fieldContext_ExecutedByExperiment_updatedAt(ctx, field)
case "updatedBy":
return ec.fieldContext_ExecutedByExperiment_updatedBy(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ExecutedByExperiment", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Provider_name(ctx context.Context, field graphql.CollectedField, obj *model.Provider) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Provider_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_Provider_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Provider",
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_getExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getExperiment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().GetExperiment(rctx, fc.Args["projectID"].(string), fc.Args["experimentID"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.GetExperimentResponse)
fc.Result = res
return ec.marshalNGetExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetExperimentResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getExperiment(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 "experimentDetails":
return ec.fieldContext_GetExperimentResponse_experimentDetails(ctx, field)
case "averageResiliencyScore":
return ec.fieldContext_GetExperimentResponse_averageResiliencyScore(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type GetExperimentResponse", 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_getExperiment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_listExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_listExperiment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().ListExperiment(rctx, fc.Args["projectID"].(string), fc.Args["request"].(model.ListExperimentRequest))
})
if err != nil {
ec.Error(ctx, 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.ListExperimentResponse)
fc.Result = res
return ec.marshalNListExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_listExperiment(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 "totalNoOfExperiments":
return ec.fieldContext_ListExperimentResponse_totalNoOfExperiments(ctx, field)
case "experiments":
return ec.fieldContext_ListExperimentResponse_experiments(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ListExperimentResponse", 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_listExperiment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getExperimentStats(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getExperimentStats(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().GetExperimentStats(rctx, fc.Args["projectID"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.GetExperimentStatsResponse)
fc.Result = res
return ec.marshalNGetExperimentStatsResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetExperimentStatsResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getExperimentStats(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 "totalExperiments":
return ec.fieldContext_GetExperimentStatsResponse_totalExperiments(ctx, field)
case "totalExpCategorizedByResiliencyScore":
return ec.fieldContext_GetExperimentStatsResponse_totalExpCategorizedByResiliencyScore(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type GetExperimentStatsResponse", 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_getExperimentStats_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getExperimentRun(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getExperimentRun(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().GetExperimentRun(rctx, fc.Args["projectID"].(string), fc.Args["experimentRunID"].(*string), fc.Args["notifyID"].(*string), fc.Args["infraID"].(*model.InfraIdentity))
})
if err != nil {
ec.Error(ctx, 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.ExperimentRun)
fc.Result = res
return ec.marshalNExperimentRun2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRun(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getExperimentRun(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 "projectID":
return ec.fieldContext_ExperimentRun_projectID(ctx, field)
case "experimentRunID":
return ec.fieldContext_ExperimentRun_experimentRunID(ctx, field)
case "experimentType":
return ec.fieldContext_ExperimentRun_experimentType(ctx, field)
case "experimentID":
return ec.fieldContext_ExperimentRun_experimentID(ctx, field)
case "weightages":
return ec.fieldContext_ExperimentRun_weightages(ctx, field)
case "updatedAt":
return ec.fieldContext_ExperimentRun_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_ExperimentRun_createdAt(ctx, field)
case "infra":
return ec.fieldContext_ExperimentRun_infra(ctx, field)
case "experimentName":
return ec.fieldContext_ExperimentRun_experimentName(ctx, field)
case "experimentManifest":
return ec.fieldContext_ExperimentRun_experimentManifest(ctx, field)
case "phase":
return ec.fieldContext_ExperimentRun_phase(ctx, field)
case "resiliencyScore":
return ec.fieldContext_ExperimentRun_resiliencyScore(ctx, field)
case "faultsPassed":
return ec.fieldContext_ExperimentRun_faultsPassed(ctx, field)
case "faultsFailed":
return ec.fieldContext_ExperimentRun_faultsFailed(ctx, field)
case "faultsAwaited":
return ec.fieldContext_ExperimentRun_faultsAwaited(ctx, field)
case "faultsStopped":
return ec.fieldContext_ExperimentRun_faultsStopped(ctx, field)
case "faultsNa":
return ec.fieldContext_ExperimentRun_faultsNa(ctx, field)
case "totalFaults":
return ec.fieldContext_ExperimentRun_totalFaults(ctx, field)
case "executionData":
return ec.fieldContext_ExperimentRun_executionData(ctx, field)
case "isRemoved":
return ec.fieldContext_ExperimentRun_isRemoved(ctx, field)
case "updatedBy":
return ec.fieldContext_ExperimentRun_updatedBy(ctx, field)
case "createdBy":
return ec.fieldContext_ExperimentRun_createdBy(ctx, field)
case "notifyID":
return ec.fieldContext_ExperimentRun_notifyID(ctx, field)
case "runSequence":
return ec.fieldContext_ExperimentRun_runSequence(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ExperimentRun", 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_getExperimentRun_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_listExperimentRun(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_listExperimentRun(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().ListExperimentRun(rctx, fc.Args["projectID"].(string), fc.Args["request"].(model.ListExperimentRunRequest))
})
if err != nil {
ec.Error(ctx, 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.ListExperimentRunResponse)
fc.Result = res
return ec.marshalNListExperimentRunResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentRunResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_listExperimentRun(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 "totalNoOfExperimentRuns":
return ec.fieldContext_ListExperimentRunResponse_totalNoOfExperimentRuns(ctx, field)
case "experimentRuns":
return ec.fieldContext_ListExperimentRunResponse_experimentRuns(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ListExperimentRunResponse", 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_listExperimentRun_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getExperimentRunStats(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getExperimentRunStats(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().GetExperimentRunStats(rctx, fc.Args["projectID"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.GetExperimentRunStatsResponse)
fc.Result = res
return ec.marshalNGetExperimentRunStatsResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetExperimentRunStatsResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getExperimentRunStats(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 "totalExperimentRuns":
return ec.fieldContext_GetExperimentRunStatsResponse_totalExperimentRuns(ctx, field)
case "totalCompletedExperimentRuns":
return ec.fieldContext_GetExperimentRunStatsResponse_totalCompletedExperimentRuns(ctx, field)
case "totalTerminatedExperimentRuns":
return ec.fieldContext_GetExperimentRunStatsResponse_totalTerminatedExperimentRuns(ctx, field)
case "totalRunningExperimentRuns":
return ec.fieldContext_GetExperimentRunStatsResponse_totalRunningExperimentRuns(ctx, field)
case "totalStoppedExperimentRuns":
return ec.fieldContext_GetExperimentRunStatsResponse_totalStoppedExperimentRuns(ctx, field)
case "totalErroredExperimentRuns":
return ec.fieldContext_GetExperimentRunStatsResponse_totalErroredExperimentRuns(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type GetExperimentRunStatsResponse", 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_getExperimentRunStats_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getInfra(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getInfra(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetInfra(rctx, fc.Args["projectID"].(string), fc.Args["infraID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.Infra); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.Infra`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.Infra)
fc.Result = res
return ec.marshalNInfra2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getInfra(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 "projectID":
return ec.fieldContext_Infra_projectID(ctx, field)
case "infraID":
return ec.fieldContext_Infra_infraID(ctx, field)
case "name":
return ec.fieldContext_Infra_name(ctx, field)
case "description":
return ec.fieldContext_Infra_description(ctx, field)
case "tags":
return ec.fieldContext_Infra_tags(ctx, field)
case "environmentID":
return ec.fieldContext_Infra_environmentID(ctx, field)
case "platformName":
return ec.fieldContext_Infra_platformName(ctx, field)
case "isActive":
return ec.fieldContext_Infra_isActive(ctx, field)
case "isInfraConfirmed":
return ec.fieldContext_Infra_isInfraConfirmed(ctx, field)
case "isRemoved":
return ec.fieldContext_Infra_isRemoved(ctx, field)
case "updatedAt":
return ec.fieldContext_Infra_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_Infra_createdAt(ctx, field)
case "noOfExperiments":
return ec.fieldContext_Infra_noOfExperiments(ctx, field)
case "noOfExperimentRuns":
return ec.fieldContext_Infra_noOfExperimentRuns(ctx, field)
case "token":
return ec.fieldContext_Infra_token(ctx, field)
case "infraNamespace":
return ec.fieldContext_Infra_infraNamespace(ctx, field)
case "serviceAccount":
return ec.fieldContext_Infra_serviceAccount(ctx, field)
case "infraScope":
return ec.fieldContext_Infra_infraScope(ctx, field)
case "infraNsExists":
return ec.fieldContext_Infra_infraNsExists(ctx, field)
case "infraSaExists":
return ec.fieldContext_Infra_infraSaExists(ctx, field)
case "lastExperimentTimestamp":
return ec.fieldContext_Infra_lastExperimentTimestamp(ctx, field)
case "startTime":
return ec.fieldContext_Infra_startTime(ctx, field)
case "version":
return ec.fieldContext_Infra_version(ctx, field)
case "createdBy":
return ec.fieldContext_Infra_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_Infra_updatedBy(ctx, field)
case "infraType":
return ec.fieldContext_Infra_infraType(ctx, field)
case "updateStatus":
return ec.fieldContext_Infra_updateStatus(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Infra", 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_getInfra_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_listInfras(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_listInfras(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().ListInfras(rctx, fc.Args["projectID"].(string), fc.Args["request"].(*model.ListInfraRequest))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.ListInfraResponse); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.ListInfraResponse`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.ListInfraResponse)
fc.Result = res
return ec.marshalNListInfraResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListInfraResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_listInfras(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 "totalNoOfInfras":
return ec.fieldContext_ListInfraResponse_totalNoOfInfras(ctx, field)
case "infras":
return ec.fieldContext_ListInfraResponse_infras(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ListInfraResponse", 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_listInfras_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getInfraDetails(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getInfraDetails(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetInfraDetails(rctx, fc.Args["infraID"].(string), fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.Infra); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.Infra`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.Infra)
fc.Result = res
return ec.marshalNInfra2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getInfraDetails(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 "projectID":
return ec.fieldContext_Infra_projectID(ctx, field)
case "infraID":
return ec.fieldContext_Infra_infraID(ctx, field)
case "name":
return ec.fieldContext_Infra_name(ctx, field)
case "description":
return ec.fieldContext_Infra_description(ctx, field)
case "tags":
return ec.fieldContext_Infra_tags(ctx, field)
case "environmentID":
return ec.fieldContext_Infra_environmentID(ctx, field)
case "platformName":
return ec.fieldContext_Infra_platformName(ctx, field)
case "isActive":
return ec.fieldContext_Infra_isActive(ctx, field)
case "isInfraConfirmed":
return ec.fieldContext_Infra_isInfraConfirmed(ctx, field)
case "isRemoved":
return ec.fieldContext_Infra_isRemoved(ctx, field)
case "updatedAt":
return ec.fieldContext_Infra_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_Infra_createdAt(ctx, field)
case "noOfExperiments":
return ec.fieldContext_Infra_noOfExperiments(ctx, field)
case "noOfExperimentRuns":
return ec.fieldContext_Infra_noOfExperimentRuns(ctx, field)
case "token":
return ec.fieldContext_Infra_token(ctx, field)
case "infraNamespace":
return ec.fieldContext_Infra_infraNamespace(ctx, field)
case "serviceAccount":
return ec.fieldContext_Infra_serviceAccount(ctx, field)
case "infraScope":
return ec.fieldContext_Infra_infraScope(ctx, field)
case "infraNsExists":
return ec.fieldContext_Infra_infraNsExists(ctx, field)
case "infraSaExists":
return ec.fieldContext_Infra_infraSaExists(ctx, field)
case "lastExperimentTimestamp":
return ec.fieldContext_Infra_lastExperimentTimestamp(ctx, field)
case "startTime":
return ec.fieldContext_Infra_startTime(ctx, field)
case "version":
return ec.fieldContext_Infra_version(ctx, field)
case "createdBy":
return ec.fieldContext_Infra_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_Infra_updatedBy(ctx, field)
case "infraType":
return ec.fieldContext_Infra_infraType(ctx, field)
case "updateStatus":
return ec.fieldContext_Infra_updateStatus(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Infra", 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_getInfraDetails_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getInfraManifest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getInfraManifest(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetInfraManifest(rctx, fc.Args["infraID"].(string), fc.Args["upgrade"].(bool), fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(string); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, 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)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getInfraManifest(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) {
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_getInfraManifest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getInfraStats(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getInfraStats(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetInfraStats(rctx, fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.GetInfraStatsResponse); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.GetInfraStatsResponse`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.GetInfraStatsResponse)
fc.Result = res
return ec.marshalNGetInfraStatsResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetInfraStatsResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getInfraStats(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 "totalInfrastructures":
return ec.fieldContext_GetInfraStatsResponse_totalInfrastructures(ctx, field)
case "totalActiveInfrastructure":
return ec.fieldContext_GetInfraStatsResponse_totalActiveInfrastructure(ctx, field)
case "totalInactiveInfrastructures":
return ec.fieldContext_GetInfraStatsResponse_totalInactiveInfrastructures(ctx, field)
case "totalConfirmedInfrastructure":
return ec.fieldContext_GetInfraStatsResponse_totalConfirmedInfrastructure(ctx, field)
case "totalNonConfirmedInfrastructures":
return ec.fieldContext_GetInfraStatsResponse_totalNonConfirmedInfrastructures(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type GetInfraStatsResponse", 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_getInfraStats_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getVersionDetails(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getVersionDetails(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetVersionDetails(rctx, fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.InfraVersionDetails); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.InfraVersionDetails`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.InfraVersionDetails)
fc.Result = res
return ec.marshalNInfraVersionDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraVersionDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getVersionDetails(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 "latestVersion":
return ec.fieldContext_InfraVersionDetails_latestVersion(ctx, field)
case "compatibleVersions":
return ec.fieldContext_InfraVersionDetails_compatibleVersions(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type InfraVersionDetails", 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_getVersionDetails_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getServerVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getServerVersion(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().GetServerVersion(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.(*model.ServerVersionResponse)
fc.Result = res
return ec.marshalNServerVersionResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐServerVersionResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getServerVersion(_ 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 "key":
return ec.fieldContext_ServerVersionResponse_key(ctx, field)
case "value":
return ec.fieldContext_ServerVersionResponse_value(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ServerVersionResponse", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Query_listChaosFaults(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_listChaosFaults(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().ListChaosFaults(rctx, fc.Args["hubID"].(string), fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.([]*model.Chart); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.Chart`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]*model.Chart)
fc.Result = res
return ec.marshalNChart2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChartᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_listChaosFaults(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 "apiVersion":
return ec.fieldContext_Chart_apiVersion(ctx, field)
case "kind":
return ec.fieldContext_Chart_kind(ctx, field)
case "metadata":
return ec.fieldContext_Chart_metadata(ctx, field)
case "spec":
return ec.fieldContext_Chart_spec(ctx, field)
case "packageInfo":
return ec.fieldContext_Chart_packageInfo(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Chart", 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_listChaosFaults_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getChaosFault(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getChaosFault(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetChaosFault(rctx, fc.Args["projectID"].(string), fc.Args["request"].(model.ExperimentRequest))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.FaultDetails); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.FaultDetails`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.FaultDetails)
fc.Result = res
return ec.marshalNFaultDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐFaultDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getChaosFault(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 "fault":
return ec.fieldContext_FaultDetails_fault(ctx, field)
case "engine":
return ec.fieldContext_FaultDetails_engine(ctx, field)
case "csv":
return ec.fieldContext_FaultDetails_csv(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type FaultDetails", 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_getChaosFault_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_listChaosHub(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_listChaosHub(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().ListChaosHub(rctx, fc.Args["projectID"].(string), fc.Args["request"].(*model.ListChaosHubRequest))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.([]*model.ChaosHubStatus); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.ChaosHubStatus`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]*model.ChaosHubStatus)
fc.Result = res
return ec.marshalNChaosHubStatus2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHubStatus(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_listChaosHub(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 "id":
return ec.fieldContext_ChaosHubStatus_id(ctx, field)
case "repoURL":
return ec.fieldContext_ChaosHubStatus_repoURL(ctx, field)
case "repoBranch":
return ec.fieldContext_ChaosHubStatus_repoBranch(ctx, field)
case "remoteHub":
return ec.fieldContext_ChaosHubStatus_remoteHub(ctx, field)
case "isAvailable":
return ec.fieldContext_ChaosHubStatus_isAvailable(ctx, field)
case "totalFaults":
return ec.fieldContext_ChaosHubStatus_totalFaults(ctx, field)
case "totalExperiments":
return ec.fieldContext_ChaosHubStatus_totalExperiments(ctx, field)
case "name":
return ec.fieldContext_ChaosHubStatus_name(ctx, field)
case "hubType":
return ec.fieldContext_ChaosHubStatus_hubType(ctx, field)
case "isPrivate":
return ec.fieldContext_ChaosHubStatus_isPrivate(ctx, field)
case "authType":
return ec.fieldContext_ChaosHubStatus_authType(ctx, field)
case "token":
return ec.fieldContext_ChaosHubStatus_token(ctx, field)
case "userName":
return ec.fieldContext_ChaosHubStatus_userName(ctx, field)
case "password":
return ec.fieldContext_ChaosHubStatus_password(ctx, field)
case "isRemoved":
return ec.fieldContext_ChaosHubStatus_isRemoved(ctx, field)
case "sshPrivateKey":
return ec.fieldContext_ChaosHubStatus_sshPrivateKey(ctx, field)
case "sshPublicKey":
return ec.fieldContext_ChaosHubStatus_sshPublicKey(ctx, field)
case "lastSyncedAt":
return ec.fieldContext_ChaosHubStatus_lastSyncedAt(ctx, field)
case "tags":
return ec.fieldContext_ChaosHubStatus_tags(ctx, field)
case "createdBy":
return ec.fieldContext_ChaosHubStatus_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_ChaosHubStatus_updatedBy(ctx, field)
case "createdAt":
return ec.fieldContext_ChaosHubStatus_createdAt(ctx, field)
case "updatedAt":
return ec.fieldContext_ChaosHubStatus_updatedAt(ctx, field)
case "description":
return ec.fieldContext_ChaosHubStatus_description(ctx, field)
case "isDefault":
return ec.fieldContext_ChaosHubStatus_isDefault(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ChaosHubStatus", 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_listChaosHub_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getChaosHub(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getChaosHub(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetChaosHub(rctx, fc.Args["projectID"].(string), fc.Args["chaosHubID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.ChaosHubStatus); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.ChaosHubStatus`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.ChaosHubStatus)
fc.Result = res
return ec.marshalNChaosHubStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHubStatus(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getChaosHub(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 "id":
return ec.fieldContext_ChaosHubStatus_id(ctx, field)
case "repoURL":
return ec.fieldContext_ChaosHubStatus_repoURL(ctx, field)
case "repoBranch":
return ec.fieldContext_ChaosHubStatus_repoBranch(ctx, field)
case "remoteHub":
return ec.fieldContext_ChaosHubStatus_remoteHub(ctx, field)
case "isAvailable":
return ec.fieldContext_ChaosHubStatus_isAvailable(ctx, field)
case "totalFaults":
return ec.fieldContext_ChaosHubStatus_totalFaults(ctx, field)
case "totalExperiments":
return ec.fieldContext_ChaosHubStatus_totalExperiments(ctx, field)
case "name":
return ec.fieldContext_ChaosHubStatus_name(ctx, field)
case "hubType":
return ec.fieldContext_ChaosHubStatus_hubType(ctx, field)
case "isPrivate":
return ec.fieldContext_ChaosHubStatus_isPrivate(ctx, field)
case "authType":
return ec.fieldContext_ChaosHubStatus_authType(ctx, field)
case "token":
return ec.fieldContext_ChaosHubStatus_token(ctx, field)
case "userName":
return ec.fieldContext_ChaosHubStatus_userName(ctx, field)
case "password":
return ec.fieldContext_ChaosHubStatus_password(ctx, field)
case "isRemoved":
return ec.fieldContext_ChaosHubStatus_isRemoved(ctx, field)
case "sshPrivateKey":
return ec.fieldContext_ChaosHubStatus_sshPrivateKey(ctx, field)
case "sshPublicKey":
return ec.fieldContext_ChaosHubStatus_sshPublicKey(ctx, field)
case "lastSyncedAt":
return ec.fieldContext_ChaosHubStatus_lastSyncedAt(ctx, field)
case "tags":
return ec.fieldContext_ChaosHubStatus_tags(ctx, field)
case "createdBy":
return ec.fieldContext_ChaosHubStatus_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_ChaosHubStatus_updatedBy(ctx, field)
case "createdAt":
return ec.fieldContext_ChaosHubStatus_createdAt(ctx, field)
case "updatedAt":
return ec.fieldContext_ChaosHubStatus_updatedAt(ctx, field)
case "description":
return ec.fieldContext_ChaosHubStatus_description(ctx, field)
case "isDefault":
return ec.fieldContext_ChaosHubStatus_isDefault(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ChaosHubStatus", 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_getChaosHub_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_listPredefinedExperiments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_listPredefinedExperiments(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().ListPredefinedExperiments(rctx, fc.Args["hubID"].(string), fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.([]*model.PredefinedExperimentList); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.PredefinedExperimentList`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]*model.PredefinedExperimentList)
fc.Result = res
return ec.marshalNPredefinedExperimentList2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPredefinedExperimentListᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_listPredefinedExperiments(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 "experimentName":
return ec.fieldContext_PredefinedExperimentList_experimentName(ctx, field)
case "experimentCSV":
return ec.fieldContext_PredefinedExperimentList_experimentCSV(ctx, field)
case "experimentManifest":
return ec.fieldContext_PredefinedExperimentList_experimentManifest(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type PredefinedExperimentList", 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_listPredefinedExperiments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getPredefinedExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getPredefinedExperiment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetPredefinedExperiment(rctx, fc.Args["hubID"].(string), fc.Args["experimentName"].([]string), fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.([]*model.PredefinedExperimentList); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.PredefinedExperimentList`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]*model.PredefinedExperimentList)
fc.Result = res
return ec.marshalNPredefinedExperimentList2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPredefinedExperimentListᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getPredefinedExperiment(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 "experimentName":
return ec.fieldContext_PredefinedExperimentList_experimentName(ctx, field)
case "experimentCSV":
return ec.fieldContext_PredefinedExperimentList_experimentCSV(ctx, field)
case "experimentManifest":
return ec.fieldContext_PredefinedExperimentList_experimentManifest(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type PredefinedExperimentList", 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_getPredefinedExperiment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getChaosHubStats(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getChaosHubStats(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetChaosHubStats(rctx, fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.GetChaosHubStatsResponse); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.GetChaosHubStatsResponse`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.GetChaosHubStatsResponse)
fc.Result = res
return ec.marshalNGetChaosHubStatsResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetChaosHubStatsResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getChaosHubStats(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 "totalChaosHubs":
return ec.fieldContext_GetChaosHubStatsResponse_totalChaosHubs(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type GetChaosHubStatsResponse", 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_getChaosHubStats_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getEnvironment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getEnvironment(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetEnvironment(rctx, fc.Args["projectID"].(string), fc.Args["environmentID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.Environment); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.Environment`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.Environment)
fc.Result = res
return ec.marshalOEnvironment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironment(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getEnvironment(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 "projectID":
return ec.fieldContext_Environment_projectID(ctx, field)
case "environmentID":
return ec.fieldContext_Environment_environmentID(ctx, field)
case "name":
return ec.fieldContext_Environment_name(ctx, field)
case "description":
return ec.fieldContext_Environment_description(ctx, field)
case "tags":
return ec.fieldContext_Environment_tags(ctx, field)
case "type":
return ec.fieldContext_Environment_type(ctx, field)
case "createdAt":
return ec.fieldContext_Environment_createdAt(ctx, field)
case "createdBy":
return ec.fieldContext_Environment_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_Environment_updatedBy(ctx, field)
case "updatedAt":
return ec.fieldContext_Environment_updatedAt(ctx, field)
case "isRemoved":
return ec.fieldContext_Environment_isRemoved(ctx, field)
case "infraIDs":
return ec.fieldContext_Environment_infraIDs(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Environment", 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_getEnvironment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_listEnvironments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_listEnvironments(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().ListEnvironments(rctx, fc.Args["projectID"].(string), fc.Args["request"].(*model.ListEnvironmentRequest))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.ListEnvironmentResponse); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.ListEnvironmentResponse`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.ListEnvironmentResponse)
fc.Result = res
return ec.marshalOListEnvironmentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListEnvironmentResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_listEnvironments(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 "totalNoOfEnvironments":
return ec.fieldContext_ListEnvironmentResponse_totalNoOfEnvironments(ctx, field)
case "environments":
return ec.fieldContext_ListEnvironmentResponse_environments(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ListEnvironmentResponse", 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_listEnvironments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getGitOpsDetails(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getGitOpsDetails(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetGitOpsDetails(rctx, fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.GitConfigResponse); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.GitConfigResponse`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.GitConfigResponse)
fc.Result = res
return ec.marshalNGitConfigResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGitConfigResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getGitOpsDetails(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 "enabled":
return ec.fieldContext_GitConfigResponse_enabled(ctx, field)
case "projectID":
return ec.fieldContext_GitConfigResponse_projectID(ctx, field)
case "branch":
return ec.fieldContext_GitConfigResponse_branch(ctx, field)
case "repoURL":
return ec.fieldContext_GitConfigResponse_repoURL(ctx, field)
case "authType":
return ec.fieldContext_GitConfigResponse_authType(ctx, field)
case "token":
return ec.fieldContext_GitConfigResponse_token(ctx, field)
case "userName":
return ec.fieldContext_GitConfigResponse_userName(ctx, field)
case "password":
return ec.fieldContext_GitConfigResponse_password(ctx, field)
case "sshPrivateKey":
return ec.fieldContext_GitConfigResponse_sshPrivateKey(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type GitConfigResponse", 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_getGitOpsDetails_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_listImageRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_listImageRegistry(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().ListImageRegistry(rctx, fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.([]*model.ImageRegistryResponse); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.ImageRegistryResponse`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]*model.ImageRegistryResponse)
fc.Result = res
return ec.marshalOImageRegistryResponse2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryResponseᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_listImageRegistry(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 "isDefault":
return ec.fieldContext_ImageRegistryResponse_isDefault(ctx, field)
case "imageRegistryInfo":
return ec.fieldContext_ImageRegistryResponse_imageRegistryInfo(ctx, field)
case "imageRegistryID":
return ec.fieldContext_ImageRegistryResponse_imageRegistryID(ctx, field)
case "projectID":
return ec.fieldContext_ImageRegistryResponse_projectID(ctx, field)
case "updatedAt":
return ec.fieldContext_ImageRegistryResponse_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_ImageRegistryResponse_createdAt(ctx, field)
case "createdBy":
return ec.fieldContext_ImageRegistryResponse_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_ImageRegistryResponse_updatedBy(ctx, field)
case "isRemoved":
return ec.fieldContext_ImageRegistryResponse_isRemoved(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ImageRegistryResponse", 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_listImageRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getImageRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getImageRegistry(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetImageRegistry(rctx, fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.ImageRegistryResponse); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.ImageRegistryResponse`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.ImageRegistryResponse)
fc.Result = res
return ec.marshalNImageRegistryResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getImageRegistry(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 "isDefault":
return ec.fieldContext_ImageRegistryResponse_isDefault(ctx, field)
case "imageRegistryInfo":
return ec.fieldContext_ImageRegistryResponse_imageRegistryInfo(ctx, field)
case "imageRegistryID":
return ec.fieldContext_ImageRegistryResponse_imageRegistryID(ctx, field)
case "projectID":
return ec.fieldContext_ImageRegistryResponse_projectID(ctx, field)
case "updatedAt":
return ec.fieldContext_ImageRegistryResponse_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_ImageRegistryResponse_createdAt(ctx, field)
case "createdBy":
return ec.fieldContext_ImageRegistryResponse_createdBy(ctx, field)
case "updatedBy":
return ec.fieldContext_ImageRegistryResponse_updatedBy(ctx, field)
case "isRemoved":
return ec.fieldContext_ImageRegistryResponse_isRemoved(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ImageRegistryResponse", 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_getImageRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_listProbes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_listProbes(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().ListProbes(rctx, fc.Args["projectID"].(string), fc.Args["infrastructureType"].(*model.InfrastructureType), fc.Args["probeNames"].([]string), fc.Args["filter"].(*model.ProbeFilterInput))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.([]*model.Probe); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.Probe`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]*model.Probe)
fc.Result = res
return ec.marshalNProbe2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbe(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_listProbes(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 "projectID":
return ec.fieldContext_Probe_projectID(ctx, field)
case "name":
return ec.fieldContext_Probe_name(ctx, field)
case "description":
return ec.fieldContext_Probe_description(ctx, field)
case "tags":
return ec.fieldContext_Probe_tags(ctx, field)
case "type":
return ec.fieldContext_Probe_type(ctx, field)
case "infrastructureType":
return ec.fieldContext_Probe_infrastructureType(ctx, field)
case "kubernetesHTTPProperties":
return ec.fieldContext_Probe_kubernetesHTTPProperties(ctx, field)
case "kubernetesCMDProperties":
return ec.fieldContext_Probe_kubernetesCMDProperties(ctx, field)
case "k8sProperties":
return ec.fieldContext_Probe_k8sProperties(ctx, field)
case "promProperties":
return ec.fieldContext_Probe_promProperties(ctx, field)
case "recentExecutions":
return ec.fieldContext_Probe_recentExecutions(ctx, field)
case "referencedBy":
return ec.fieldContext_Probe_referencedBy(ctx, field)
case "updatedAt":
return ec.fieldContext_Probe_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_Probe_createdAt(ctx, field)
case "updatedBy":
return ec.fieldContext_Probe_updatedBy(ctx, field)
case "createdBy":
return ec.fieldContext_Probe_createdBy(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Probe", 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_listProbes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getProbe(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getProbe(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetProbe(rctx, fc.Args["projectID"].(string), fc.Args["probeName"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.Probe); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.Probe`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.Probe)
fc.Result = res
return ec.marshalNProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbe(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getProbe(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 "projectID":
return ec.fieldContext_Probe_projectID(ctx, field)
case "name":
return ec.fieldContext_Probe_name(ctx, field)
case "description":
return ec.fieldContext_Probe_description(ctx, field)
case "tags":
return ec.fieldContext_Probe_tags(ctx, field)
case "type":
return ec.fieldContext_Probe_type(ctx, field)
case "infrastructureType":
return ec.fieldContext_Probe_infrastructureType(ctx, field)
case "kubernetesHTTPProperties":
return ec.fieldContext_Probe_kubernetesHTTPProperties(ctx, field)
case "kubernetesCMDProperties":
return ec.fieldContext_Probe_kubernetesCMDProperties(ctx, field)
case "k8sProperties":
return ec.fieldContext_Probe_k8sProperties(ctx, field)
case "promProperties":
return ec.fieldContext_Probe_promProperties(ctx, field)
case "recentExecutions":
return ec.fieldContext_Probe_recentExecutions(ctx, field)
case "referencedBy":
return ec.fieldContext_Probe_referencedBy(ctx, field)
case "updatedAt":
return ec.fieldContext_Probe_updatedAt(ctx, field)
case "createdAt":
return ec.fieldContext_Probe_createdAt(ctx, field)
case "updatedBy":
return ec.fieldContext_Probe_updatedBy(ctx, field)
case "createdBy":
return ec.fieldContext_Probe_createdBy(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Probe", 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_getProbe_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getProbeYAML(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getProbeYAML(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetProbeYaml(rctx, fc.Args["projectID"].(string), fc.Args["request"].(model.GetProbeYAMLRequest))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(string); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, 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)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getProbeYAML(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) {
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_getProbeYAML_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getProbeReference(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getProbeReference(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetProbeReference(rctx, fc.Args["projectID"].(string), fc.Args["probeName"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(*model.GetProbeReferenceResponse); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.GetProbeReferenceResponse`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.GetProbeReferenceResponse)
fc.Result = res
return ec.marshalNGetProbeReferenceResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbeReferenceResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getProbeReference(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 "projectID":
return ec.fieldContext_GetProbeReferenceResponse_projectID(ctx, field)
case "name":
return ec.fieldContext_GetProbeReferenceResponse_name(ctx, field)
case "totalRuns":
return ec.fieldContext_GetProbeReferenceResponse_totalRuns(ctx, field)
case "recentExecutions":
return ec.fieldContext_GetProbeReferenceResponse_recentExecutions(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type GetProbeReferenceResponse", 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_getProbeReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_getProbesInExperimentRun(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_getProbesInExperimentRun(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().GetProbesInExperimentRun(rctx, fc.Args["projectID"].(string), fc.Args["experimentRunID"].(string), fc.Args["faultName"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.([]*model.GetProbesInExperimentRunResponse); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.GetProbesInExperimentRunResponse`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]*model.GetProbesInExperimentRunResponse)
fc.Result = res
return ec.marshalNGetProbesInExperimentRunResponse2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbesInExperimentRunResponse(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query_getProbesInExperimentRun(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 "probe":
return ec.fieldContext_GetProbesInExperimentRunResponse_probe(ctx, field)
case "mode":
return ec.fieldContext_GetProbesInExperimentRunResponse_mode(ctx, field)
case "status":
return ec.fieldContext_GetProbesInExperimentRunResponse_status(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type GetProbesInExperimentRunResponse", 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_getProbesInExperimentRun_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_validateUniqueProbe(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query_validateUniqueProbe(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := 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().ValidateUniqueProbe(rctx, fc.Args["projectID"].(string), fc.Args["probeName"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(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_Query_validateUniqueProbe(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) {
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_validateUniqueProbe_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query___type(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.introspectType(fc.Args["name"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "kind":
return ec.fieldContext___Type_kind(ctx, field)
case "name":
return ec.fieldContext___Type_name(ctx, field)
case "description":
return ec.fieldContext___Type_description(ctx, field)
case "fields":
return ec.fieldContext___Type_fields(ctx, field)
case "interfaces":
return ec.fieldContext___Type_interfaces(ctx, field)
case "possibleTypes":
return ec.fieldContext___Type_possibleTypes(ctx, field)
case "enumValues":
return ec.fieldContext___Type_enumValues(ctx, field)
case "inputFields":
return ec.fieldContext___Type_inputFields(ctx, field)
case "ofType":
return ec.fieldContext___Type_ofType(ctx, field)
case "specifiedByURL":
return ec.fieldContext___Type_specifiedByURL(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Query___schema(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.introspectSchema()
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Schema)
fc.Result = res
return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "description":
return ec.fieldContext___Schema_description(ctx, field)
case "types":
return ec.fieldContext___Schema_types(ctx, field)
case "queryType":
return ec.fieldContext___Schema_queryType(ctx, field)
case "mutationType":
return ec.fieldContext___Schema_mutationType(ctx, field)
case "subscriptionType":
return ec.fieldContext___Schema_subscriptionType(ctx, field)
case "directives":
return ec.fieldContext___Schema_directives(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _RecentExecutions_faultName(ctx context.Context, field graphql.CollectedField, obj *model.RecentExecutions) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RecentExecutions_faultName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FaultName, nil
})
if err != nil {
ec.Error(ctx, 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_RecentExecutions_faultName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RecentExecutions",
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) _RecentExecutions_mode(ctx context.Context, field graphql.CollectedField, obj *model.RecentExecutions) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RecentExecutions_mode(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Mode, nil
})
if err != nil {
ec.Error(ctx, 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.Mode)
fc.Result = res
return ec.marshalNMode2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMode(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_RecentExecutions_mode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RecentExecutions",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Mode does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _RecentExecutions_executionHistory(ctx context.Context, field graphql.CollectedField, obj *model.RecentExecutions) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RecentExecutions_executionHistory(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExecutionHistory, nil
})
if err != nil {
ec.Error(ctx, 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.ExecutionHistory)
fc.Result = res
return ec.marshalNExecutionHistory2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExecutionHistoryᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_RecentExecutions_executionHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RecentExecutions",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "mode":
return ec.fieldContext_ExecutionHistory_mode(ctx, field)
case "faultName":
return ec.fieldContext_ExecutionHistory_faultName(ctx, field)
case "status":
return ec.fieldContext_ExecutionHistory_status(ctx, field)
case "executedByExperiment":
return ec.fieldContext_ExecutionHistory_executedByExperiment(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type ExecutionHistory", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _RecentExperimentRun_experimentRunID(ctx context.Context, field graphql.CollectedField, obj *model.RecentExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RecentExperimentRun_experimentRunID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentRunID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_RecentExperimentRun_experimentRunID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RecentExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _RecentExperimentRun_phase(ctx context.Context, field graphql.CollectedField, obj *model.RecentExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RecentExperimentRun_phase(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
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)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_RecentExperimentRun_phase(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RecentExperimentRun",
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) _RecentExperimentRun_resiliencyScore(ctx context.Context, field graphql.CollectedField, obj *model.RecentExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RecentExperimentRun_resiliencyScore(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ResiliencyScore, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*float64)
fc.Result = res
return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_RecentExperimentRun_resiliencyScore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RecentExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Float does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _RecentExperimentRun_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.RecentExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RecentExperimentRun_updatedAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_RecentExperimentRun_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RecentExperimentRun",
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) _RecentExperimentRun_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.RecentExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RecentExperimentRun_createdAt(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CreatedAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_RecentExperimentRun_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RecentExperimentRun",
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) _RecentExperimentRun_createdBy(ctx context.Context, field graphql.CollectedField, obj *model.RecentExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RecentExperimentRun_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 {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_RecentExperimentRun_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RecentExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _RecentExperimentRun_updatedBy(ctx context.Context, field graphql.CollectedField, obj *model.RecentExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RecentExperimentRun_updatedBy(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UpdatedBy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*model.UserDetails)
fc.Result = res
return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_RecentExperimentRun_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RecentExperimentRun",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "userID":
return ec.fieldContext_UserDetails_userID(ctx, field)
case "username":
return ec.fieldContext_UserDetails_username(ctx, field)
case "email":
return ec.fieldContext_UserDetails_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type UserDetails", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _RecentExperimentRun_runSequence(ctx context.Context, field graphql.CollectedField, obj *model.RecentExperimentRun) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RecentExperimentRun_runSequence(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RunSequence, nil
})
if err != nil {
ec.Error(ctx, 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_RecentExperimentRun_runSequence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RecentExperimentRun",
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) _RegisterInfraResponse_token(ctx context.Context, field graphql.CollectedField, obj *model.RegisterInfraResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RegisterInfraResponse_token(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Token, nil
})
if err != nil {
ec.Error(ctx, 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_RegisterInfraResponse_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RegisterInfraResponse",
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) _RegisterInfraResponse_infraID(ctx context.Context, field graphql.CollectedField, obj *model.RegisterInfraResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RegisterInfraResponse_infraID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InfraID, nil
})
if err != nil {
ec.Error(ctx, 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_RegisterInfraResponse_infraID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RegisterInfraResponse",
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) _RegisterInfraResponse_name(ctx context.Context, field graphql.CollectedField, obj *model.RegisterInfraResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RegisterInfraResponse_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_RegisterInfraResponse_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RegisterInfraResponse",
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) _RegisterInfraResponse_manifest(ctx context.Context, field graphql.CollectedField, obj *model.RegisterInfraResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RegisterInfraResponse_manifest(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Manifest, nil
})
if err != nil {
ec.Error(ctx, 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_RegisterInfraResponse_manifest(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RegisterInfraResponse",
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) _ResilienceScoreCategory_id(ctx context.Context, field graphql.CollectedField, obj *model.ResilienceScoreCategory) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ResilienceScoreCategory_id(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_ResilienceScoreCategory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ResilienceScoreCategory",
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) _ResilienceScoreCategory_count(ctx context.Context, field graphql.CollectedField, obj *model.ResilienceScoreCategory) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ResilienceScoreCategory_count(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Count, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_ResilienceScoreCategory_count(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ResilienceScoreCategory",
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) _RunChaosExperimentResponse_notifyID(ctx context.Context, field graphql.CollectedField, obj *model.RunChaosExperimentResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_RunChaosExperimentResponse_notifyID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.NotifyID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_RunChaosExperimentResponse_notifyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "RunChaosExperimentResponse",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _SSHKey_publicKey(ctx context.Context, field graphql.CollectedField, obj *model.SSHKey) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_SSHKey_publicKey(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.PublicKey, nil
})
if err != nil {
ec.Error(ctx, 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_SSHKey_publicKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "SSHKey",
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) _SSHKey_privateKey(ctx context.Context, field graphql.CollectedField, obj *model.SSHKey) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_SSHKey_privateKey(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
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)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_SSHKey_privateKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "SSHKey",
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) _ServerVersionResponse_key(ctx context.Context, field graphql.CollectedField, obj *model.ServerVersionResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ServerVersionResponse_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_ServerVersionResponse_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ServerVersionResponse",
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) _ServerVersionResponse_value(ctx context.Context, field graphql.CollectedField, obj *model.ServerVersionResponse) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_ServerVersionResponse_value(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Value, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_ServerVersionResponse_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "ServerVersionResponse",
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) _Spec_displayName(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_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_Spec_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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) _Spec_categoryDescription(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_categoryDescription(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CategoryDescription, nil
})
if err != nil {
ec.Error(ctx, 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_Spec_categoryDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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) _Spec_keywords(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_keywords(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Keywords, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]string)
fc.Result = res
return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Spec_keywords(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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) _Spec_maturity(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_maturity(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Maturity, nil
})
if err != nil {
ec.Error(ctx, 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_Spec_maturity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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) _Spec_maintainers(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_maintainers(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Maintainers, nil
})
if err != nil {
ec.Error(ctx, 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.Maintainer)
fc.Result = res
return ec.marshalNMaintainer2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMaintainerᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Spec_maintainers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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_Maintainer_name(ctx, field)
case "email":
return ec.fieldContext_Maintainer_email(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Maintainer", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Spec_minKubeVersion(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_minKubeVersion(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.MinKubeVersion, nil
})
if err != nil {
ec.Error(ctx, 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_Spec_minKubeVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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) _Spec_provider(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_provider(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Provider, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*model.Provider)
fc.Result = res
return ec.marshalNProvider2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProvider(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Spec_provider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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_Provider_name(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Provider", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Spec_links(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_links(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Links, nil
})
if err != nil {
ec.Error(ctx, 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.Link)
fc.Result = res
return ec.marshalNLink2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐLinkᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Spec_links(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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_Link_name(ctx, field)
case "url":
return ec.fieldContext_Link_url(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Link", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Spec_faults(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_faults(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Faults, nil
})
if err != nil {
ec.Error(ctx, 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.FaultList)
fc.Result = res
return ec.marshalNFaultList2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐFaultListᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Spec_faults(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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_FaultList_name(ctx, field)
case "displayName":
return ec.fieldContext_FaultList_displayName(ctx, field)
case "description":
return ec.fieldContext_FaultList_description(ctx, field)
case "plan":
return ec.fieldContext_FaultList_plan(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type FaultList", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) _Spec_experiments(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_experiments(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Experiments, 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_Spec_experiments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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) _Spec_chaosExpCRDLink(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_chaosExpCRDLink(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ChaosExpCRDLink, nil
})
if err != nil {
ec.Error(ctx, 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_Spec_chaosExpCRDLink(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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) _Spec_platforms(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_platforms(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Platforms, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]string)
fc.Result = res
return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Spec_platforms(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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) _Spec_chaosType(ctx context.Context, field graphql.CollectedField, obj *model.Spec) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Spec_chaosType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ChaosType, 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_Spec_chaosType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Spec",
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) _Status_verdict(ctx context.Context, field graphql.CollectedField, obj *model.Status) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Status_verdict(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Verdict, nil
})
if err != nil {
ec.Error(ctx, 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.ProbeVerdict)
fc.Result = res
return ec.marshalNProbeVerdict2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeVerdict(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Status_verdict(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "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 ProbeVerdict does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _Status_description(ctx context.Context, field graphql.CollectedField, obj *model.Status) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Status_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Status_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "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 fc, nil
}
func (ec *executionContext) _StopExperimentRunsRequest_projectID(ctx context.Context, field graphql.CollectedField, obj *model.StopExperimentRunsRequest) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_StopExperimentRunsRequest_projectID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ProjectID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNID2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_StopExperimentRunsRequest_projectID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "StopExperimentRunsRequest",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _StopExperimentRunsRequest_experimentID(ctx context.Context, field graphql.CollectedField, obj *model.StopExperimentRunsRequest) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_StopExperimentRunsRequest_experimentID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentID, nil
})
if err != nil {
ec.Error(ctx, 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_StopExperimentRunsRequest_experimentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "StopExperimentRunsRequest",
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) _StopExperimentRunsRequest_experimentRunID(ctx context.Context, field graphql.CollectedField, obj *model.StopExperimentRunsRequest) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_StopExperimentRunsRequest_experimentRunID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ExperimentRunID, 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_StopExperimentRunsRequest_experimentRunID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "StopExperimentRunsRequest",
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) _Subscription_getInfraEvents(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) {
fc, err := ec.fieldContext_Subscription_getInfraEvents(ctx, field)
if err != nil {
return nil
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
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.Subscription().GetInfraEvents(rctx, fc.Args["projectID"].(string))
}
directive1 := func(ctx context.Context) (interface{}, error) {
if ec.directives.Authorized == nil {
return nil, errors.New("directive authorized is not implemented")
}
return ec.directives.Authorized(ctx, nil, directive0)
}
tmp, err := directive1(rctx)
if err != nil {
return nil, graphql.ErrorOnPath(ctx, err)
}
if tmp == nil {
return nil, nil
}
if data, ok := tmp.(<-chan *model.InfraEventResponse); ok {
return data, nil
}
return nil, fmt.Errorf(`unexpected type %T from directive, should be <-chan *github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model.InfraEventResponse`, tmp)
})
if err != nil {
ec.Error(ctx, err)
return nil
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return nil
}
return func(ctx context.Context) graphql.Marshaler {
select {
case res, ok := <-resTmp.(<-chan *model.InfraEventResponse):
if !ok {
return nil
}
return graphql.WriterFunc(func(w io.Writer) {
w.Write([]byte{'{'})
graphql.MarshalString(field.Alias).MarshalGQL(w)
w.Write([]byte{':'})
ec.marshalNInfraEventResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraEventResponse(ctx, field.Selections, res).MarshalGQL(w)
w.Write([]byte{'}'})
})
case <-ctx.Done():
return nil
}
}
}
func (ec *executionContext) fieldContext_Subscription_getInfraEvents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Subscription",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "eventID":
return ec.fieldContext_InfraEventResponse_eventID(ctx, field)
case "eventType":
return ec.fieldContext_InfraEventResponse_eventType(ctx, field)
case "eventName":
return ec.fieldContext_InfraEventResponse_eventName(ctx, field)
case "description":
return ec.fieldContext_InfraEventResponse_description(ctx, field)
case "infra":
return ec.fieldContext_InfraEventResponse_infra(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type InfraEventResponse", 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_Subscription_getInfraEvents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Subscription_infraConnect(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) {
fc, err := ec.fieldContext_Subscription_infraConnect(ctx, field)
if err != nil {
return nil
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Subscription().InfraConnect(rctx, fc.Args["request"].(model.InfraIdentity))
})
if err != nil {
ec.Error(ctx, err)
return nil
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return nil
}
return func(ctx context.Context) graphql.Marshaler {
select {
case res, ok := <-resTmp.(<-chan *model.InfraActionResponse):
if !ok {
return nil
}
return graphql.WriterFunc(func(w io.Writer) {
w.Write([]byte{'{'})
graphql.MarshalString(field.Alias).MarshalGQL(w)
w.Write([]byte{':'})
ec.marshalNInfraActionResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraActionResponse(ctx, field.Selections, res).MarshalGQL(w)
w.Write([]byte{'}'})
})
case <-ctx.Done():
return nil
}
}
}
func (ec *executionContext) fieldContext_Subscription_infraConnect(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Subscription",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "projectID":
return ec.fieldContext_InfraActionResponse_projectID(ctx, field)
case "action":
return ec.fieldContext_InfraActionResponse_action(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type InfraActionResponse", 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_Subscription_infraConnect_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Subscription_getPodLog(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) {
fc, err := ec.fieldContext_Subscription_getPodLog(ctx, field)
if err != nil {
return nil
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Subscription().GetPodLog(rctx, fc.Args["request"].(model.PodLogRequest))
})
if err != nil {
ec.Error(ctx, err)
return nil
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return nil
}
return func(ctx context.Context) graphql.Marshaler {
select {
case res, ok := <-resTmp.(<-chan *model.PodLogResponse):
if !ok {
return nil
}
return graphql.WriterFunc(func(w io.Writer) {
w.Write([]byte{'{'})
graphql.MarshalString(field.Alias).MarshalGQL(w)
w.Write([]byte{':'})
ec.marshalNPodLogResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPodLogResponse(ctx, field.Selections, res).MarshalGQL(w)
w.Write([]byte{'}'})
})
case <-ctx.Done():
return nil
}
}
}
func (ec *executionContext) fieldContext_Subscription_getPodLog(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Subscription",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "experimentRunID":
return ec.fieldContext_PodLogResponse_experimentRunID(ctx, field)
case "podName":
return ec.fieldContext_PodLogResponse_podName(ctx, field)
case "podType":
return ec.fieldContext_PodLogResponse_podType(ctx, field)
case "log":
return ec.fieldContext_PodLogResponse_log(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type PodLogResponse", 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_Subscription_getPodLog_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Subscription_getKubeObject(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) {
fc, err := ec.fieldContext_Subscription_getKubeObject(ctx, field)
if err != nil {
return nil
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Subscription().GetKubeObject(rctx, fc.Args["request"].(model.KubeObjectRequest))
})
if err != nil {
ec.Error(ctx, err)
return nil
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return nil
}
return func(ctx context.Context) graphql.Marshaler {
select {
case res, ok := <-resTmp.(<-chan *model.KubeObjectResponse):
if !ok {
return nil
}
return graphql.WriterFunc(func(w io.Writer) {
w.Write([]byte{'{'})
graphql.MarshalString(field.Alias).MarshalGQL(w)
w.Write([]byte{':'})
ec.marshalNKubeObjectResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObjectResponse(ctx, field.Selections, res).MarshalGQL(w)
w.Write([]byte{'}'})
})
case <-ctx.Done():
return nil
}
}
}
func (ec *executionContext) fieldContext_Subscription_getKubeObject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Subscription",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "infraID":
return ec.fieldContext_KubeObjectResponse_infraID(ctx, field)
case "kubeObj":
return ec.fieldContext_KubeObjectResponse_kubeObj(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type KubeObjectResponse", 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_Subscription_getKubeObject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Subscription_getKubeNamespace(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) {
fc, err := ec.fieldContext_Subscription_getKubeNamespace(ctx, field)
if err != nil {
return nil
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Subscription().GetKubeNamespace(rctx, fc.Args["request"].(model.KubeNamespaceRequest))
})
if err != nil {
ec.Error(ctx, err)
return nil
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return nil
}
return func(ctx context.Context) graphql.Marshaler {
select {
case res, ok := <-resTmp.(<-chan *model.KubeNamespaceResponse):
if !ok {
return nil
}
return graphql.WriterFunc(func(w io.Writer) {
w.Write([]byte{'{'})
graphql.MarshalString(field.Alias).MarshalGQL(w)
w.Write([]byte{':'})
ec.marshalNKubeNamespaceResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeNamespaceResponse(ctx, field.Selections, res).MarshalGQL(w)
w.Write([]byte{'}'})
})
case <-ctx.Done():
return nil
}
}
}
func (ec *executionContext) fieldContext_Subscription_getKubeNamespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Subscription",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "infraID":
return ec.fieldContext_KubeNamespaceResponse_infraID(ctx, field)
case "kubeNamespace":
return ec.fieldContext_KubeNamespaceResponse_kubeNamespace(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type KubeNamespaceResponse", 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_Subscription_getKubeNamespace_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _UserDetails_userID(ctx context.Context, field graphql.CollectedField, obj *model.UserDetails) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_UserDetails_userID(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UserID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
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_UserDetails_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "UserDetails",
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) _UserDetails_username(ctx context.Context, field graphql.CollectedField, obj *model.UserDetails) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_UserDetails_username(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Username, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_UserDetails_username(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "UserDetails",
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) _UserDetails_email(ctx context.Context, field graphql.CollectedField, obj *model.UserDetails) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_UserDetails_email(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Email, nil
})
if err != nil {
ec.Error(ctx, 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_UserDetails_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "UserDetails",
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) _Weightages_faultName(ctx context.Context, field graphql.CollectedField, obj *model.Weightages) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Weightages_faultName(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FaultName, nil
})
if err != nil {
ec.Error(ctx, 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_Weightages_faultName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Weightages",
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) _Weightages_weightage(ctx context.Context, field graphql.CollectedField, obj *model.Weightages) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_Weightages_weightage(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Weightage, nil
})
if err != nil {
ec.Error(ctx, 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_Weightages_weightage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Weightages",
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) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Directive_name(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Directive",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Directive_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Directive",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Directive_locations(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Locations, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]string)
fc.Result = res
return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Directive",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type __DirectiveLocation does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Directive_args(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Args, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]introspection.InputValue)
fc.Result = res
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Directive_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Directive",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "name":
return ec.fieldContext___InputValue_name(ctx, field)
case "description":
return ec.fieldContext___InputValue_description(ctx, field)
case "type":
return ec.fieldContext___InputValue_type(ctx, field)
case "defaultValue":
return ec.fieldContext___InputValue_defaultValue(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsRepeatable, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(bool)
fc.Result = res
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Directive",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Boolean does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___EnumValue_name(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__EnumValue",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___EnumValue_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__EnumValue",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsDeprecated(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(bool)
fc.Result = res
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__EnumValue",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Boolean does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.DeprecationReason(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__EnumValue",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Field_name(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Field",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Field_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Field",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Field_args(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Args, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]introspection.InputValue)
fc.Result = res
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Field_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Field",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "name":
return ec.fieldContext___InputValue_name(ctx, field)
case "description":
return ec.fieldContext___InputValue_description(ctx, field)
case "type":
return ec.fieldContext___InputValue_type(ctx, field)
case "defaultValue":
return ec.fieldContext___InputValue_defaultValue(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Field_type(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Type, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Field",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "kind":
return ec.fieldContext___Type_kind(ctx, field)
case "name":
return ec.fieldContext___Type_name(ctx, field)
case "description":
return ec.fieldContext___Type_description(ctx, field)
case "fields":
return ec.fieldContext___Type_fields(ctx, field)
case "interfaces":
return ec.fieldContext___Type_interfaces(ctx, field)
case "possibleTypes":
return ec.fieldContext___Type_possibleTypes(ctx, field)
case "enumValues":
return ec.fieldContext___Type_enumValues(ctx, field)
case "inputFields":
return ec.fieldContext___Type_inputFields(ctx, field)
case "ofType":
return ec.fieldContext___Type_ofType(ctx, field)
case "specifiedByURL":
return ec.fieldContext___Type_specifiedByURL(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Field_isDeprecated(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsDeprecated(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(bool)
fc.Result = res
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Field",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Boolean does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Field_deprecationReason(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.DeprecationReason(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Field",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___InputValue_name(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__InputValue",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___InputValue_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__InputValue",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___InputValue_type(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Type, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__InputValue",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "kind":
return ec.fieldContext___Type_kind(ctx, field)
case "name":
return ec.fieldContext___Type_name(ctx, field)
case "description":
return ec.fieldContext___Type_description(ctx, field)
case "fields":
return ec.fieldContext___Type_fields(ctx, field)
case "interfaces":
return ec.fieldContext___Type_interfaces(ctx, field)
case "possibleTypes":
return ec.fieldContext___Type_possibleTypes(ctx, field)
case "enumValues":
return ec.fieldContext___Type_enumValues(ctx, field)
case "inputFields":
return ec.fieldContext___Type_inputFields(ctx, field)
case "ofType":
return ec.fieldContext___Type_ofType(ctx, field)
case "specifiedByURL":
return ec.fieldContext___Type_specifiedByURL(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.DefaultValue, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__InputValue",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Schema_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Schema",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Schema_types(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Types(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]introspection.Type)
fc.Result = res
return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Schema",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "kind":
return ec.fieldContext___Type_kind(ctx, field)
case "name":
return ec.fieldContext___Type_name(ctx, field)
case "description":
return ec.fieldContext___Type_description(ctx, field)
case "fields":
return ec.fieldContext___Type_fields(ctx, field)
case "interfaces":
return ec.fieldContext___Type_interfaces(ctx, field)
case "possibleTypes":
return ec.fieldContext___Type_possibleTypes(ctx, field)
case "enumValues":
return ec.fieldContext___Type_enumValues(ctx, field)
case "inputFields":
return ec.fieldContext___Type_inputFields(ctx, field)
case "ofType":
return ec.fieldContext___Type_ofType(ctx, field)
case "specifiedByURL":
return ec.fieldContext___Type_specifiedByURL(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Schema_queryType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.QueryType(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Schema",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "kind":
return ec.fieldContext___Type_kind(ctx, field)
case "name":
return ec.fieldContext___Type_name(ctx, field)
case "description":
return ec.fieldContext___Type_description(ctx, field)
case "fields":
return ec.fieldContext___Type_fields(ctx, field)
case "interfaces":
return ec.fieldContext___Type_interfaces(ctx, field)
case "possibleTypes":
return ec.fieldContext___Type_possibleTypes(ctx, field)
case "enumValues":
return ec.fieldContext___Type_enumValues(ctx, field)
case "inputFields":
return ec.fieldContext___Type_inputFields(ctx, field)
case "ofType":
return ec.fieldContext___Type_ofType(ctx, field)
case "specifiedByURL":
return ec.fieldContext___Type_specifiedByURL(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Schema_mutationType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.MutationType(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Schema",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "kind":
return ec.fieldContext___Type_kind(ctx, field)
case "name":
return ec.fieldContext___Type_name(ctx, field)
case "description":
return ec.fieldContext___Type_description(ctx, field)
case "fields":
return ec.fieldContext___Type_fields(ctx, field)
case "interfaces":
return ec.fieldContext___Type_interfaces(ctx, field)
case "possibleTypes":
return ec.fieldContext___Type_possibleTypes(ctx, field)
case "enumValues":
return ec.fieldContext___Type_enumValues(ctx, field)
case "inputFields":
return ec.fieldContext___Type_inputFields(ctx, field)
case "ofType":
return ec.fieldContext___Type_ofType(ctx, field)
case "specifiedByURL":
return ec.fieldContext___Type_specifiedByURL(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.SubscriptionType(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Schema",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "kind":
return ec.fieldContext___Type_kind(ctx, field)
case "name":
return ec.fieldContext___Type_name(ctx, field)
case "description":
return ec.fieldContext___Type_description(ctx, field)
case "fields":
return ec.fieldContext___Type_fields(ctx, field)
case "interfaces":
return ec.fieldContext___Type_interfaces(ctx, field)
case "possibleTypes":
return ec.fieldContext___Type_possibleTypes(ctx, field)
case "enumValues":
return ec.fieldContext___Type_enumValues(ctx, field)
case "inputFields":
return ec.fieldContext___Type_inputFields(ctx, field)
case "ofType":
return ec.fieldContext___Type_ofType(ctx, field)
case "specifiedByURL":
return ec.fieldContext___Type_specifiedByURL(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Schema_directives(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Directives(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]introspection.Directive)
fc.Result = res
return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Schema",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "name":
return ec.fieldContext___Directive_name(ctx, field)
case "description":
return ec.fieldContext___Directive_description(ctx, field)
case "locations":
return ec.fieldContext___Directive_locations(ctx, field)
case "args":
return ec.fieldContext___Directive_args(ctx, field)
case "isRepeatable":
return ec.fieldContext___Directive_isRepeatable(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Type_kind(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Kind(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type __TypeKind does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Type_name(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Type_description(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Type_fields(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]introspection.Field)
fc.Result = res
return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "name":
return ec.fieldContext___Field_name(ctx, field)
case "description":
return ec.fieldContext___Field_description(ctx, field)
case "args":
return ec.fieldContext___Field_args(ctx, field)
case "type":
return ec.fieldContext___Field_type(ctx, field)
case "isDeprecated":
return ec.fieldContext___Field_isDeprecated(ctx, field)
case "deprecationReason":
return ec.fieldContext___Field_deprecationReason(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Type_interfaces(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Interfaces(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]introspection.Type)
fc.Result = res
return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "kind":
return ec.fieldContext___Type_kind(ctx, field)
case "name":
return ec.fieldContext___Type_name(ctx, field)
case "description":
return ec.fieldContext___Type_description(ctx, field)
case "fields":
return ec.fieldContext___Type_fields(ctx, field)
case "interfaces":
return ec.fieldContext___Type_interfaces(ctx, field)
case "possibleTypes":
return ec.fieldContext___Type_possibleTypes(ctx, field)
case "enumValues":
return ec.fieldContext___Type_enumValues(ctx, field)
case "inputFields":
return ec.fieldContext___Type_inputFields(ctx, field)
case "ofType":
return ec.fieldContext___Type_ofType(ctx, field)
case "specifiedByURL":
return ec.fieldContext___Type_specifiedByURL(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Type_possibleTypes(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.PossibleTypes(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]introspection.Type)
fc.Result = res
return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "kind":
return ec.fieldContext___Type_kind(ctx, field)
case "name":
return ec.fieldContext___Type_name(ctx, field)
case "description":
return ec.fieldContext___Type_description(ctx, field)
case "fields":
return ec.fieldContext___Type_fields(ctx, field)
case "interfaces":
return ec.fieldContext___Type_interfaces(ctx, field)
case "possibleTypes":
return ec.fieldContext___Type_possibleTypes(ctx, field)
case "enumValues":
return ec.fieldContext___Type_enumValues(ctx, field)
case "inputFields":
return ec.fieldContext___Type_inputFields(ctx, field)
case "ofType":
return ec.fieldContext___Type_ofType(ctx, field)
case "specifiedByURL":
return ec.fieldContext___Type_specifiedByURL(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Type_enumValues(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]introspection.EnumValue)
fc.Result = res
return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "name":
return ec.fieldContext___EnumValue_name(ctx, field)
case "description":
return ec.fieldContext___EnumValue_description(ctx, field)
case "isDeprecated":
return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
case "deprecationReason":
return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Type_inputFields(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InputFields(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]introspection.InputValue)
fc.Result = res
return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "name":
return ec.fieldContext___InputValue_name(ctx, field)
case "description":
return ec.fieldContext___InputValue_description(ctx, field)
case "type":
return ec.fieldContext___InputValue_type(ctx, field)
case "defaultValue":
return ec.fieldContext___InputValue_defaultValue(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Type_ofType(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.OfType(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "kind":
return ec.fieldContext___Type_kind(ctx, field)
case "name":
return ec.fieldContext___Type_name(ctx, field)
case "description":
return ec.fieldContext___Type_description(ctx, field)
case "fields":
return ec.fieldContext___Type_fields(ctx, field)
case "interfaces":
return ec.fieldContext___Type_interfaces(ctx, field)
case "possibleTypes":
return ec.fieldContext___Type_possibleTypes(ctx, field)
case "enumValues":
return ec.fieldContext___Type_enumValues(ctx, field)
case "inputFields":
return ec.fieldContext___Type_inputFields(ctx, field)
case "ofType":
return ec.fieldContext___Type_ofType(ctx, field)
case "specifiedByURL":
return ec.fieldContext___Type_specifiedByURL(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
},
}
return fc, nil
}
func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field)
if err != nil {
return graphql.Null
}
ctx = graphql.WithFieldContext(ctx, fc)
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.SpecifiedByURL(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
}
return fc, nil
}
// endregion **************************** field.gotpl *****************************
// region **************************** input.gotpl *****************************
func (ec *executionContext) unmarshalInputCMDProbeRequest(ctx context.Context, obj interface{}) (model.CMDProbeRequest, error) {
var it model.CMDProbeRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"probeTimeout", "interval", "retry", "attempt", "probePollingInterval", "initialDelay", "evaluationTimeout", "stopOnFailure", "command", "comparator", "source"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "probeTimeout":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeTimeout"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ProbeTimeout = data
case "interval":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Interval = data
case "retry":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("retry"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.Retry = data
case "attempt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attempt"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.Attempt = data
case "probePollingInterval":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probePollingInterval"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ProbePollingInterval = data
case "initialDelay":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("initialDelay"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.InitialDelay = data
case "evaluationTimeout":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("evaluationTimeout"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.EvaluationTimeout = data
case "stopOnFailure":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stopOnFailure"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.StopOnFailure = data
case "command":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("command"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Command = data
case "comparator":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("comparator"))
data, err := ec.unmarshalNComparatorInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparatorInput(ctx, v)
if err != nil {
return it, err
}
it.Comparator = data
case "source":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Source = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputChaosExperimentRequest(ctx context.Context, obj interface{}) (model.ChaosExperimentRequest, error) {
var it model.ChaosExperimentRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"experimentID", "runExperiment", "experimentManifest", "experimentType", "cronSyntax", "experimentName", "experimentDescription", "weightages", "isCustomExperiment", "infraID", "tags"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "experimentID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentID"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ExperimentID = data
case "runExperiment":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("runExperiment"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.RunExperiment = data
case "experimentManifest":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentManifest"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ExperimentManifest = data
case "experimentType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentType"))
data, err := ec.unmarshalOExperimentType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentType(ctx, v)
if err != nil {
return it, err
}
it.ExperimentType = data
case "cronSyntax":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cronSyntax"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.CronSyntax = data
case "experimentName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentName"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ExperimentName = data
case "experimentDescription":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentDescription"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ExperimentDescription = data
case "weightages":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("weightages"))
data, err := ec.unmarshalNWeightagesInput2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesInputᚄ(ctx, v)
if err != nil {
return it, err
}
it.Weightages = data
case "isCustomExperiment":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isCustomExperiment"))
data, err := ec.unmarshalNBoolean2bool(ctx, v)
if err != nil {
return it, err
}
it.IsCustomExperiment = data
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
case "tags":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.Tags = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputChaosHubFilterInput(ctx context.Context, obj interface{}) (model.ChaosHubFilterInput, error) {
var it model.ChaosHubFilterInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"chaosHubName", "tags", "description"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "chaosHubName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chaosHubName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ChaosHubName = data
case "tags":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.Tags = 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
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputCloningInput(ctx context.Context, obj interface{}) (model.CloningInput, error) {
var it model.CloningInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"name", "repoBranch", "repoURL", "remoteHub", "isPrivate", "authType", "token", "userName", "password", "sshPrivateKey", "isDefault"}
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 "repoBranch":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoBranch"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RepoBranch = data
case "repoURL":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoURL"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RepoURL = data
case "remoteHub":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("remoteHub"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RemoteHub = data
case "isPrivate":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isPrivate"))
data, err := ec.unmarshalNBoolean2bool(ctx, v)
if err != nil {
return it, err
}
it.IsPrivate = data
case "authType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authType"))
data, err := ec.unmarshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, v)
if err != nil {
return it, err
}
it.AuthType = data
case "token":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Token = data
case "userName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.UserName = data
case "password":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Password = data
case "sshPrivateKey":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sshPrivateKey"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.SSHPrivateKey = data
case "isDefault":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isDefault"))
data, err := ec.unmarshalNBoolean2bool(ctx, v)
if err != nil {
return it, err
}
it.IsDefault = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputComparatorInput(ctx context.Context, obj interface{}) (model.ComparatorInput, error) {
var it model.ComparatorInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"type", "value", "criteria"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "type":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Type = data
case "value":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Value = data
case "criteria":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("criteria"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Criteria = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputCreateChaosHubRequest(ctx context.Context, obj interface{}) (model.CreateChaosHubRequest, error) {
var it model.CreateChaosHubRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"name", "tags", "description", "repoURL", "repoBranch", "remoteHub", "isPrivate", "authType", "token", "userName", "password", "sshPrivateKey", "sshPublicKey"}
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 "tags":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.Tags = 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 "repoURL":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoURL"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RepoURL = data
case "repoBranch":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoBranch"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RepoBranch = data
case "remoteHub":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("remoteHub"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RemoteHub = data
case "isPrivate":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isPrivate"))
data, err := ec.unmarshalNBoolean2bool(ctx, v)
if err != nil {
return it, err
}
it.IsPrivate = data
case "authType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authType"))
data, err := ec.unmarshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, v)
if err != nil {
return it, err
}
it.AuthType = data
case "token":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Token = data
case "userName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.UserName = data
case "password":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Password = data
case "sshPrivateKey":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sshPrivateKey"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.SSHPrivateKey = data
case "sshPublicKey":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sshPublicKey"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.SSHPublicKey = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputCreateEnvironmentRequest(ctx context.Context, obj interface{}) (model.CreateEnvironmentRequest, error) {
var it model.CreateEnvironmentRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"environmentID", "name", "type", "description", "tags"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "environmentID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environmentID"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.EnvironmentID = 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 "type":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
data, err := ec.unmarshalNEnvironmentType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx, v)
if err != nil {
return it, err
}
it.Type = 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 "tags":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.Tags = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputCreateRemoteChaosHub(ctx context.Context, obj interface{}) (model.CreateRemoteChaosHub, error) {
var it model.CreateRemoteChaosHub
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"name", "tags", "description", "repoURL", "remoteHub"}
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 "tags":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.Tags = 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 "repoURL":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoURL"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RepoURL = data
case "remoteHub":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("remoteHub"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RemoteHub = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputDateRange(ctx context.Context, obj interface{}) (model.DateRange, error) {
var it model.DateRange
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"startDate", "endDate"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "startDate":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("startDate"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.StartDate = data
case "endDate":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("endDate"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.EndDate = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputEnvironmentFilterInput(ctx context.Context, obj interface{}) (model.EnvironmentFilterInput, error) {
var it model.EnvironmentFilterInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"name", "description", "type", "tags"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "name":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Name = data
case "description":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Description = data
case "type":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
data, err := ec.unmarshalOEnvironmentType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx, v)
if err != nil {
return it, err
}
it.Type = data
case "tags":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.Tags = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputEnvironmentSortInput(ctx context.Context, obj interface{}) (model.EnvironmentSortInput, error) {
var it model.EnvironmentSortInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"field", "ascending"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "field":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
data, err := ec.unmarshalNEnvironmentSortingField2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentSortingField(ctx, v)
if err != nil {
return it, err
}
it.Field = data
case "ascending":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ascending"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.Ascending = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputExperimentFilterInput(ctx context.Context, obj interface{}) (model.ExperimentFilterInput, error) {
var it model.ExperimentFilterInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"experimentName", "infraName", "infraID", "infraActive", "scheduleType", "status", "dateRange", "infraTypes"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "experimentName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ExperimentName = data
case "infraName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.InfraName = data
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
case "infraActive":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraActive"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.InfraActive = data
case "scheduleType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scheduleType"))
data, err := ec.unmarshalOScheduleType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐScheduleType(ctx, v)
if err != nil {
return it, err
}
it.ScheduleType = data
case "status":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Status = data
case "dateRange":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateRange"))
data, err := ec.unmarshalODateRange2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐDateRange(ctx, v)
if err != nil {
return it, err
}
it.DateRange = data
case "infraTypes":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraTypes"))
data, err := ec.unmarshalOInfrastructureType2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, v)
if err != nil {
return it, err
}
it.InfraTypes = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputExperimentRequest(ctx context.Context, obj interface{}) (model.ExperimentRequest, error) {
var it model.ExperimentRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"category", "experimentName", "hubID"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "category":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Category = data
case "experimentName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentName"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ExperimentName = data
case "hubID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hubID"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.HubID = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputExperimentRunFilterInput(ctx context.Context, obj interface{}) (model.ExperimentRunFilterInput, error) {
var it model.ExperimentRunFilterInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"experimentName", "infraID", "experimentType", "experimentStatus", "dateRange", "experimentRunID", "experimentRunStatus", "infraTypes"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "experimentName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ExperimentName = data
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
case "experimentType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentType"))
data, err := ec.unmarshalOScheduleType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐScheduleType(ctx, v)
if err != nil {
return it, err
}
it.ExperimentType = data
case "experimentStatus":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentStatus"))
data, err := ec.unmarshalOExperimentRunStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunStatus(ctx, v)
if err != nil {
return it, err
}
it.ExperimentStatus = data
case "dateRange":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateRange"))
data, err := ec.unmarshalODateRange2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐDateRange(ctx, v)
if err != nil {
return it, err
}
it.DateRange = data
case "experimentRunID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunID"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ExperimentRunID = data
case "experimentRunStatus":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunStatus"))
data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ExperimentRunStatus = data
case "infraTypes":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraTypes"))
data, err := ec.unmarshalOInfrastructureType2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, v)
if err != nil {
return it, err
}
it.InfraTypes = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputExperimentRunRequest(ctx context.Context, obj interface{}) (model.ExperimentRunRequest, error) {
var it model.ExperimentRunRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"experimentID", "notifyID", "experimentRunID", "experimentName", "executionData", "infraID", "revisionID", "completed", "isRemoved", "updatedBy"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "experimentID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentID"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ExperimentID = data
case "notifyID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("notifyID"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.NotifyID = data
case "experimentRunID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunID"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ExperimentRunID = data
case "experimentName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentName"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ExperimentName = data
case "executionData":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("executionData"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ExecutionData = data
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalNInfraIdentity2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
case "revisionID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("revisionID"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RevisionID = data
case "completed":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("completed"))
data, err := ec.unmarshalNBoolean2bool(ctx, v)
if err != nil {
return it, err
}
it.Completed = data
case "isRemoved":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isRemoved"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.IsRemoved = data
case "updatedBy":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.UpdatedBy = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputExperimentRunSortInput(ctx context.Context, obj interface{}) (model.ExperimentRunSortInput, error) {
var it model.ExperimentRunSortInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"field", "ascending"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "field":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
data, err := ec.unmarshalNExperimentSortingField2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentSortingField(ctx, v)
if err != nil {
return it, err
}
it.Field = data
case "ascending":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ascending"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.Ascending = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputExperimentSortInput(ctx context.Context, obj interface{}) (model.ExperimentSortInput, error) {
var it model.ExperimentSortInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"field", "ascending"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "field":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
data, err := ec.unmarshalNExperimentSortingField2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentSortingField(ctx, v)
if err != nil {
return it, err
}
it.Field = data
case "ascending":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ascending"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.Ascending = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputGETRequest(ctx context.Context, obj interface{}) (model.GETRequest, error) {
var it model.GETRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"criteria", "responseCode"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "criteria":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("criteria"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Criteria = data
case "responseCode":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("responseCode"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ResponseCode = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputGetProbeYAMLRequest(ctx context.Context, obj interface{}) (model.GetProbeYAMLRequest, error) {
var it model.GetProbeYAMLRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"probeName", "mode"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "probeName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeName"))
data, err := ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.ProbeName = data
case "mode":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mode"))
data, err := ec.unmarshalNMode2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMode(ctx, v)
if err != nil {
return it, err
}
it.Mode = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputGitConfig(ctx context.Context, obj interface{}) (model.GitConfig, error) {
var it model.GitConfig
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"branch", "repoURL", "authType", "token", "userName", "password", "sshPrivateKey"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "branch":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("branch"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Branch = data
case "repoURL":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoURL"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RepoURL = data
case "authType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authType"))
data, err := ec.unmarshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, v)
if err != nil {
return it, err
}
it.AuthType = data
case "token":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Token = data
case "userName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.UserName = data
case "password":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Password = data
case "sshPrivateKey":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sshPrivateKey"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.SSHPrivateKey = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputHTTPProbeRequest(ctx context.Context, obj interface{}) (model.HTTPProbeRequest, error) {
var it model.HTTPProbeRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"probeTimeout", "interval", "retry", "attempt", "probePollingInterval", "initialDelay", "evaluationTimeout", "stopOnFailure", "url", "method", "insecureSkipVerify"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "probeTimeout":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeTimeout"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ProbeTimeout = data
case "interval":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Interval = data
case "retry":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("retry"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.Retry = data
case "attempt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attempt"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.Attempt = data
case "probePollingInterval":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probePollingInterval"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ProbePollingInterval = data
case "initialDelay":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("initialDelay"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.InitialDelay = data
case "evaluationTimeout":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("evaluationTimeout"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.EvaluationTimeout = data
case "stopOnFailure":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stopOnFailure"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.StopOnFailure = 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 "method":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("method"))
data, err := ec.unmarshalNMethodRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMethodRequest(ctx, v)
if err != nil {
return it, err
}
it.Method = data
case "insecureSkipVerify":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("insecureSkipVerify"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.InsecureSkipVerify = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputImageRegistryInput(ctx context.Context, obj interface{}) (model.ImageRegistryInput, error) {
var it model.ImageRegistryInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"isDefault", "imageRegistryName", "imageRepoName", "imageRegistryType", "secretName", "secretNamespace", "enableRegistry"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "isDefault":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isDefault"))
data, err := ec.unmarshalNBoolean2bool(ctx, v)
if err != nil {
return it, err
}
it.IsDefault = data
case "imageRegistryName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imageRegistryName"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ImageRegistryName = data
case "imageRepoName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imageRepoName"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ImageRepoName = data
case "imageRegistryType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imageRegistryType"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ImageRegistryType = data
case "secretName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.SecretName = data
case "secretNamespace":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNamespace"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.SecretNamespace = data
case "enableRegistry":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enableRegistry"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.EnableRegistry = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputInfraFilterInput(ctx context.Context, obj interface{}) (model.InfraFilterInput, error) {
var it model.InfraFilterInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"name", "infraID", "description", "platformName", "infraScope", "isActive", "tags"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "name":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Name = data
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.InfraID = 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 "platformName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("platformName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.PlatformName = data
case "infraScope":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraScope"))
data, err := ec.unmarshalOINFRA_SCOPE2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraScope(ctx, v)
if err != nil {
return it, err
}
it.InfraScope = data
case "isActive":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isActive"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.IsActive = data
case "tags":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Tags = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputInfraIdentity(ctx context.Context, obj interface{}) (model.InfraIdentity, error) {
var it model.InfraIdentity
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"infraID", "accessKey", "version"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
case "accessKey":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("accessKey"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.AccessKey = data
case "version":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Version = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputK8SProbeRequest(ctx context.Context, obj interface{}) (model.K8SProbeRequest, error) {
var it model.K8SProbeRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"probeTimeout", "interval", "retry", "attempt", "probePollingInterval", "initialDelay", "evaluationTimeout", "stopOnFailure", "group", "version", "resource", "namespace", "resourceNames", "fieldSelector", "labelSelector", "operation"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "probeTimeout":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeTimeout"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ProbeTimeout = data
case "interval":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Interval = data
case "retry":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("retry"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.Retry = data
case "attempt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attempt"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.Attempt = data
case "probePollingInterval":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probePollingInterval"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ProbePollingInterval = data
case "initialDelay":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("initialDelay"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.InitialDelay = data
case "evaluationTimeout":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("evaluationTimeout"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.EvaluationTimeout = data
case "stopOnFailure":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stopOnFailure"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.StopOnFailure = data
case "group":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("group"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Group = data
case "version":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Version = data
case "resource":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resource"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Resource = data
case "namespace":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Namespace = data
case "resourceNames":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resourceNames"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ResourceNames = data
case "fieldSelector":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldSelector"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.FieldSelector = data
case "labelSelector":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("labelSelector"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.LabelSelector = data
case "operation":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Operation = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputKubeGVRRequest(ctx context.Context, obj interface{}) (model.KubeGVRRequest, error) {
var it model.KubeGVRRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"group", "version", "resource"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "group":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("group"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Group = data
case "version":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Version = data
case "resource":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resource"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Resource = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputKubeNamespaceData(ctx context.Context, obj interface{}) (model.KubeNamespaceData, error) {
var it model.KubeNamespaceData
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"requestID", "infraID", "kubeNamespace"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "requestID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestID"))
data, err := ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.RequestID = data
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalNInfraIdentity2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
case "kubeNamespace":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kubeNamespace"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.KubeNamespace = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputKubeNamespaceRequest(ctx context.Context, obj interface{}) (model.KubeNamespaceRequest, error) {
var it model.KubeNamespaceRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"infraID"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputKubeObjectData(ctx context.Context, obj interface{}) (model.KubeObjectData, error) {
var it model.KubeObjectData
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"requestID", "infraID", "kubeObj"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "requestID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestID"))
data, err := ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.RequestID = data
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalNInfraIdentity2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
case "kubeObj":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kubeObj"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.KubeObj = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputKubeObjectRequest(ctx context.Context, obj interface{}) (model.KubeObjectRequest, error) {
var it model.KubeObjectRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"infraID", "kubeObjRequest", "namespace", "objectType", "workloads"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
case "kubeObjRequest":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kubeObjRequest"))
data, err := ec.unmarshalOKubeGVRRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeGVRRequest(ctx, v)
if err != nil {
return it, err
}
it.KubeObjRequest = 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
case "objectType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("objectType"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ObjectType = data
case "workloads":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workloads"))
data, err := ec.unmarshalOWorkload2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWorkload(ctx, v)
if err != nil {
return it, err
}
it.Workloads = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputKubernetesCMDProbeRequest(ctx context.Context, obj interface{}) (model.KubernetesCMDProbeRequest, error) {
var it model.KubernetesCMDProbeRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"probeTimeout", "interval", "retry", "attempt", "probePollingInterval", "initialDelay", "evaluationTimeout", "stopOnFailure", "command", "comparator", "source"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "probeTimeout":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeTimeout"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ProbeTimeout = data
case "interval":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Interval = data
case "retry":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("retry"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.Retry = data
case "attempt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attempt"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.Attempt = data
case "probePollingInterval":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probePollingInterval"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ProbePollingInterval = data
case "initialDelay":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("initialDelay"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.InitialDelay = data
case "evaluationTimeout":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("evaluationTimeout"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.EvaluationTimeout = data
case "stopOnFailure":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stopOnFailure"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.StopOnFailure = data
case "command":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("command"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Command = data
case "comparator":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("comparator"))
data, err := ec.unmarshalNComparatorInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparatorInput(ctx, v)
if err != nil {
return it, err
}
it.Comparator = data
case "source":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Source = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputKubernetesHTTPProbeRequest(ctx context.Context, obj interface{}) (model.KubernetesHTTPProbeRequest, error) {
var it model.KubernetesHTTPProbeRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"probeTimeout", "interval", "retry", "attempt", "probePollingInterval", "initialDelay", "evaluationTimeout", "stopOnFailure", "url", "method", "insecureSkipVerify"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "probeTimeout":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeTimeout"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ProbeTimeout = data
case "interval":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Interval = data
case "retry":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("retry"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.Retry = data
case "attempt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attempt"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.Attempt = data
case "probePollingInterval":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probePollingInterval"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ProbePollingInterval = data
case "initialDelay":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("initialDelay"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.InitialDelay = data
case "evaluationTimeout":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("evaluationTimeout"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.EvaluationTimeout = data
case "stopOnFailure":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stopOnFailure"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.StopOnFailure = 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 "method":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("method"))
data, err := ec.unmarshalNMethodRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMethodRequest(ctx, v)
if err != nil {
return it, err
}
it.Method = data
case "insecureSkipVerify":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("insecureSkipVerify"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.InsecureSkipVerify = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputListChaosHubRequest(ctx context.Context, obj interface{}) (model.ListChaosHubRequest, error) {
var it model.ListChaosHubRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"chaosHubIDs", "filter"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "chaosHubIDs":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chaosHubIDs"))
data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.ChaosHubIDs = data
case "filter":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
data, err := ec.unmarshalOChaosHubFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHubFilterInput(ctx, v)
if err != nil {
return it, err
}
it.Filter = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputListEnvironmentRequest(ctx context.Context, obj interface{}) (model.ListEnvironmentRequest, error) {
var it model.ListEnvironmentRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"environmentIDs", "pagination", "filter", "sort"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "environmentIDs":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environmentIDs"))
data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.EnvironmentIDs = data
case "pagination":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pagination"))
data, err := ec.unmarshalOPagination2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPagination(ctx, v)
if err != nil {
return it, err
}
it.Pagination = data
case "filter":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
data, err := ec.unmarshalOEnvironmentFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentFilterInput(ctx, v)
if err != nil {
return it, err
}
it.Filter = data
case "sort":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sort"))
data, err := ec.unmarshalOEnvironmentSortInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentSortInput(ctx, v)
if err != nil {
return it, err
}
it.Sort = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputListExperimentRequest(ctx context.Context, obj interface{}) (model.ListExperimentRequest, error) {
var it model.ListExperimentRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"experimentIDs", "pagination", "sort", "filter"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "experimentIDs":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentIDs"))
data, err := ec.unmarshalOID2ᚕᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ExperimentIDs = data
case "pagination":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pagination"))
data, err := ec.unmarshalOPagination2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPagination(ctx, v)
if err != nil {
return it, err
}
it.Pagination = data
case "sort":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sort"))
data, err := ec.unmarshalOExperimentSortInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentSortInput(ctx, v)
if err != nil {
return it, err
}
it.Sort = data
case "filter":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
data, err := ec.unmarshalOExperimentFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentFilterInput(ctx, v)
if err != nil {
return it, err
}
it.Filter = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputListExperimentRunRequest(ctx context.Context, obj interface{}) (model.ListExperimentRunRequest, error) {
var it model.ListExperimentRunRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"experimentRunIDs", "experimentIDs", "pagination", "sort", "filter"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "experimentRunIDs":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunIDs"))
data, err := ec.unmarshalOID2ᚕᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ExperimentRunIDs = data
case "experimentIDs":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentIDs"))
data, err := ec.unmarshalOID2ᚕᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ExperimentIDs = data
case "pagination":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pagination"))
data, err := ec.unmarshalOPagination2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPagination(ctx, v)
if err != nil {
return it, err
}
it.Pagination = data
case "sort":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sort"))
data, err := ec.unmarshalOExperimentRunSortInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunSortInput(ctx, v)
if err != nil {
return it, err
}
it.Sort = data
case "filter":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
data, err := ec.unmarshalOExperimentRunFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunFilterInput(ctx, v)
if err != nil {
return it, err
}
it.Filter = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputListInfraRequest(ctx context.Context, obj interface{}) (model.ListInfraRequest, error) {
var it model.ListInfraRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"infraIDs", "environmentIDs", "pagination", "filter"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "infraIDs":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraIDs"))
data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.InfraIDs = data
case "environmentIDs":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environmentIDs"))
data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.EnvironmentIDs = data
case "pagination":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pagination"))
data, err := ec.unmarshalOPagination2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPagination(ctx, v)
if err != nil {
return it, err
}
it.Pagination = data
case "filter":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
data, err := ec.unmarshalOInfraFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraFilterInput(ctx, v)
if err != nil {
return it, err
}
it.Filter = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputMethodRequest(ctx context.Context, obj interface{}) (model.MethodRequest, error) {
var it model.MethodRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"get", "post"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "get":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("get"))
data, err := ec.unmarshalOGETRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGETRequest(ctx, v)
if err != nil {
return it, err
}
it.Get = data
case "post":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("post"))
data, err := ec.unmarshalOPOSTRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPOSTRequest(ctx, v)
if err != nil {
return it, err
}
it.Post = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputNewInfraEventRequest(ctx context.Context, obj interface{}) (model.NewInfraEventRequest, error) {
var it model.NewInfraEventRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"eventName", "description", "infraID", "accessKey"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "eventName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventName"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.EventName = data
case "description":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Description = data
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
case "accessKey":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("accessKey"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.AccessKey = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputPOSTRequest(ctx context.Context, obj interface{}) (model.POSTRequest, error) {
var it model.POSTRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"contentType", "body", "bodyPath", "criteria", "responseCode"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "contentType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contentType"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ContentType = data
case "body":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("body"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Body = data
case "bodyPath":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bodyPath"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.BodyPath = data
case "criteria":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("criteria"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Criteria = data
case "responseCode":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("responseCode"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ResponseCode = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputPROMProbeRequest(ctx context.Context, obj interface{}) (model.PROMProbeRequest, error) {
var it model.PROMProbeRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"probeTimeout", "interval", "retry", "attempt", "probePollingInterval", "initialDelay", "evaluationTimeout", "stopOnFailure", "endpoint", "query", "queryPath", "comparator"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "probeTimeout":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeTimeout"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ProbeTimeout = data
case "interval":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Interval = data
case "retry":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("retry"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.Retry = data
case "attempt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attempt"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.Attempt = data
case "probePollingInterval":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probePollingInterval"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ProbePollingInterval = data
case "initialDelay":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("initialDelay"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.InitialDelay = data
case "evaluationTimeout":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("evaluationTimeout"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.EvaluationTimeout = data
case "stopOnFailure":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stopOnFailure"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.StopOnFailure = data
case "endpoint":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("endpoint"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Endpoint = data
case "query":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Query = data
case "queryPath":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("queryPath"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.QueryPath = data
case "comparator":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("comparator"))
data, err := ec.unmarshalNComparatorInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparatorInput(ctx, v)
if err != nil {
return it, err
}
it.Comparator = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputPagination(ctx context.Context, obj interface{}) (model.Pagination, error) {
var it model.Pagination
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"page", "limit"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "page":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("page"))
data, err := ec.unmarshalNInt2int(ctx, v)
if err != nil {
return it, err
}
it.Page = data
case "limit":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit"))
data, err := ec.unmarshalNInt2int(ctx, v)
if err != nil {
return it, err
}
it.Limit = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputPodLog(ctx context.Context, obj interface{}) (model.PodLog, error) {
var it model.PodLog
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"infraID", "requestID", "experimentRunID", "podName", "podType", "log"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalNInfraIdentity2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
case "requestID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestID"))
data, err := ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.RequestID = data
case "experimentRunID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunID"))
data, err := ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.ExperimentRunID = data
case "podName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("podName"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.PodName = data
case "podType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("podType"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.PodType = data
case "log":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("log"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Log = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputPodLogRequest(ctx context.Context, obj interface{}) (model.PodLogRequest, error) {
var it model.PodLogRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"infraID", "projectID", "experimentRunID", "podName", "podNamespace", "podType", "expPod", "runnerPod", "chaosNamespace"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
case "projectID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectID"))
data, err := ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.ProjectID = data
case "experimentRunID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunID"))
data, err := ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.ExperimentRunID = data
case "podName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("podName"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.PodName = data
case "podNamespace":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("podNamespace"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.PodNamespace = data
case "podType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("podType"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.PodType = data
case "expPod":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expPod"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ExpPod = data
case "runnerPod":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("runnerPod"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.RunnerPod = data
case "chaosNamespace":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chaosNamespace"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ChaosNamespace = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputProbeFilterInput(ctx context.Context, obj interface{}) (model.ProbeFilterInput, error) {
var it model.ProbeFilterInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"name", "dateRange", "type"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "name":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Name = data
case "dateRange":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateRange"))
data, err := ec.unmarshalODateRange2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐDateRange(ctx, v)
if err != nil {
return it, err
}
it.DateRange = data
case "type":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
data, err := ec.unmarshalOProbeType2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx, v)
if err != nil {
return it, err
}
it.Type = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputProbeRequest(ctx context.Context, obj interface{}) (model.ProbeRequest, error) {
var it model.ProbeRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"name", "description", "tags", "type", "infrastructureType", "kubernetesHTTPProperties", "kubernetesCMDProperties", "k8sProperties", "promProperties"}
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.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.Name = 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 "tags":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.Tags = data
case "type":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
data, err := ec.unmarshalNProbeType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx, v)
if err != nil {
return it, err
}
it.Type = data
case "infrastructureType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infrastructureType"))
data, err := ec.unmarshalNInfrastructureType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, v)
if err != nil {
return it, err
}
it.InfrastructureType = data
case "kubernetesHTTPProperties":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kubernetesHTTPProperties"))
data, err := ec.unmarshalOKubernetesHTTPProbeRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesHTTPProbeRequest(ctx, v)
if err != nil {
return it, err
}
it.KubernetesHTTPProperties = data
case "kubernetesCMDProperties":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kubernetesCMDProperties"))
data, err := ec.unmarshalOKubernetesCMDProbeRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesCMDProbeRequest(ctx, v)
if err != nil {
return it, err
}
it.KubernetesCMDProperties = data
case "k8sProperties":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("k8sProperties"))
data, err := ec.unmarshalOK8SProbeRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐK8SProbeRequest(ctx, v)
if err != nil {
return it, err
}
it.K8sProperties = data
case "promProperties":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("promProperties"))
data, err := ec.unmarshalOPROMProbeRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPROMProbeRequest(ctx, v)
if err != nil {
return it, err
}
it.PromProperties = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputRegisterInfraRequest(ctx context.Context, obj interface{}) (model.RegisterInfraRequest, error) {
var it model.RegisterInfraRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"name", "environmentID", "infrastructureType", "description", "platformName", "infraNamespace", "serviceAccount", "infraScope", "infraNsExists", "infraSaExists", "skipSsl", "nodeSelector", "tolerations", "tags"}
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 "environmentID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environmentID"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.EnvironmentID = data
case "infrastructureType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infrastructureType"))
data, err := ec.unmarshalNInfrastructureType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, v)
if err != nil {
return it, err
}
it.InfrastructureType = 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 "platformName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("platformName"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.PlatformName = data
case "infraNamespace":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraNamespace"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.InfraNamespace = data
case "serviceAccount":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceAccount"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ServiceAccount = data
case "infraScope":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraScope"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.InfraScope = data
case "infraNsExists":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraNsExists"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.InfraNsExists = data
case "infraSaExists":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraSaExists"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.InfraSaExists = data
case "skipSsl":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("skipSsl"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.SkipSsl = data
case "nodeSelector":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nodeSelector"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.NodeSelector = data
case "tolerations":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tolerations"))
data, err := ec.unmarshalOToleration2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐToleration(ctx, v)
if err != nil {
return it, err
}
it.Tolerations = data
case "tags":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.Tags = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputSaveChaosExperimentRequest(ctx context.Context, obj interface{}) (model.SaveChaosExperimentRequest, error) {
var it model.SaveChaosExperimentRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"id", "type", "name", "description", "manifest", "infraID", "tags"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "id":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ID = data
case "type":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
data, err := ec.unmarshalOExperimentType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentType(ctx, v)
if err != nil {
return it, err
}
it.Type = 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 "description":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Description = data
case "manifest":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("manifest"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Manifest = data
case "infraID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID"))
data, err := ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
it.InfraID = data
case "tags":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.Tags = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputToleration(ctx context.Context, obj interface{}) (model.Toleration, error) {
var it model.Toleration
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"tolerationSeconds", "key", "operator", "effect", "value"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
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 "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.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Operator = data
case "effect":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("effect"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Effect = 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) unmarshalInputUpdateChaosHubRequest(ctx context.Context, obj interface{}) (model.UpdateChaosHubRequest, error) {
var it model.UpdateChaosHubRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"id", "name", "description", "tags", "repoURL", "repoBranch", "remoteHub", "isPrivate", "authType", "token", "userName", "password", "sshPrivateKey", "sshPublicKey"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "id":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.ID = 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 "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 "tags":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
it.Tags = data
case "repoURL":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoURL"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RepoURL = data
case "repoBranch":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoBranch"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RepoBranch = data
case "remoteHub":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("remoteHub"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.RemoteHub = data
case "isPrivate":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isPrivate"))
data, err := ec.unmarshalNBoolean2bool(ctx, v)
if err != nil {
return it, err
}
it.IsPrivate = data
case "authType":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authType"))
data, err := ec.unmarshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, v)
if err != nil {
return it, err
}
it.AuthType = data
case "token":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Token = data
case "userName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.UserName = data
case "password":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Password = data
case "sshPrivateKey":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sshPrivateKey"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.SSHPrivateKey = data
case "sshPublicKey":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sshPublicKey"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.SSHPublicKey = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputUpdateEnvironmentRequest(ctx context.Context, obj interface{}) (model.UpdateEnvironmentRequest, error) {
var it model.UpdateEnvironmentRequest
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"environmentID", "name", "description", "tags", "type"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "environmentID":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environmentID"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.EnvironmentID = data
case "name":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Name = data
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 "tags":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Tags = data
case "type":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
data, err := ec.unmarshalOEnvironmentType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx, v)
if err != nil {
return it, err
}
it.Type = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputWeightagesInput(ctx context.Context, obj interface{}) (model.WeightagesInput, error) {
var it model.WeightagesInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"faultName", "weightage"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "faultName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("faultName"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.FaultName = data
case "weightage":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("weightage"))
data, err := ec.unmarshalNInt2int(ctx, v)
if err != nil {
return it, err
}
it.Weightage = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputWorkload(ctx context.Context, obj interface{}) (model.Workload, error) {
var it model.Workload
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
fieldsInOrder := [...]string{"name", "kind", "namespace"}
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 "kind":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Kind = 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
}
// endregion **************************** input.gotpl *****************************
// region ************************** interface.gotpl ***************************
func (ec *executionContext) _Audit(ctx context.Context, sel ast.SelectionSet, obj model.Audit) graphql.Marshaler {
switch obj := (obj).(type) {
case nil:
return graphql.Null
case model.Experiment:
return ec._Experiment(ctx, sel, &obj)
case *model.Experiment:
if obj == nil {
return graphql.Null
}
return ec._Experiment(ctx, sel, obj)
case model.Infra:
return ec._Infra(ctx, sel, &obj)
case *model.Infra:
if obj == nil {
return graphql.Null
}
return ec._Infra(ctx, sel, obj)
case model.ChaosHub:
return ec._ChaosHub(ctx, sel, &obj)
case *model.ChaosHub:
if obj == nil {
return graphql.Null
}
return ec._ChaosHub(ctx, sel, obj)
case model.ChaosHubStatus:
return ec._ChaosHubStatus(ctx, sel, &obj)
case *model.ChaosHubStatus:
if obj == nil {
return graphql.Null
}
return ec._ChaosHubStatus(ctx, sel, obj)
case model.Environment:
return ec._Environment(ctx, sel, &obj)
case *model.Environment:
if obj == nil {
return graphql.Null
}
return ec._Environment(ctx, sel, obj)
case model.Probe:
return ec._Probe(ctx, sel, &obj)
case *model.Probe:
if obj == nil {
return graphql.Null
}
return ec._Probe(ctx, sel, obj)
case model.ExperimentRun:
return ec._ExperimentRun(ctx, sel, &obj)
case *model.ExperimentRun:
if obj == nil {
return graphql.Null
}
return ec._ExperimentRun(ctx, sel, obj)
case model.RecentExperimentRun:
return ec._RecentExperimentRun(ctx, sel, &obj)
case *model.RecentExperimentRun:
if obj == nil {
return graphql.Null
}
return ec._RecentExperimentRun(ctx, sel, obj)
case model.ImageRegistryResponse:
return ec._ImageRegistryResponse(ctx, sel, &obj)
case *model.ImageRegistryResponse:
if obj == nil {
return graphql.Null
}
return ec._ImageRegistryResponse(ctx, sel, obj)
default:
panic(fmt.Errorf("unexpected type %T", obj))
}
}
func (ec *executionContext) _CommonProbeProperties(ctx context.Context, sel ast.SelectionSet, obj model.CommonProbeProperties) graphql.Marshaler {
switch obj := (obj).(type) {
case nil:
return graphql.Null
case model.KubernetesCMDProbe:
return ec._KubernetesCMDProbe(ctx, sel, &obj)
case *model.KubernetesCMDProbe:
if obj == nil {
return graphql.Null
}
return ec._KubernetesCMDProbe(ctx, sel, obj)
case model.PROMProbe:
return ec._PROMProbe(ctx, sel, &obj)
case *model.PROMProbe:
if obj == nil {
return graphql.Null
}
return ec._PROMProbe(ctx, sel, obj)
case model.KubernetesHTTPProbe:
return ec._KubernetesHTTPProbe(ctx, sel, &obj)
case *model.KubernetesHTTPProbe:
if obj == nil {
return graphql.Null
}
return ec._KubernetesHTTPProbe(ctx, sel, obj)
case model.K8SProbe:
return ec._K8SProbe(ctx, sel, &obj)
case *model.K8SProbe:
if obj == nil {
return graphql.Null
}
return ec._K8SProbe(ctx, sel, obj)
default:
panic(fmt.Errorf("unexpected type %T", obj))
}
}
func (ec *executionContext) _ResourceDetails(ctx context.Context, sel ast.SelectionSet, obj model.ResourceDetails) graphql.Marshaler {
switch obj := (obj).(type) {
case nil:
return graphql.Null
case model.Experiment:
return ec._Experiment(ctx, sel, &obj)
case *model.Experiment:
if obj == nil {
return graphql.Null
}
return ec._Experiment(ctx, sel, obj)
case model.Infra:
return ec._Infra(ctx, sel, &obj)
case *model.Infra:
if obj == nil {
return graphql.Null
}
return ec._Infra(ctx, sel, obj)
case model.ChaosHub:
return ec._ChaosHub(ctx, sel, &obj)
case *model.ChaosHub:
if obj == nil {
return graphql.Null
}
return ec._ChaosHub(ctx, sel, obj)
case model.ChaosHubStatus:
return ec._ChaosHubStatus(ctx, sel, &obj)
case *model.ChaosHubStatus:
if obj == nil {
return graphql.Null
}
return ec._ChaosHubStatus(ctx, sel, obj)
case model.Environment:
return ec._Environment(ctx, sel, &obj)
case *model.Environment:
if obj == nil {
return graphql.Null
}
return ec._Environment(ctx, sel, obj)
case model.Probe:
return ec._Probe(ctx, sel, &obj)
case *model.Probe:
if obj == nil {
return graphql.Null
}
return ec._Probe(ctx, sel, obj)
default:
panic(fmt.Errorf("unexpected type %T", obj))
}
}
// endregion ************************** interface.gotpl ***************************
// region **************************** object.gotpl ****************************
var actionPayloadImplementors = []string{"ActionPayload"}
func (ec *executionContext) _ActionPayload(ctx context.Context, sel ast.SelectionSet, obj *model.ActionPayload) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, actionPayloadImplementors)
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("ActionPayload")
case "requestID":
out.Values[i] = ec._ActionPayload_requestID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "requestType":
out.Values[i] = ec._ActionPayload_requestType(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "k8sManifest":
out.Values[i] = ec._ActionPayload_k8sManifest(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "namespace":
out.Values[i] = ec._ActionPayload_namespace(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "externalData":
out.Values[i] = ec._ActionPayload_externalData(ctx, field, obj)
case "username":
out.Values[i] = ec._ActionPayload_username(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 annotationImplementors = []string{"Annotation"}
func (ec *executionContext) _Annotation(ctx context.Context, sel ast.SelectionSet, obj *model.Annotation) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, annotationImplementors)
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("Annotation")
case "categories":
out.Values[i] = ec._Annotation_categories(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "vendor":
out.Values[i] = ec._Annotation_vendor(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdAt":
out.Values[i] = ec._Annotation_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "repository":
out.Values[i] = ec._Annotation_repository(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "support":
out.Values[i] = ec._Annotation_support(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "chartDescription":
out.Values[i] = ec._Annotation_chartDescription(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 chaosExperimentResponseImplementors = []string{"ChaosExperimentResponse"}
func (ec *executionContext) _ChaosExperimentResponse(ctx context.Context, sel ast.SelectionSet, obj *model.ChaosExperimentResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, chaosExperimentResponseImplementors)
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("ChaosExperimentResponse")
case "experimentID":
out.Values[i] = ec._ChaosExperimentResponse_experimentID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "projectID":
out.Values[i] = ec._ChaosExperimentResponse_projectID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "cronSyntax":
out.Values[i] = ec._ChaosExperimentResponse_cronSyntax(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentName":
out.Values[i] = ec._ChaosExperimentResponse_experimentName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentDescription":
out.Values[i] = ec._ChaosExperimentResponse_experimentDescription(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isCustomExperiment":
out.Values[i] = ec._ChaosExperimentResponse_isCustomExperiment(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "tags":
out.Values[i] = ec._ChaosExperimentResponse_tags(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 chaosHubImplementors = []string{"ChaosHub", "ResourceDetails", "Audit"}
func (ec *executionContext) _ChaosHub(ctx context.Context, sel ast.SelectionSet, obj *model.ChaosHub) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, chaosHubImplementors)
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("ChaosHub")
case "id":
out.Values[i] = ec._ChaosHub_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "repoURL":
out.Values[i] = ec._ChaosHub_repoURL(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "repoBranch":
out.Values[i] = ec._ChaosHub_repoBranch(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "remoteHub":
out.Values[i] = ec._ChaosHub_remoteHub(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "projectID":
out.Values[i] = ec._ChaosHub_projectID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isDefault":
out.Values[i] = ec._ChaosHub_isDefault(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "name":
out.Values[i] = ec._ChaosHub_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "tags":
out.Values[i] = ec._ChaosHub_tags(ctx, field, obj)
case "createdBy":
out.Values[i] = ec._ChaosHub_createdBy(ctx, field, obj)
case "updatedBy":
out.Values[i] = ec._ChaosHub_updatedBy(ctx, field, obj)
case "description":
out.Values[i] = ec._ChaosHub_description(ctx, field, obj)
case "hubType":
out.Values[i] = ec._ChaosHub_hubType(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isPrivate":
out.Values[i] = ec._ChaosHub_isPrivate(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "authType":
out.Values[i] = ec._ChaosHub_authType(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "token":
out.Values[i] = ec._ChaosHub_token(ctx, field, obj)
case "userName":
out.Values[i] = ec._ChaosHub_userName(ctx, field, obj)
case "password":
out.Values[i] = ec._ChaosHub_password(ctx, field, obj)
case "sshPrivateKey":
out.Values[i] = ec._ChaosHub_sshPrivateKey(ctx, field, obj)
case "isRemoved":
out.Values[i] = ec._ChaosHub_isRemoved(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdAt":
out.Values[i] = ec._ChaosHub_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updatedAt":
out.Values[i] = ec._ChaosHub_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "lastSyncedAt":
out.Values[i] = ec._ChaosHub_lastSyncedAt(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 chaosHubStatusImplementors = []string{"ChaosHubStatus", "ResourceDetails", "Audit"}
func (ec *executionContext) _ChaosHubStatus(ctx context.Context, sel ast.SelectionSet, obj *model.ChaosHubStatus) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, chaosHubStatusImplementors)
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("ChaosHubStatus")
case "id":
out.Values[i] = ec._ChaosHubStatus_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "repoURL":
out.Values[i] = ec._ChaosHubStatus_repoURL(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "repoBranch":
out.Values[i] = ec._ChaosHubStatus_repoBranch(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "remoteHub":
out.Values[i] = ec._ChaosHubStatus_remoteHub(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isAvailable":
out.Values[i] = ec._ChaosHubStatus_isAvailable(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalFaults":
out.Values[i] = ec._ChaosHubStatus_totalFaults(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalExperiments":
out.Values[i] = ec._ChaosHubStatus_totalExperiments(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "name":
out.Values[i] = ec._ChaosHubStatus_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "hubType":
out.Values[i] = ec._ChaosHubStatus_hubType(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isPrivate":
out.Values[i] = ec._ChaosHubStatus_isPrivate(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "authType":
out.Values[i] = ec._ChaosHubStatus_authType(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "token":
out.Values[i] = ec._ChaosHubStatus_token(ctx, field, obj)
case "userName":
out.Values[i] = ec._ChaosHubStatus_userName(ctx, field, obj)
case "password":
out.Values[i] = ec._ChaosHubStatus_password(ctx, field, obj)
case "isRemoved":
out.Values[i] = ec._ChaosHubStatus_isRemoved(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "sshPrivateKey":
out.Values[i] = ec._ChaosHubStatus_sshPrivateKey(ctx, field, obj)
case "sshPublicKey":
out.Values[i] = ec._ChaosHubStatus_sshPublicKey(ctx, field, obj)
case "lastSyncedAt":
out.Values[i] = ec._ChaosHubStatus_lastSyncedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "tags":
out.Values[i] = ec._ChaosHubStatus_tags(ctx, field, obj)
case "createdBy":
out.Values[i] = ec._ChaosHubStatus_createdBy(ctx, field, obj)
case "updatedBy":
out.Values[i] = ec._ChaosHubStatus_updatedBy(ctx, field, obj)
case "createdAt":
out.Values[i] = ec._ChaosHubStatus_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updatedAt":
out.Values[i] = ec._ChaosHubStatus_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec._ChaosHubStatus_description(ctx, field, obj)
case "isDefault":
out.Values[i] = ec._ChaosHubStatus_isDefault(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 chartImplementors = []string{"Chart"}
func (ec *executionContext) _Chart(ctx context.Context, sel ast.SelectionSet, obj *model.Chart) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, chartImplementors)
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("Chart")
case "apiVersion":
out.Values[i] = ec._Chart_apiVersion(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "kind":
out.Values[i] = ec._Chart_kind(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "metadata":
out.Values[i] = ec._Chart_metadata(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "spec":
out.Values[i] = ec._Chart_spec(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "packageInfo":
out.Values[i] = ec._Chart_packageInfo(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 comparatorImplementors = []string{"Comparator"}
func (ec *executionContext) _Comparator(ctx context.Context, sel ast.SelectionSet, obj *model.Comparator) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, comparatorImplementors)
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("Comparator")
case "type":
out.Values[i] = ec._Comparator_type(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "value":
out.Values[i] = ec._Comparator_value(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "criteria":
out.Values[i] = ec._Comparator_criteria(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 confirmInfraRegistrationResponseImplementors = []string{"ConfirmInfraRegistrationResponse"}
func (ec *executionContext) _ConfirmInfraRegistrationResponse(ctx context.Context, sel ast.SelectionSet, obj *model.ConfirmInfraRegistrationResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, confirmInfraRegistrationResponseImplementors)
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("ConfirmInfraRegistrationResponse")
case "isInfraConfirmed":
out.Values[i] = ec._ConfirmInfraRegistrationResponse_isInfraConfirmed(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "newAccessKey":
out.Values[i] = ec._ConfirmInfraRegistrationResponse_newAccessKey(ctx, field, obj)
case "infraID":
out.Values[i] = ec._ConfirmInfraRegistrationResponse_infraID(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 environmentImplementors = []string{"Environment", "ResourceDetails", "Audit"}
func (ec *executionContext) _Environment(ctx context.Context, sel ast.SelectionSet, obj *model.Environment) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, environmentImplementors)
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("Environment")
case "projectID":
out.Values[i] = ec._Environment_projectID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "environmentID":
out.Values[i] = ec._Environment_environmentID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "name":
out.Values[i] = ec._Environment_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec._Environment_description(ctx, field, obj)
case "tags":
out.Values[i] = ec._Environment_tags(ctx, field, obj)
case "type":
out.Values[i] = ec._Environment_type(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdAt":
out.Values[i] = ec._Environment_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdBy":
out.Values[i] = ec._Environment_createdBy(ctx, field, obj)
case "updatedBy":
out.Values[i] = ec._Environment_updatedBy(ctx, field, obj)
case "updatedAt":
out.Values[i] = ec._Environment_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isRemoved":
out.Values[i] = ec._Environment_isRemoved(ctx, field, obj)
case "infraIDs":
out.Values[i] = ec._Environment_infraIDs(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 executedByExperimentImplementors = []string{"ExecutedByExperiment"}
func (ec *executionContext) _ExecutedByExperiment(ctx context.Context, sel ast.SelectionSet, obj *model.ExecutedByExperiment) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, executedByExperimentImplementors)
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("ExecutedByExperiment")
case "experimentID":
out.Values[i] = ec._ExecutedByExperiment_experimentID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentName":
out.Values[i] = ec._ExecutedByExperiment_experimentName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updatedAt":
out.Values[i] = ec._ExecutedByExperiment_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updatedBy":
out.Values[i] = ec._ExecutedByExperiment_updatedBy(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 executionHistoryImplementors = []string{"ExecutionHistory"}
func (ec *executionContext) _ExecutionHistory(ctx context.Context, sel ast.SelectionSet, obj *model.ExecutionHistory) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, executionHistoryImplementors)
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("ExecutionHistory")
case "mode":
out.Values[i] = ec._ExecutionHistory_mode(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "faultName":
out.Values[i] = ec._ExecutionHistory_faultName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "status":
out.Values[i] = ec._ExecutionHistory_status(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "executedByExperiment":
out.Values[i] = ec._ExecutionHistory_executedByExperiment(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 experimentImplementors = []string{"Experiment", "ResourceDetails", "Audit"}
func (ec *executionContext) _Experiment(ctx context.Context, sel ast.SelectionSet, obj *model.Experiment) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, experimentImplementors)
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("Experiment")
case "projectID":
out.Values[i] = ec._Experiment_projectID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentID":
out.Values[i] = ec._Experiment_experimentID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentType":
out.Values[i] = ec._Experiment_experimentType(ctx, field, obj)
case "experimentManifest":
out.Values[i] = ec._Experiment_experimentManifest(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "cronSyntax":
out.Values[i] = ec._Experiment_cronSyntax(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "name":
out.Values[i] = ec._Experiment_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec._Experiment_description(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "weightages":
out.Values[i] = ec._Experiment_weightages(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isCustomExperiment":
out.Values[i] = ec._Experiment_isCustomExperiment(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updatedAt":
out.Values[i] = ec._Experiment_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdAt":
out.Values[i] = ec._Experiment_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "infra":
out.Values[i] = ec._Experiment_infra(ctx, field, obj)
case "isRemoved":
out.Values[i] = ec._Experiment_isRemoved(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "tags":
out.Values[i] = ec._Experiment_tags(ctx, field, obj)
case "createdBy":
out.Values[i] = ec._Experiment_createdBy(ctx, field, obj)
case "recentExperimentRunDetails":
out.Values[i] = ec._Experiment_recentExperimentRunDetails(ctx, field, obj)
case "updatedBy":
out.Values[i] = ec._Experiment_updatedBy(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 experimentDetailsImplementors = []string{"ExperimentDetails"}
func (ec *executionContext) _ExperimentDetails(ctx context.Context, sel ast.SelectionSet, obj *model.ExperimentDetails) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, experimentDetailsImplementors)
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("ExperimentDetails")
case "engineDetails":
out.Values[i] = ec._ExperimentDetails_engineDetails(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentDetails":
out.Values[i] = ec._ExperimentDetails_experimentDetails(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 experimentRunImplementors = []string{"ExperimentRun", "Audit"}
func (ec *executionContext) _ExperimentRun(ctx context.Context, sel ast.SelectionSet, obj *model.ExperimentRun) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, experimentRunImplementors)
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("ExperimentRun")
case "projectID":
out.Values[i] = ec._ExperimentRun_projectID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentRunID":
out.Values[i] = ec._ExperimentRun_experimentRunID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentType":
out.Values[i] = ec._ExperimentRun_experimentType(ctx, field, obj)
case "experimentID":
out.Values[i] = ec._ExperimentRun_experimentID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "weightages":
out.Values[i] = ec._ExperimentRun_weightages(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updatedAt":
out.Values[i] = ec._ExperimentRun_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdAt":
out.Values[i] = ec._ExperimentRun_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "infra":
out.Values[i] = ec._ExperimentRun_infra(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentName":
out.Values[i] = ec._ExperimentRun_experimentName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentManifest":
out.Values[i] = ec._ExperimentRun_experimentManifest(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "phase":
out.Values[i] = ec._ExperimentRun_phase(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "resiliencyScore":
out.Values[i] = ec._ExperimentRun_resiliencyScore(ctx, field, obj)
case "faultsPassed":
out.Values[i] = ec._ExperimentRun_faultsPassed(ctx, field, obj)
case "faultsFailed":
out.Values[i] = ec._ExperimentRun_faultsFailed(ctx, field, obj)
case "faultsAwaited":
out.Values[i] = ec._ExperimentRun_faultsAwaited(ctx, field, obj)
case "faultsStopped":
out.Values[i] = ec._ExperimentRun_faultsStopped(ctx, field, obj)
case "faultsNa":
out.Values[i] = ec._ExperimentRun_faultsNa(ctx, field, obj)
case "totalFaults":
out.Values[i] = ec._ExperimentRun_totalFaults(ctx, field, obj)
case "executionData":
out.Values[i] = ec._ExperimentRun_executionData(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isRemoved":
out.Values[i] = ec._ExperimentRun_isRemoved(ctx, field, obj)
case "updatedBy":
out.Values[i] = ec._ExperimentRun_updatedBy(ctx, field, obj)
case "createdBy":
out.Values[i] = ec._ExperimentRun_createdBy(ctx, field, obj)
case "notifyID":
out.Values[i] = ec._ExperimentRun_notifyID(ctx, field, obj)
case "runSequence":
out.Values[i] = ec._ExperimentRun_runSequence(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 experimentsImplementors = []string{"Experiments"}
func (ec *executionContext) _Experiments(ctx context.Context, sel ast.SelectionSet, obj *model.Experiments) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, experimentsImplementors)
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("Experiments")
case "name":
out.Values[i] = ec._Experiments_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "CSV":
out.Values[i] = ec._Experiments_CSV(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "desc":
out.Values[i] = ec._Experiments_desc(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 faultDetailsImplementors = []string{"FaultDetails"}
func (ec *executionContext) _FaultDetails(ctx context.Context, sel ast.SelectionSet, obj *model.FaultDetails) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, faultDetailsImplementors)
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("FaultDetails")
case "fault":
out.Values[i] = ec._FaultDetails_fault(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "engine":
out.Values[i] = ec._FaultDetails_engine(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "csv":
out.Values[i] = ec._FaultDetails_csv(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 faultListImplementors = []string{"FaultList"}
func (ec *executionContext) _FaultList(ctx context.Context, sel ast.SelectionSet, obj *model.FaultList) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, faultListImplementors)
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("FaultList")
case "name":
out.Values[i] = ec._FaultList_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "displayName":
out.Values[i] = ec._FaultList_displayName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec._FaultList_description(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "plan":
out.Values[i] = ec._FaultList_plan(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 gETImplementors = []string{"GET"}
func (ec *executionContext) _GET(ctx context.Context, sel ast.SelectionSet, obj *model.Get) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, gETImplementors)
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("GET")
case "criteria":
out.Values[i] = ec._GET_criteria(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "responseCode":
out.Values[i] = ec._GET_responseCode(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 getChaosHubStatsResponseImplementors = []string{"GetChaosHubStatsResponse"}
func (ec *executionContext) _GetChaosHubStatsResponse(ctx context.Context, sel ast.SelectionSet, obj *model.GetChaosHubStatsResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, getChaosHubStatsResponseImplementors)
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("GetChaosHubStatsResponse")
case "totalChaosHubs":
out.Values[i] = ec._GetChaosHubStatsResponse_totalChaosHubs(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 getExperimentResponseImplementors = []string{"GetExperimentResponse"}
func (ec *executionContext) _GetExperimentResponse(ctx context.Context, sel ast.SelectionSet, obj *model.GetExperimentResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, getExperimentResponseImplementors)
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("GetExperimentResponse")
case "experimentDetails":
out.Values[i] = ec._GetExperimentResponse_experimentDetails(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "averageResiliencyScore":
out.Values[i] = ec._GetExperimentResponse_averageResiliencyScore(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 getExperimentRunStatsResponseImplementors = []string{"GetExperimentRunStatsResponse"}
func (ec *executionContext) _GetExperimentRunStatsResponse(ctx context.Context, sel ast.SelectionSet, obj *model.GetExperimentRunStatsResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, getExperimentRunStatsResponseImplementors)
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("GetExperimentRunStatsResponse")
case "totalExperimentRuns":
out.Values[i] = ec._GetExperimentRunStatsResponse_totalExperimentRuns(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalCompletedExperimentRuns":
out.Values[i] = ec._GetExperimentRunStatsResponse_totalCompletedExperimentRuns(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalTerminatedExperimentRuns":
out.Values[i] = ec._GetExperimentRunStatsResponse_totalTerminatedExperimentRuns(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalRunningExperimentRuns":
out.Values[i] = ec._GetExperimentRunStatsResponse_totalRunningExperimentRuns(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalStoppedExperimentRuns":
out.Values[i] = ec._GetExperimentRunStatsResponse_totalStoppedExperimentRuns(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalErroredExperimentRuns":
out.Values[i] = ec._GetExperimentRunStatsResponse_totalErroredExperimentRuns(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 getExperimentStatsResponseImplementors = []string{"GetExperimentStatsResponse"}
func (ec *executionContext) _GetExperimentStatsResponse(ctx context.Context, sel ast.SelectionSet, obj *model.GetExperimentStatsResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, getExperimentStatsResponseImplementors)
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("GetExperimentStatsResponse")
case "totalExperiments":
out.Values[i] = ec._GetExperimentStatsResponse_totalExperiments(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalExpCategorizedByResiliencyScore":
out.Values[i] = ec._GetExperimentStatsResponse_totalExpCategorizedByResiliencyScore(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 getInfraStatsResponseImplementors = []string{"GetInfraStatsResponse"}
func (ec *executionContext) _GetInfraStatsResponse(ctx context.Context, sel ast.SelectionSet, obj *model.GetInfraStatsResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, getInfraStatsResponseImplementors)
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("GetInfraStatsResponse")
case "totalInfrastructures":
out.Values[i] = ec._GetInfraStatsResponse_totalInfrastructures(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalActiveInfrastructure":
out.Values[i] = ec._GetInfraStatsResponse_totalActiveInfrastructure(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalInactiveInfrastructures":
out.Values[i] = ec._GetInfraStatsResponse_totalInactiveInfrastructures(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalConfirmedInfrastructure":
out.Values[i] = ec._GetInfraStatsResponse_totalConfirmedInfrastructure(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalNonConfirmedInfrastructures":
out.Values[i] = ec._GetInfraStatsResponse_totalNonConfirmedInfrastructures(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 getProbeReferenceResponseImplementors = []string{"GetProbeReferenceResponse"}
func (ec *executionContext) _GetProbeReferenceResponse(ctx context.Context, sel ast.SelectionSet, obj *model.GetProbeReferenceResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, getProbeReferenceResponseImplementors)
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("GetProbeReferenceResponse")
case "projectID":
out.Values[i] = ec._GetProbeReferenceResponse_projectID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "name":
out.Values[i] = ec._GetProbeReferenceResponse_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalRuns":
out.Values[i] = ec._GetProbeReferenceResponse_totalRuns(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "recentExecutions":
out.Values[i] = ec._GetProbeReferenceResponse_recentExecutions(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 getProbesInExperimentRunResponseImplementors = []string{"GetProbesInExperimentRunResponse"}
func (ec *executionContext) _GetProbesInExperimentRunResponse(ctx context.Context, sel ast.SelectionSet, obj *model.GetProbesInExperimentRunResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, getProbesInExperimentRunResponseImplementors)
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("GetProbesInExperimentRunResponse")
case "probe":
out.Values[i] = ec._GetProbesInExperimentRunResponse_probe(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "mode":
out.Values[i] = ec._GetProbesInExperimentRunResponse_mode(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "status":
out.Values[i] = ec._GetProbesInExperimentRunResponse_status(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 gitConfigResponseImplementors = []string{"GitConfigResponse"}
func (ec *executionContext) _GitConfigResponse(ctx context.Context, sel ast.SelectionSet, obj *model.GitConfigResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, gitConfigResponseImplementors)
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("GitConfigResponse")
case "enabled":
out.Values[i] = ec._GitConfigResponse_enabled(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "projectID":
out.Values[i] = ec._GitConfigResponse_projectID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "branch":
out.Values[i] = ec._GitConfigResponse_branch(ctx, field, obj)
case "repoURL":
out.Values[i] = ec._GitConfigResponse_repoURL(ctx, field, obj)
case "authType":
out.Values[i] = ec._GitConfigResponse_authType(ctx, field, obj)
case "token":
out.Values[i] = ec._GitConfigResponse_token(ctx, field, obj)
case "userName":
out.Values[i] = ec._GitConfigResponse_userName(ctx, field, obj)
case "password":
out.Values[i] = ec._GitConfigResponse_password(ctx, field, obj)
case "sshPrivateKey":
out.Values[i] = ec._GitConfigResponse_sshPrivateKey(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 imageRegistryImplementors = []string{"ImageRegistry"}
func (ec *executionContext) _ImageRegistry(ctx context.Context, sel ast.SelectionSet, obj *model.ImageRegistry) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, imageRegistryImplementors)
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("ImageRegistry")
case "isDefault":
out.Values[i] = ec._ImageRegistry_isDefault(ctx, field, obj)
case "imageRegistryName":
out.Values[i] = ec._ImageRegistry_imageRegistryName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "imageRepoName":
out.Values[i] = ec._ImageRegistry_imageRepoName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "imageRegistryType":
out.Values[i] = ec._ImageRegistry_imageRegistryType(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "secretName":
out.Values[i] = ec._ImageRegistry_secretName(ctx, field, obj)
case "secretNamespace":
out.Values[i] = ec._ImageRegistry_secretNamespace(ctx, field, obj)
case "enableRegistry":
out.Values[i] = ec._ImageRegistry_enableRegistry(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 imageRegistryResponseImplementors = []string{"ImageRegistryResponse", "Audit"}
func (ec *executionContext) _ImageRegistryResponse(ctx context.Context, sel ast.SelectionSet, obj *model.ImageRegistryResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, imageRegistryResponseImplementors)
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("ImageRegistryResponse")
case "isDefault":
out.Values[i] = ec._ImageRegistryResponse_isDefault(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "imageRegistryInfo":
out.Values[i] = ec._ImageRegistryResponse_imageRegistryInfo(ctx, field, obj)
case "imageRegistryID":
out.Values[i] = ec._ImageRegistryResponse_imageRegistryID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "projectID":
out.Values[i] = ec._ImageRegistryResponse_projectID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updatedAt":
out.Values[i] = ec._ImageRegistryResponse_updatedAt(ctx, field, obj)
case "createdAt":
out.Values[i] = ec._ImageRegistryResponse_createdAt(ctx, field, obj)
case "createdBy":
out.Values[i] = ec._ImageRegistryResponse_createdBy(ctx, field, obj)
case "updatedBy":
out.Values[i] = ec._ImageRegistryResponse_updatedBy(ctx, field, obj)
case "isRemoved":
out.Values[i] = ec._ImageRegistryResponse_isRemoved(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 infraImplementors = []string{"Infra", "ResourceDetails", "Audit"}
func (ec *executionContext) _Infra(ctx context.Context, sel ast.SelectionSet, obj *model.Infra) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, infraImplementors)
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("Infra")
case "projectID":
out.Values[i] = ec._Infra_projectID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "infraID":
out.Values[i] = ec._Infra_infraID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "name":
out.Values[i] = ec._Infra_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec._Infra_description(ctx, field, obj)
case "tags":
out.Values[i] = ec._Infra_tags(ctx, field, obj)
case "environmentID":
out.Values[i] = ec._Infra_environmentID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "platformName":
out.Values[i] = ec._Infra_platformName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isActive":
out.Values[i] = ec._Infra_isActive(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isInfraConfirmed":
out.Values[i] = ec._Infra_isInfraConfirmed(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isRemoved":
out.Values[i] = ec._Infra_isRemoved(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updatedAt":
out.Values[i] = ec._Infra_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdAt":
out.Values[i] = ec._Infra_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "noOfExperiments":
out.Values[i] = ec._Infra_noOfExperiments(ctx, field, obj)
case "noOfExperimentRuns":
out.Values[i] = ec._Infra_noOfExperimentRuns(ctx, field, obj)
case "token":
out.Values[i] = ec._Infra_token(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "infraNamespace":
out.Values[i] = ec._Infra_infraNamespace(ctx, field, obj)
case "serviceAccount":
out.Values[i] = ec._Infra_serviceAccount(ctx, field, obj)
case "infraScope":
out.Values[i] = ec._Infra_infraScope(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "infraNsExists":
out.Values[i] = ec._Infra_infraNsExists(ctx, field, obj)
case "infraSaExists":
out.Values[i] = ec._Infra_infraSaExists(ctx, field, obj)
case "lastExperimentTimestamp":
out.Values[i] = ec._Infra_lastExperimentTimestamp(ctx, field, obj)
case "startTime":
out.Values[i] = ec._Infra_startTime(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "version":
out.Values[i] = ec._Infra_version(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdBy":
out.Values[i] = ec._Infra_createdBy(ctx, field, obj)
case "updatedBy":
out.Values[i] = ec._Infra_updatedBy(ctx, field, obj)
case "infraType":
out.Values[i] = ec._Infra_infraType(ctx, field, obj)
case "updateStatus":
out.Values[i] = ec._Infra_updateStatus(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 infraActionResponseImplementors = []string{"InfraActionResponse"}
func (ec *executionContext) _InfraActionResponse(ctx context.Context, sel ast.SelectionSet, obj *model.InfraActionResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, infraActionResponseImplementors)
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("InfraActionResponse")
case "projectID":
out.Values[i] = ec._InfraActionResponse_projectID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "action":
out.Values[i] = ec._InfraActionResponse_action(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 infraEventResponseImplementors = []string{"InfraEventResponse"}
func (ec *executionContext) _InfraEventResponse(ctx context.Context, sel ast.SelectionSet, obj *model.InfraEventResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, infraEventResponseImplementors)
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("InfraEventResponse")
case "eventID":
out.Values[i] = ec._InfraEventResponse_eventID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "eventType":
out.Values[i] = ec._InfraEventResponse_eventType(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "eventName":
out.Values[i] = ec._InfraEventResponse_eventName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec._InfraEventResponse_description(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "infra":
out.Values[i] = ec._InfraEventResponse_infra(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 infraVersionDetailsImplementors = []string{"InfraVersionDetails"}
func (ec *executionContext) _InfraVersionDetails(ctx context.Context, sel ast.SelectionSet, obj *model.InfraVersionDetails) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, infraVersionDetailsImplementors)
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("InfraVersionDetails")
case "latestVersion":
out.Values[i] = ec._InfraVersionDetails_latestVersion(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "compatibleVersions":
out.Values[i] = ec._InfraVersionDetails_compatibleVersions(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 k8SProbeImplementors = []string{"K8SProbe", "CommonProbeProperties"}
func (ec *executionContext) _K8SProbe(ctx context.Context, sel ast.SelectionSet, obj *model.K8SProbe) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, k8SProbeImplementors)
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("K8SProbe")
case "probeTimeout":
out.Values[i] = ec._K8SProbe_probeTimeout(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "interval":
out.Values[i] = ec._K8SProbe_interval(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "retry":
out.Values[i] = ec._K8SProbe_retry(ctx, field, obj)
case "attempt":
out.Values[i] = ec._K8SProbe_attempt(ctx, field, obj)
case "probePollingInterval":
out.Values[i] = ec._K8SProbe_probePollingInterval(ctx, field, obj)
case "initialDelay":
out.Values[i] = ec._K8SProbe_initialDelay(ctx, field, obj)
case "evaluationTimeout":
out.Values[i] = ec._K8SProbe_evaluationTimeout(ctx, field, obj)
case "stopOnFailure":
out.Values[i] = ec._K8SProbe_stopOnFailure(ctx, field, obj)
case "group":
out.Values[i] = ec._K8SProbe_group(ctx, field, obj)
case "version":
out.Values[i] = ec._K8SProbe_version(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "resource":
out.Values[i] = ec._K8SProbe_resource(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "namespace":
out.Values[i] = ec._K8SProbe_namespace(ctx, field, obj)
case "resourceNames":
out.Values[i] = ec._K8SProbe_resourceNames(ctx, field, obj)
case "fieldSelector":
out.Values[i] = ec._K8SProbe_fieldSelector(ctx, field, obj)
case "labelSelector":
out.Values[i] = ec._K8SProbe_labelSelector(ctx, field, obj)
case "operation":
out.Values[i] = ec._K8SProbe_operation(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 kubeNamespaceImplementors = []string{"KubeNamespace"}
func (ec *executionContext) _KubeNamespace(ctx context.Context, sel ast.SelectionSet, obj *model.KubeNamespace) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, kubeNamespaceImplementors)
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("KubeNamespace")
case "name":
out.Values[i] = ec._KubeNamespace_name(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 kubeNamespaceResponseImplementors = []string{"KubeNamespaceResponse"}
func (ec *executionContext) _KubeNamespaceResponse(ctx context.Context, sel ast.SelectionSet, obj *model.KubeNamespaceResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, kubeNamespaceResponseImplementors)
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("KubeNamespaceResponse")
case "infraID":
out.Values[i] = ec._KubeNamespaceResponse_infraID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "kubeNamespace":
out.Values[i] = ec._KubeNamespaceResponse_kubeNamespace(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 kubeObjectImplementors = []string{"KubeObject"}
func (ec *executionContext) _KubeObject(ctx context.Context, sel ast.SelectionSet, obj *model.KubeObject) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, kubeObjectImplementors)
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("KubeObject")
case "namespace":
out.Values[i] = ec._KubeObject_namespace(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "data":
out.Values[i] = ec._KubeObject_data(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 kubeObjectResponseImplementors = []string{"KubeObjectResponse"}
func (ec *executionContext) _KubeObjectResponse(ctx context.Context, sel ast.SelectionSet, obj *model.KubeObjectResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, kubeObjectResponseImplementors)
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("KubeObjectResponse")
case "infraID":
out.Values[i] = ec._KubeObjectResponse_infraID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "kubeObj":
out.Values[i] = ec._KubeObjectResponse_kubeObj(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 kubernetesCMDProbeImplementors = []string{"KubernetesCMDProbe", "CommonProbeProperties"}
func (ec *executionContext) _KubernetesCMDProbe(ctx context.Context, sel ast.SelectionSet, obj *model.KubernetesCMDProbe) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, kubernetesCMDProbeImplementors)
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("KubernetesCMDProbe")
case "probeTimeout":
out.Values[i] = ec._KubernetesCMDProbe_probeTimeout(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "interval":
out.Values[i] = ec._KubernetesCMDProbe_interval(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "retry":
out.Values[i] = ec._KubernetesCMDProbe_retry(ctx, field, obj)
case "attempt":
out.Values[i] = ec._KubernetesCMDProbe_attempt(ctx, field, obj)
case "probePollingInterval":
out.Values[i] = ec._KubernetesCMDProbe_probePollingInterval(ctx, field, obj)
case "initialDelay":
out.Values[i] = ec._KubernetesCMDProbe_initialDelay(ctx, field, obj)
case "evaluationTimeout":
out.Values[i] = ec._KubernetesCMDProbe_evaluationTimeout(ctx, field, obj)
case "stopOnFailure":
out.Values[i] = ec._KubernetesCMDProbe_stopOnFailure(ctx, field, obj)
case "command":
out.Values[i] = ec._KubernetesCMDProbe_command(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "comparator":
out.Values[i] = ec._KubernetesCMDProbe_comparator(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "source":
out.Values[i] = ec._KubernetesCMDProbe_source(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 kubernetesHTTPProbeImplementors = []string{"KubernetesHTTPProbe", "CommonProbeProperties"}
func (ec *executionContext) _KubernetesHTTPProbe(ctx context.Context, sel ast.SelectionSet, obj *model.KubernetesHTTPProbe) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, kubernetesHTTPProbeImplementors)
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("KubernetesHTTPProbe")
case "probeTimeout":
out.Values[i] = ec._KubernetesHTTPProbe_probeTimeout(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "interval":
out.Values[i] = ec._KubernetesHTTPProbe_interval(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "retry":
out.Values[i] = ec._KubernetesHTTPProbe_retry(ctx, field, obj)
case "attempt":
out.Values[i] = ec._KubernetesHTTPProbe_attempt(ctx, field, obj)
case "probePollingInterval":
out.Values[i] = ec._KubernetesHTTPProbe_probePollingInterval(ctx, field, obj)
case "initialDelay":
out.Values[i] = ec._KubernetesHTTPProbe_initialDelay(ctx, field, obj)
case "evaluationTimeout":
out.Values[i] = ec._KubernetesHTTPProbe_evaluationTimeout(ctx, field, obj)
case "stopOnFailure":
out.Values[i] = ec._KubernetesHTTPProbe_stopOnFailure(ctx, field, obj)
case "url":
out.Values[i] = ec._KubernetesHTTPProbe_url(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "method":
out.Values[i] = ec._KubernetesHTTPProbe_method(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "insecureSkipVerify":
out.Values[i] = ec._KubernetesHTTPProbe_insecureSkipVerify(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 linkImplementors = []string{"Link"}
func (ec *executionContext) _Link(ctx context.Context, sel ast.SelectionSet, obj *model.Link) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, linkImplementors)
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("Link")
case "name":
out.Values[i] = ec._Link_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "url":
out.Values[i] = ec._Link_url(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 listEnvironmentResponseImplementors = []string{"ListEnvironmentResponse"}
func (ec *executionContext) _ListEnvironmentResponse(ctx context.Context, sel ast.SelectionSet, obj *model.ListEnvironmentResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, listEnvironmentResponseImplementors)
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("ListEnvironmentResponse")
case "totalNoOfEnvironments":
out.Values[i] = ec._ListEnvironmentResponse_totalNoOfEnvironments(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "environments":
out.Values[i] = ec._ListEnvironmentResponse_environments(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 listExperimentResponseImplementors = []string{"ListExperimentResponse"}
func (ec *executionContext) _ListExperimentResponse(ctx context.Context, sel ast.SelectionSet, obj *model.ListExperimentResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, listExperimentResponseImplementors)
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("ListExperimentResponse")
case "totalNoOfExperiments":
out.Values[i] = ec._ListExperimentResponse_totalNoOfExperiments(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experiments":
out.Values[i] = ec._ListExperimentResponse_experiments(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 listExperimentRunResponseImplementors = []string{"ListExperimentRunResponse"}
func (ec *executionContext) _ListExperimentRunResponse(ctx context.Context, sel ast.SelectionSet, obj *model.ListExperimentRunResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, listExperimentRunResponseImplementors)
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("ListExperimentRunResponse")
case "totalNoOfExperimentRuns":
out.Values[i] = ec._ListExperimentRunResponse_totalNoOfExperimentRuns(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentRuns":
out.Values[i] = ec._ListExperimentRunResponse_experimentRuns(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 listInfraResponseImplementors = []string{"ListInfraResponse"}
func (ec *executionContext) _ListInfraResponse(ctx context.Context, sel ast.SelectionSet, obj *model.ListInfraResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, listInfraResponseImplementors)
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("ListInfraResponse")
case "totalNoOfInfras":
out.Values[i] = ec._ListInfraResponse_totalNoOfInfras(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "infras":
out.Values[i] = ec._ListInfraResponse_infras(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 maintainerImplementors = []string{"Maintainer"}
func (ec *executionContext) _Maintainer(ctx context.Context, sel ast.SelectionSet, obj *model.Maintainer) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, maintainerImplementors)
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("Maintainer")
case "name":
out.Values[i] = ec._Maintainer_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "email":
out.Values[i] = ec._Maintainer_email(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 metadataImplementors = []string{"Metadata"}
func (ec *executionContext) _Metadata(ctx context.Context, sel ast.SelectionSet, obj *model.Metadata) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, metadataImplementors)
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("Metadata")
case "name":
out.Values[i] = ec._Metadata_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "version":
out.Values[i] = ec._Metadata_version(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "annotations":
out.Values[i] = ec._Metadata_annotations(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 methodImplementors = []string{"Method"}
func (ec *executionContext) _Method(ctx context.Context, sel ast.SelectionSet, obj *model.Method) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, methodImplementors)
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("Method")
case "get":
out.Values[i] = ec._Method_get(ctx, field, obj)
case "post":
out.Values[i] = ec._Method_post(ctx, field, obj)
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
for label, dfs := range deferred {
ec.processDeferredGroup(graphql.DeferredGroup{
Label: label,
Path: graphql.GetPath(ctx),
FieldSet: dfs,
Context: ctx,
})
}
return out
}
var mutationImplementors = []string{"Mutation"}
func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors)
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
Object: "Mutation",
})
out := graphql.NewFieldSet(fields)
deferred := make(map[string]*graphql.FieldSet)
for i, field := range fields {
innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
Object: field.Name,
Field: field,
})
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Mutation")
case "createChaosExperiment":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_createChaosExperiment(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "saveChaosExperiment":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_saveChaosExperiment(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updateChaosExperiment":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_updateChaosExperiment(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deleteChaosExperiment":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_deleteChaosExperiment(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updateCronExperimentState":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_updateCronExperimentState(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "chaosExperimentRun":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_chaosExperimentRun(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "runChaosExperiment":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_runChaosExperiment(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "stopExperimentRuns":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_stopExperimentRuns(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "registerInfra":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_registerInfra(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "confirmInfraRegistration":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_confirmInfraRegistration(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deleteInfra":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_deleteInfra(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "getManifestWithInfraID":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_getManifestWithInfraID(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "podLog":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_podLog(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "kubeObj":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_kubeObj(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "kubeNamespace":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_kubeNamespace(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "addChaosHub":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_addChaosHub(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "addRemoteChaosHub":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_addRemoteChaosHub(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "saveChaosHub":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_saveChaosHub(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "syncChaosHub":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_syncChaosHub(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "generateSSHKey":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_generateSSHKey(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updateChaosHub":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_updateChaosHub(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deleteChaosHub":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_deleteChaosHub(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createEnvironment":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_createEnvironment(ctx, field)
})
case "updateEnvironment":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_updateEnvironment(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deleteEnvironment":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_deleteEnvironment(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "gitopsNotifier":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_gitopsNotifier(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "enableGitOps":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_enableGitOps(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "disableGitOps":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_disableGitOps(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updateGitOps":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_updateGitOps(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createImageRegistry":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_createImageRegistry(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updateImageRegistry":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_updateImageRegistry(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deleteImageRegistry":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_deleteImageRegistry(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "addProbe":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_addProbe(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updateProbe":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_updateProbe(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deleteProbe":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_deleteProbe(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
for label, dfs := range deferred {
ec.processDeferredGroup(graphql.DeferredGroup{
Label: label,
Path: graphql.GetPath(ctx),
FieldSet: dfs,
Context: ctx,
})
}
return out
}
var objectDataImplementors = []string{"ObjectData"}
func (ec *executionContext) _ObjectData(ctx context.Context, sel ast.SelectionSet, obj *model.ObjectData) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, objectDataImplementors)
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("ObjectData")
case "labels":
out.Values[i] = ec._ObjectData_labels(ctx, field, obj)
case "name":
out.Values[i] = ec._ObjectData_name(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 pOSTImplementors = []string{"POST"}
func (ec *executionContext) _POST(ctx context.Context, sel ast.SelectionSet, obj *model.Post) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, pOSTImplementors)
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("POST")
case "contentType":
out.Values[i] = ec._POST_contentType(ctx, field, obj)
case "body":
out.Values[i] = ec._POST_body(ctx, field, obj)
case "bodyPath":
out.Values[i] = ec._POST_bodyPath(ctx, field, obj)
case "criteria":
out.Values[i] = ec._POST_criteria(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "responseCode":
out.Values[i] = ec._POST_responseCode(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 pROMProbeImplementors = []string{"PROMProbe", "CommonProbeProperties"}
func (ec *executionContext) _PROMProbe(ctx context.Context, sel ast.SelectionSet, obj *model.PROMProbe) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, pROMProbeImplementors)
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("PROMProbe")
case "probeTimeout":
out.Values[i] = ec._PROMProbe_probeTimeout(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "interval":
out.Values[i] = ec._PROMProbe_interval(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "retry":
out.Values[i] = ec._PROMProbe_retry(ctx, field, obj)
case "attempt":
out.Values[i] = ec._PROMProbe_attempt(ctx, field, obj)
case "probePollingInterval":
out.Values[i] = ec._PROMProbe_probePollingInterval(ctx, field, obj)
case "initialDelay":
out.Values[i] = ec._PROMProbe_initialDelay(ctx, field, obj)
case "evaluationTimeout":
out.Values[i] = ec._PROMProbe_evaluationTimeout(ctx, field, obj)
case "stopOnFailure":
out.Values[i] = ec._PROMProbe_stopOnFailure(ctx, field, obj)
case "endpoint":
out.Values[i] = ec._PROMProbe_endpoint(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "query":
out.Values[i] = ec._PROMProbe_query(ctx, field, obj)
case "queryPath":
out.Values[i] = ec._PROMProbe_queryPath(ctx, field, obj)
case "comparator":
out.Values[i] = ec._PROMProbe_comparator(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 packageInformationImplementors = []string{"PackageInformation"}
func (ec *executionContext) _PackageInformation(ctx context.Context, sel ast.SelectionSet, obj *model.PackageInformation) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, packageInformationImplementors)
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("PackageInformation")
case "packageName":
out.Values[i] = ec._PackageInformation_packageName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experiments":
out.Values[i] = ec._PackageInformation_experiments(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 podLogResponseImplementors = []string{"PodLogResponse"}
func (ec *executionContext) _PodLogResponse(ctx context.Context, sel ast.SelectionSet, obj *model.PodLogResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, podLogResponseImplementors)
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("PodLogResponse")
case "experimentRunID":
out.Values[i] = ec._PodLogResponse_experimentRunID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "podName":
out.Values[i] = ec._PodLogResponse_podName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "podType":
out.Values[i] = ec._PodLogResponse_podType(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "log":
out.Values[i] = ec._PodLogResponse_log(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 predefinedExperimentListImplementors = []string{"PredefinedExperimentList"}
func (ec *executionContext) _PredefinedExperimentList(ctx context.Context, sel ast.SelectionSet, obj *model.PredefinedExperimentList) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, predefinedExperimentListImplementors)
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("PredefinedExperimentList")
case "experimentName":
out.Values[i] = ec._PredefinedExperimentList_experimentName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentCSV":
out.Values[i] = ec._PredefinedExperimentList_experimentCSV(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentManifest":
out.Values[i] = ec._PredefinedExperimentList_experimentManifest(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 probeImplementors = []string{"Probe", "ResourceDetails", "Audit"}
func (ec *executionContext) _Probe(ctx context.Context, sel ast.SelectionSet, obj *model.Probe) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, probeImplementors)
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("Probe")
case "projectID":
out.Values[i] = ec._Probe_projectID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "name":
out.Values[i] = ec._Probe_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec._Probe_description(ctx, field, obj)
case "tags":
out.Values[i] = ec._Probe_tags(ctx, field, obj)
case "type":
out.Values[i] = ec._Probe_type(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "infrastructureType":
out.Values[i] = ec._Probe_infrastructureType(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "kubernetesHTTPProperties":
out.Values[i] = ec._Probe_kubernetesHTTPProperties(ctx, field, obj)
case "kubernetesCMDProperties":
out.Values[i] = ec._Probe_kubernetesCMDProperties(ctx, field, obj)
case "k8sProperties":
out.Values[i] = ec._Probe_k8sProperties(ctx, field, obj)
case "promProperties":
out.Values[i] = ec._Probe_promProperties(ctx, field, obj)
case "recentExecutions":
out.Values[i] = ec._Probe_recentExecutions(ctx, field, obj)
case "referencedBy":
out.Values[i] = ec._Probe_referencedBy(ctx, field, obj)
case "updatedAt":
out.Values[i] = ec._Probe_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdAt":
out.Values[i] = ec._Probe_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updatedBy":
out.Values[i] = ec._Probe_updatedBy(ctx, field, obj)
case "createdBy":
out.Values[i] = ec._Probe_createdBy(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 probeRecentExecutionsImplementors = []string{"ProbeRecentExecutions"}
func (ec *executionContext) _ProbeRecentExecutions(ctx context.Context, sel ast.SelectionSet, obj *model.ProbeRecentExecutions) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, probeRecentExecutionsImplementors)
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("ProbeRecentExecutions")
case "faultName":
out.Values[i] = ec._ProbeRecentExecutions_faultName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "status":
out.Values[i] = ec._ProbeRecentExecutions_status(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "executedByExperiment":
out.Values[i] = ec._ProbeRecentExecutions_executedByExperiment(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 providerImplementors = []string{"Provider"}
func (ec *executionContext) _Provider(ctx context.Context, sel ast.SelectionSet, obj *model.Provider) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, providerImplementors)
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("Provider")
case "name":
out.Values[i] = ec._Provider_name(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 queryImplementors = []string{"Query"}
func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
Object: "Query",
})
out := graphql.NewFieldSet(fields)
deferred := make(map[string]*graphql.FieldSet)
for i, field := range fields {
innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
Object: field.Name,
Field: field,
})
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Query")
case "getExperiment":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getExperiment(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "listExperiment":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_listExperiment(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getExperimentStats":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getExperimentStats(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getExperimentRun":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getExperimentRun(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "listExperimentRun":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_listExperimentRun(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getExperimentRunStats":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getExperimentRunStats(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getInfra":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getInfra(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "listInfras":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_listInfras(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getInfraDetails":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getInfraDetails(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getInfraManifest":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getInfraManifest(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getInfraStats":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getInfraStats(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getVersionDetails":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getVersionDetails(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getServerVersion":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getServerVersion(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "listChaosFaults":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_listChaosFaults(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getChaosFault":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getChaosFault(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "listChaosHub":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_listChaosHub(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getChaosHub":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getChaosHub(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "listPredefinedExperiments":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_listPredefinedExperiments(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getPredefinedExperiment":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getPredefinedExperiment(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getChaosHubStats":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getChaosHubStats(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getEnvironment":
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_getEnvironment(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 "listEnvironments":
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_listEnvironments(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 "getGitOpsDetails":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getGitOpsDetails(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "listImageRegistry":
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_listImageRegistry(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 "getImageRegistry":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getImageRegistry(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "listProbes":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_listProbes(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getProbe":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getProbe(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getProbeYAML":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getProbeYAML(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getProbeReference":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getProbeReference(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "getProbesInExperimentRun":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_getProbesInExperimentRun(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
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 "validateUniqueProbe":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_validateUniqueProbe(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
return res
}
rrm := func(ctx context.Context) graphql.Marshaler {
return ec.OperationContext.RootResolverMiddleware(ctx,
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
}
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
case "__type":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Query___type(ctx, field)
})
case "__schema":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Query___schema(ctx, field)
})
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
for label, dfs := range deferred {
ec.processDeferredGroup(graphql.DeferredGroup{
Label: label,
Path: graphql.GetPath(ctx),
FieldSet: dfs,
Context: ctx,
})
}
return out
}
var recentExecutionsImplementors = []string{"RecentExecutions"}
func (ec *executionContext) _RecentExecutions(ctx context.Context, sel ast.SelectionSet, obj *model.RecentExecutions) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, recentExecutionsImplementors)
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("RecentExecutions")
case "faultName":
out.Values[i] = ec._RecentExecutions_faultName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "mode":
out.Values[i] = ec._RecentExecutions_mode(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "executionHistory":
out.Values[i] = ec._RecentExecutions_executionHistory(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 recentExperimentRunImplementors = []string{"RecentExperimentRun", "Audit"}
func (ec *executionContext) _RecentExperimentRun(ctx context.Context, sel ast.SelectionSet, obj *model.RecentExperimentRun) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, recentExperimentRunImplementors)
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("RecentExperimentRun")
case "experimentRunID":
out.Values[i] = ec._RecentExperimentRun_experimentRunID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "phase":
out.Values[i] = ec._RecentExperimentRun_phase(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "resiliencyScore":
out.Values[i] = ec._RecentExperimentRun_resiliencyScore(ctx, field, obj)
case "updatedAt":
out.Values[i] = ec._RecentExperimentRun_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdAt":
out.Values[i] = ec._RecentExperimentRun_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdBy":
out.Values[i] = ec._RecentExperimentRun_createdBy(ctx, field, obj)
case "updatedBy":
out.Values[i] = ec._RecentExperimentRun_updatedBy(ctx, field, obj)
case "runSequence":
out.Values[i] = ec._RecentExperimentRun_runSequence(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 registerInfraResponseImplementors = []string{"RegisterInfraResponse"}
func (ec *executionContext) _RegisterInfraResponse(ctx context.Context, sel ast.SelectionSet, obj *model.RegisterInfraResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, registerInfraResponseImplementors)
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("RegisterInfraResponse")
case "token":
out.Values[i] = ec._RegisterInfraResponse_token(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "infraID":
out.Values[i] = ec._RegisterInfraResponse_infraID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "name":
out.Values[i] = ec._RegisterInfraResponse_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "manifest":
out.Values[i] = ec._RegisterInfraResponse_manifest(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 resilienceScoreCategoryImplementors = []string{"ResilienceScoreCategory"}
func (ec *executionContext) _ResilienceScoreCategory(ctx context.Context, sel ast.SelectionSet, obj *model.ResilienceScoreCategory) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, resilienceScoreCategoryImplementors)
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("ResilienceScoreCategory")
case "id":
out.Values[i] = ec._ResilienceScoreCategory_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "count":
out.Values[i] = ec._ResilienceScoreCategory_count(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 runChaosExperimentResponseImplementors = []string{"RunChaosExperimentResponse"}
func (ec *executionContext) _RunChaosExperimentResponse(ctx context.Context, sel ast.SelectionSet, obj *model.RunChaosExperimentResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, runChaosExperimentResponseImplementors)
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("RunChaosExperimentResponse")
case "notifyID":
out.Values[i] = ec._RunChaosExperimentResponse_notifyID(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 sSHKeyImplementors = []string{"SSHKey"}
func (ec *executionContext) _SSHKey(ctx context.Context, sel ast.SelectionSet, obj *model.SSHKey) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, sSHKeyImplementors)
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("SSHKey")
case "publicKey":
out.Values[i] = ec._SSHKey_publicKey(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "privateKey":
out.Values[i] = ec._SSHKey_privateKey(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 serverVersionResponseImplementors = []string{"ServerVersionResponse"}
func (ec *executionContext) _ServerVersionResponse(ctx context.Context, sel ast.SelectionSet, obj *model.ServerVersionResponse) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverVersionResponseImplementors)
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("ServerVersionResponse")
case "key":
out.Values[i] = ec._ServerVersionResponse_key(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "value":
out.Values[i] = ec._ServerVersionResponse_value(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 specImplementors = []string{"Spec"}
func (ec *executionContext) _Spec(ctx context.Context, sel ast.SelectionSet, obj *model.Spec) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, specImplementors)
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("Spec")
case "displayName":
out.Values[i] = ec._Spec_displayName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "categoryDescription":
out.Values[i] = ec._Spec_categoryDescription(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "keywords":
out.Values[i] = ec._Spec_keywords(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "maturity":
out.Values[i] = ec._Spec_maturity(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "maintainers":
out.Values[i] = ec._Spec_maintainers(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "minKubeVersion":
out.Values[i] = ec._Spec_minKubeVersion(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "provider":
out.Values[i] = ec._Spec_provider(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "links":
out.Values[i] = ec._Spec_links(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "faults":
out.Values[i] = ec._Spec_faults(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experiments":
out.Values[i] = ec._Spec_experiments(ctx, field, obj)
case "chaosExpCRDLink":
out.Values[i] = ec._Spec_chaosExpCRDLink(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "platforms":
out.Values[i] = ec._Spec_platforms(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "chaosType":
out.Values[i] = ec._Spec_chaosType(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 statusImplementors = []string{"Status"}
func (ec *executionContext) _Status(ctx context.Context, sel ast.SelectionSet, obj *model.Status) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, 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("Status")
case "verdict":
out.Values[i] = ec._Status_verdict(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec._Status_description(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 stopExperimentRunsRequestImplementors = []string{"StopExperimentRunsRequest"}
func (ec *executionContext) _StopExperimentRunsRequest(ctx context.Context, sel ast.SelectionSet, obj *model.StopExperimentRunsRequest) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, stopExperimentRunsRequestImplementors)
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("StopExperimentRunsRequest")
case "projectID":
out.Values[i] = ec._StopExperimentRunsRequest_projectID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentID":
out.Values[i] = ec._StopExperimentRunsRequest_experimentID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "experimentRunID":
out.Values[i] = ec._StopExperimentRunsRequest_experimentRunID(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 subscriptionImplementors = []string{"Subscription"}
func (ec *executionContext) _Subscription(ctx context.Context, sel ast.SelectionSet) func(ctx context.Context) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionImplementors)
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
Object: "Subscription",
})
if len(fields) != 1 {
ec.Errorf(ctx, "must subscribe to exactly one stream")
return nil
}
switch fields[0].Name {
case "getInfraEvents":
return ec._Subscription_getInfraEvents(ctx, fields[0])
case "infraConnect":
return ec._Subscription_infraConnect(ctx, fields[0])
case "getPodLog":
return ec._Subscription_getPodLog(ctx, fields[0])
case "getKubeObject":
return ec._Subscription_getKubeObject(ctx, fields[0])
case "getKubeNamespace":
return ec._Subscription_getKubeNamespace(ctx, fields[0])
default:
panic("unknown field " + strconv.Quote(fields[0].Name))
}
}
var userDetailsImplementors = []string{"UserDetails"}
func (ec *executionContext) _UserDetails(ctx context.Context, sel ast.SelectionSet, obj *model.UserDetails) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, userDetailsImplementors)
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("UserDetails")
case "userID":
out.Values[i] = ec._UserDetails_userID(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "username":
out.Values[i] = ec._UserDetails_username(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "email":
out.Values[i] = ec._UserDetails_email(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 weightagesImplementors = []string{"Weightages"}
func (ec *executionContext) _Weightages(ctx context.Context, sel ast.SelectionSet, obj *model.Weightages) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, weightagesImplementors)
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("Weightages")
case "faultName":
out.Values[i] = ec._Weightages_faultName(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "weightage":
out.Values[i] = ec._Weightages_weightage(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 __DirectiveImplementors = []string{"__Directive"}
func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
out := graphql.NewFieldSet(fields)
deferred := make(map[string]*graphql.FieldSet)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Directive")
case "name":
out.Values[i] = ec.___Directive_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec.___Directive_description(ctx, field, obj)
case "locations":
out.Values[i] = ec.___Directive_locations(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "args":
out.Values[i] = ec.___Directive_args(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isRepeatable":
out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
for label, dfs := range deferred {
ec.processDeferredGroup(graphql.DeferredGroup{
Label: label,
Path: graphql.GetPath(ctx),
FieldSet: dfs,
Context: ctx,
})
}
return out
}
var __EnumValueImplementors = []string{"__EnumValue"}
func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
out := graphql.NewFieldSet(fields)
deferred := make(map[string]*graphql.FieldSet)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__EnumValue")
case "name":
out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
case "isDeprecated":
out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deprecationReason":
out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
for label, dfs := range deferred {
ec.processDeferredGroup(graphql.DeferredGroup{
Label: label,
Path: graphql.GetPath(ctx),
FieldSet: dfs,
Context: ctx,
})
}
return out
}
var __FieldImplementors = []string{"__Field"}
func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
out := graphql.NewFieldSet(fields)
deferred := make(map[string]*graphql.FieldSet)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Field")
case "name":
out.Values[i] = ec.___Field_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec.___Field_description(ctx, field, obj)
case "args":
out.Values[i] = ec.___Field_args(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "type":
out.Values[i] = ec.___Field_type(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isDeprecated":
out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deprecationReason":
out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
for label, dfs := range deferred {
ec.processDeferredGroup(graphql.DeferredGroup{
Label: label,
Path: graphql.GetPath(ctx),
FieldSet: dfs,
Context: ctx,
})
}
return out
}
var __InputValueImplementors = []string{"__InputValue"}
func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
out := graphql.NewFieldSet(fields)
deferred := make(map[string]*graphql.FieldSet)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__InputValue")
case "name":
out.Values[i] = ec.___InputValue_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec.___InputValue_description(ctx, field, obj)
case "type":
out.Values[i] = ec.___InputValue_type(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "defaultValue":
out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
for label, dfs := range deferred {
ec.processDeferredGroup(graphql.DeferredGroup{
Label: label,
Path: graphql.GetPath(ctx),
FieldSet: dfs,
Context: ctx,
})
}
return out
}
var __SchemaImplementors = []string{"__Schema"}
func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
out := graphql.NewFieldSet(fields)
deferred := make(map[string]*graphql.FieldSet)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Schema")
case "description":
out.Values[i] = ec.___Schema_description(ctx, field, obj)
case "types":
out.Values[i] = ec.___Schema_types(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "queryType":
out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "mutationType":
out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
case "subscriptionType":
out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
case "directives":
out.Values[i] = ec.___Schema_directives(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
for label, dfs := range deferred {
ec.processDeferredGroup(graphql.DeferredGroup{
Label: label,
Path: graphql.GetPath(ctx),
FieldSet: dfs,
Context: ctx,
})
}
return out
}
var __TypeImplementors = []string{"__Type"}
func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
out := graphql.NewFieldSet(fields)
deferred := make(map[string]*graphql.FieldSet)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Type")
case "kind":
out.Values[i] = ec.___Type_kind(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "name":
out.Values[i] = ec.___Type_name(ctx, field, obj)
case "description":
out.Values[i] = ec.___Type_description(ctx, field, obj)
case "fields":
out.Values[i] = ec.___Type_fields(ctx, field, obj)
case "interfaces":
out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
case "possibleTypes":
out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
case "enumValues":
out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
case "inputFields":
out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
case "ofType":
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
case "specifiedByURL":
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
for label, dfs := range deferred {
ec.processDeferredGroup(graphql.DeferredGroup{
Label: label,
Path: graphql.GetPath(ctx),
FieldSet: dfs,
Context: ctx,
})
}
return out
}
// endregion **************************** object.gotpl ****************************
// region ***************************** type.gotpl *****************************
func (ec *executionContext) marshalNActionPayload2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐActionPayload(ctx context.Context, sel ast.SelectionSet, v *model.ActionPayload) 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._ActionPayload(ctx, sel, v)
}
func (ec *executionContext) marshalNAnnotation2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAnnotation(ctx context.Context, sel ast.SelectionSet, v *model.Annotation) 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._Annotation(ctx, sel, v)
}
func (ec *executionContext) unmarshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx context.Context, v interface{}) (model.AuthType, error) {
var res model.AuthType
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx context.Context, sel ast.SelectionSet, v model.AuthType) graphql.Marshaler {
return v
}
func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
res, err := graphql.UnmarshalBoolean(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
res := graphql.MarshalBoolean(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalNChaosExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentRequest(ctx context.Context, v interface{}) (model.ChaosExperimentRequest, error) {
res, err := ec.unmarshalInputChaosExperimentRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNChaosExperimentResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentResponse(ctx context.Context, sel ast.SelectionSet, v model.ChaosExperimentResponse) graphql.Marshaler {
return ec._ChaosExperimentResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNChaosExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentResponse(ctx context.Context, sel ast.SelectionSet, v *model.ChaosExperimentResponse) 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._ChaosExperimentResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNChaosHub2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHub(ctx context.Context, sel ast.SelectionSet, v model.ChaosHub) graphql.Marshaler {
return ec._ChaosHub(ctx, sel, &v)
}
func (ec *executionContext) marshalNChaosHub2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHub(ctx context.Context, sel ast.SelectionSet, v *model.ChaosHub) 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._ChaosHub(ctx, sel, v)
}
func (ec *executionContext) marshalNChaosHubStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHubStatus(ctx context.Context, sel ast.SelectionSet, v model.ChaosHubStatus) graphql.Marshaler {
return ec._ChaosHubStatus(ctx, sel, &v)
}
func (ec *executionContext) marshalNChaosHubStatus2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHubStatus(ctx context.Context, sel ast.SelectionSet, v []*model.ChaosHubStatus) 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.marshalOChaosHubStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHubStatus(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalNChaosHubStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHubStatus(ctx context.Context, sel ast.SelectionSet, v *model.ChaosHubStatus) 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._ChaosHubStatus(ctx, sel, v)
}
func (ec *executionContext) marshalNChart2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChartᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Chart) 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.marshalNChart2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChart(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) marshalNChart2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChart(ctx context.Context, sel ast.SelectionSet, v *model.Chart) 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._Chart(ctx, sel, v)
}
func (ec *executionContext) marshalNComparator2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparator(ctx context.Context, sel ast.SelectionSet, v *model.Comparator) 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._Comparator(ctx, sel, v)
}
func (ec *executionContext) unmarshalNComparatorInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparatorInput(ctx context.Context, v interface{}) (*model.ComparatorInput, error) {
res, err := ec.unmarshalInputComparatorInput(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNConfirmInfraRegistrationResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐConfirmInfraRegistrationResponse(ctx context.Context, sel ast.SelectionSet, v model.ConfirmInfraRegistrationResponse) graphql.Marshaler {
return ec._ConfirmInfraRegistrationResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNConfirmInfraRegistrationResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐConfirmInfraRegistrationResponse(ctx context.Context, sel ast.SelectionSet, v *model.ConfirmInfraRegistrationResponse) 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._ConfirmInfraRegistrationResponse(ctx, sel, v)
}
func (ec *executionContext) unmarshalNCreateChaosHubRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐCreateChaosHubRequest(ctx context.Context, v interface{}) (model.CreateChaosHubRequest, error) {
res, err := ec.unmarshalInputCreateChaosHubRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNCreateRemoteChaosHub2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐCreateRemoteChaosHub(ctx context.Context, v interface{}) (model.CreateRemoteChaosHub, error) {
res, err := ec.unmarshalInputCreateRemoteChaosHub(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNEnvironmentSortingField2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentSortingField(ctx context.Context, v interface{}) (model.EnvironmentSortingField, error) {
var res model.EnvironmentSortingField
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNEnvironmentSortingField2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentSortingField(ctx context.Context, sel ast.SelectionSet, v model.EnvironmentSortingField) graphql.Marshaler {
return v
}
func (ec *executionContext) unmarshalNEnvironmentType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx context.Context, v interface{}) (model.EnvironmentType, error) {
var res model.EnvironmentType
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNEnvironmentType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx context.Context, sel ast.SelectionSet, v model.EnvironmentType) graphql.Marshaler {
return v
}
func (ec *executionContext) marshalNExecutedByExperiment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExecutedByExperiment(ctx context.Context, sel ast.SelectionSet, v *model.ExecutedByExperiment) 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._ExecutedByExperiment(ctx, sel, v)
}
func (ec *executionContext) marshalNExecutionHistory2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExecutionHistoryᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.ExecutionHistory) 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.marshalNExecutionHistory2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExecutionHistory(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) marshalNExecutionHistory2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExecutionHistory(ctx context.Context, sel ast.SelectionSet, v *model.ExecutionHistory) 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._ExecutionHistory(ctx, sel, v)
}
func (ec *executionContext) marshalNExperiment2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiment(ctx context.Context, sel ast.SelectionSet, v []*model.Experiment) 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.marshalOExperiment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiment(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalNExperiment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiment(ctx context.Context, sel ast.SelectionSet, v *model.Experiment) 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._Experiment(ctx, sel, v)
}
func (ec *executionContext) unmarshalNExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRequest(ctx context.Context, v interface{}) (model.ExperimentRequest, error) {
res, err := ec.unmarshalInputExperimentRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNExperimentRun2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRun(ctx context.Context, sel ast.SelectionSet, v model.ExperimentRun) graphql.Marshaler {
return ec._ExperimentRun(ctx, sel, &v)
}
func (ec *executionContext) marshalNExperimentRun2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRun(ctx context.Context, sel ast.SelectionSet, v []*model.ExperimentRun) 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.marshalOExperimentRun2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRun(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalNExperimentRun2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRun(ctx context.Context, sel ast.SelectionSet, v *model.ExperimentRun) 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._ExperimentRun(ctx, sel, v)
}
func (ec *executionContext) unmarshalNExperimentRunRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunRequest(ctx context.Context, v interface{}) (model.ExperimentRunRequest, error) {
res, err := ec.unmarshalInputExperimentRunRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNExperimentRunStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunStatus(ctx context.Context, v interface{}) (model.ExperimentRunStatus, error) {
var res model.ExperimentRunStatus
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNExperimentRunStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunStatus(ctx context.Context, sel ast.SelectionSet, v model.ExperimentRunStatus) graphql.Marshaler {
return v
}
func (ec *executionContext) unmarshalNExperimentSortingField2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentSortingField(ctx context.Context, v interface{}) (model.ExperimentSortingField, error) {
var res model.ExperimentSortingField
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNExperimentSortingField2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentSortingField(ctx context.Context, sel ast.SelectionSet, v model.ExperimentSortingField) graphql.Marshaler {
return v
}
func (ec *executionContext) marshalNExperiments2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentsᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Experiments) 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.marshalNExperiments2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiments(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) marshalNExperiments2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiments(ctx context.Context, sel ast.SelectionSet, v *model.Experiments) 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._Experiments(ctx, sel, v)
}
func (ec *executionContext) marshalNFaultDetails2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐFaultDetails(ctx context.Context, sel ast.SelectionSet, v model.FaultDetails) graphql.Marshaler {
return ec._FaultDetails(ctx, sel, &v)
}
func (ec *executionContext) marshalNFaultDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐFaultDetails(ctx context.Context, sel ast.SelectionSet, v *model.FaultDetails) 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._FaultDetails(ctx, sel, v)
}
func (ec *executionContext) marshalNFaultList2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐFaultListᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.FaultList) 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.marshalNFaultList2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐFaultList(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) marshalNFaultList2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐFaultList(ctx context.Context, sel ast.SelectionSet, v *model.FaultList) 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._FaultList(ctx, sel, v)
}
func (ec *executionContext) marshalNGetChaosHubStatsResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetChaosHubStatsResponse(ctx context.Context, sel ast.SelectionSet, v model.GetChaosHubStatsResponse) graphql.Marshaler {
return ec._GetChaosHubStatsResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNGetChaosHubStatsResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetChaosHubStatsResponse(ctx context.Context, sel ast.SelectionSet, v *model.GetChaosHubStatsResponse) 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._GetChaosHubStatsResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNGetExperimentResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetExperimentResponse(ctx context.Context, sel ast.SelectionSet, v model.GetExperimentResponse) graphql.Marshaler {
return ec._GetExperimentResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNGetExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetExperimentResponse(ctx context.Context, sel ast.SelectionSet, v *model.GetExperimentResponse) 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._GetExperimentResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNGetExperimentRunStatsResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetExperimentRunStatsResponse(ctx context.Context, sel ast.SelectionSet, v model.GetExperimentRunStatsResponse) graphql.Marshaler {
return ec._GetExperimentRunStatsResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNGetExperimentRunStatsResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetExperimentRunStatsResponse(ctx context.Context, sel ast.SelectionSet, v *model.GetExperimentRunStatsResponse) 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._GetExperimentRunStatsResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNGetExperimentStatsResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetExperimentStatsResponse(ctx context.Context, sel ast.SelectionSet, v model.GetExperimentStatsResponse) graphql.Marshaler {
return ec._GetExperimentStatsResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNGetExperimentStatsResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetExperimentStatsResponse(ctx context.Context, sel ast.SelectionSet, v *model.GetExperimentStatsResponse) 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._GetExperimentStatsResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNGetInfraStatsResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetInfraStatsResponse(ctx context.Context, sel ast.SelectionSet, v model.GetInfraStatsResponse) graphql.Marshaler {
return ec._GetInfraStatsResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNGetInfraStatsResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetInfraStatsResponse(ctx context.Context, sel ast.SelectionSet, v *model.GetInfraStatsResponse) 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._GetInfraStatsResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNGetProbeReferenceResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbeReferenceResponse(ctx context.Context, sel ast.SelectionSet, v model.GetProbeReferenceResponse) graphql.Marshaler {
return ec._GetProbeReferenceResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNGetProbeReferenceResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbeReferenceResponse(ctx context.Context, sel ast.SelectionSet, v *model.GetProbeReferenceResponse) 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._GetProbeReferenceResponse(ctx, sel, v)
}
func (ec *executionContext) unmarshalNGetProbeYAMLRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbeYAMLRequest(ctx context.Context, v interface{}) (model.GetProbeYAMLRequest, error) {
res, err := ec.unmarshalInputGetProbeYAMLRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNGetProbesInExperimentRunResponse2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbesInExperimentRunResponse(ctx context.Context, sel ast.SelectionSet, v []*model.GetProbesInExperimentRunResponse) 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.marshalOGetProbesInExperimentRunResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbesInExperimentRunResponse(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) unmarshalNGitConfig2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGitConfig(ctx context.Context, v interface{}) (model.GitConfig, error) {
res, err := ec.unmarshalInputGitConfig(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNGitConfigResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGitConfigResponse(ctx context.Context, sel ast.SelectionSet, v model.GitConfigResponse) graphql.Marshaler {
return ec._GitConfigResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNGitConfigResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGitConfigResponse(ctx context.Context, sel ast.SelectionSet, v *model.GitConfigResponse) 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._GitConfigResponse(ctx, sel, v)
}
func (ec *executionContext) unmarshalNHubType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐHubType(ctx context.Context, v interface{}) (model.HubType, error) {
var res model.HubType
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNHubType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐHubType(ctx context.Context, sel ast.SelectionSet, v model.HubType) graphql.Marshaler {
return v
}
func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) {
res, err := graphql.UnmarshalID(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
res := graphql.MarshalID(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalNImageRegistryInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryInput(ctx context.Context, v interface{}) (model.ImageRegistryInput, error) {
res, err := ec.unmarshalInputImageRegistryInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNImageRegistryResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryResponse(ctx context.Context, sel ast.SelectionSet, v model.ImageRegistryResponse) graphql.Marshaler {
return ec._ImageRegistryResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNImageRegistryResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryResponse(ctx context.Context, sel ast.SelectionSet, v *model.ImageRegistryResponse) 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._ImageRegistryResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNInfra2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx context.Context, sel ast.SelectionSet, v model.Infra) graphql.Marshaler {
return ec._Infra(ctx, sel, &v)
}
func (ec *executionContext) marshalNInfra2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx context.Context, sel ast.SelectionSet, v []*model.Infra) 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.marshalOInfra2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalNInfra2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx context.Context, sel ast.SelectionSet, v *model.Infra) 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._Infra(ctx, sel, v)
}
func (ec *executionContext) marshalNInfraActionResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraActionResponse(ctx context.Context, sel ast.SelectionSet, v model.InfraActionResponse) graphql.Marshaler {
return ec._InfraActionResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNInfraActionResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraActionResponse(ctx context.Context, sel ast.SelectionSet, v *model.InfraActionResponse) 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._InfraActionResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNInfraEventResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraEventResponse(ctx context.Context, sel ast.SelectionSet, v model.InfraEventResponse) graphql.Marshaler {
return ec._InfraEventResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNInfraEventResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraEventResponse(ctx context.Context, sel ast.SelectionSet, v *model.InfraEventResponse) 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._InfraEventResponse(ctx, sel, v)
}
func (ec *executionContext) unmarshalNInfraIdentity2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx context.Context, v interface{}) (model.InfraIdentity, error) {
res, err := ec.unmarshalInputInfraIdentity(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNInfraIdentity2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx context.Context, v interface{}) (*model.InfraIdentity, error) {
res, err := ec.unmarshalInputInfraIdentity(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNInfraVersionDetails2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraVersionDetails(ctx context.Context, sel ast.SelectionSet, v model.InfraVersionDetails) graphql.Marshaler {
return ec._InfraVersionDetails(ctx, sel, &v)
}
func (ec *executionContext) marshalNInfraVersionDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraVersionDetails(ctx context.Context, sel ast.SelectionSet, v *model.InfraVersionDetails) 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._InfraVersionDetails(ctx, sel, v)
}
func (ec *executionContext) unmarshalNInfrastructureType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx context.Context, v interface{}) (model.InfrastructureType, error) {
var res model.InfrastructureType
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNInfrastructureType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx context.Context, sel ast.SelectionSet, v model.InfrastructureType) graphql.Marshaler {
return v
}
func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) {
res, err := graphql.UnmarshalInt(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
res := graphql.MarshalInt(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) marshalNKubeNamespace2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeNamespace(ctx context.Context, sel ast.SelectionSet, v []*model.KubeNamespace) 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.marshalOKubeNamespace2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeNamespace(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) unmarshalNKubeNamespaceData2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeNamespaceData(ctx context.Context, v interface{}) (model.KubeNamespaceData, error) {
res, err := ec.unmarshalInputKubeNamespaceData(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNKubeNamespaceRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeNamespaceRequest(ctx context.Context, v interface{}) (model.KubeNamespaceRequest, error) {
res, err := ec.unmarshalInputKubeNamespaceRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNKubeNamespaceResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeNamespaceResponse(ctx context.Context, sel ast.SelectionSet, v model.KubeNamespaceResponse) graphql.Marshaler {
return ec._KubeNamespaceResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNKubeNamespaceResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeNamespaceResponse(ctx context.Context, sel ast.SelectionSet, v *model.KubeNamespaceResponse) 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._KubeNamespaceResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNKubeObject2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObject(ctx context.Context, sel ast.SelectionSet, v *model.KubeObject) 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._KubeObject(ctx, sel, v)
}
func (ec *executionContext) unmarshalNKubeObjectData2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObjectData(ctx context.Context, v interface{}) (model.KubeObjectData, error) {
res, err := ec.unmarshalInputKubeObjectData(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNKubeObjectRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObjectRequest(ctx context.Context, v interface{}) (model.KubeObjectRequest, error) {
res, err := ec.unmarshalInputKubeObjectRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNKubeObjectResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObjectResponse(ctx context.Context, sel ast.SelectionSet, v model.KubeObjectResponse) graphql.Marshaler {
return ec._KubeObjectResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNKubeObjectResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObjectResponse(ctx context.Context, sel ast.SelectionSet, v *model.KubeObjectResponse) 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._KubeObjectResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNLink2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐLinkᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Link) 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.marshalNLink2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐLink(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) marshalNLink2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐLink(ctx context.Context, sel ast.SelectionSet, v *model.Link) 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._Link(ctx, sel, v)
}
func (ec *executionContext) unmarshalNListExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentRequest(ctx context.Context, v interface{}) (model.ListExperimentRequest, error) {
res, err := ec.unmarshalInputListExperimentRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNListExperimentResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentResponse(ctx context.Context, sel ast.SelectionSet, v model.ListExperimentResponse) graphql.Marshaler {
return ec._ListExperimentResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNListExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentResponse(ctx context.Context, sel ast.SelectionSet, v *model.ListExperimentResponse) 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._ListExperimentResponse(ctx, sel, v)
}
func (ec *executionContext) unmarshalNListExperimentRunRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentRunRequest(ctx context.Context, v interface{}) (model.ListExperimentRunRequest, error) {
res, err := ec.unmarshalInputListExperimentRunRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNListExperimentRunResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentRunResponse(ctx context.Context, sel ast.SelectionSet, v model.ListExperimentRunResponse) graphql.Marshaler {
return ec._ListExperimentRunResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNListExperimentRunResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentRunResponse(ctx context.Context, sel ast.SelectionSet, v *model.ListExperimentRunResponse) 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._ListExperimentRunResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNListInfraResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListInfraResponse(ctx context.Context, sel ast.SelectionSet, v model.ListInfraResponse) graphql.Marshaler {
return ec._ListInfraResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNListInfraResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListInfraResponse(ctx context.Context, sel ast.SelectionSet, v *model.ListInfraResponse) 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._ListInfraResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNMaintainer2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMaintainerᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Maintainer) 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.marshalNMaintainer2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMaintainer(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) marshalNMaintainer2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMaintainer(ctx context.Context, sel ast.SelectionSet, v *model.Maintainer) 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._Maintainer(ctx, sel, v)
}
func (ec *executionContext) marshalNMetadata2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMetadata(ctx context.Context, sel ast.SelectionSet, v *model.Metadata) 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._Metadata(ctx, sel, v)
}
func (ec *executionContext) marshalNMethod2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMethod(ctx context.Context, sel ast.SelectionSet, v *model.Method) 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._Method(ctx, sel, v)
}
func (ec *executionContext) unmarshalNMethodRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMethodRequest(ctx context.Context, v interface{}) (*model.MethodRequest, error) {
res, err := ec.unmarshalInputMethodRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNMode2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMode(ctx context.Context, v interface{}) (model.Mode, error) {
var res model.Mode
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNMode2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMode(ctx context.Context, sel ast.SelectionSet, v model.Mode) graphql.Marshaler {
return v
}
func (ec *executionContext) marshalNObjectData2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐObjectData(ctx context.Context, sel ast.SelectionSet, v []*model.ObjectData) 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.marshalOObjectData2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐObjectData(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalNPackageInformation2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPackageInformation(ctx context.Context, sel ast.SelectionSet, v *model.PackageInformation) 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._PackageInformation(ctx, sel, v)
}
func (ec *executionContext) unmarshalNPodLog2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPodLog(ctx context.Context, v interface{}) (model.PodLog, error) {
res, err := ec.unmarshalInputPodLog(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNPodLogRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPodLogRequest(ctx context.Context, v interface{}) (model.PodLogRequest, error) {
res, err := ec.unmarshalInputPodLogRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNPodLogResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPodLogResponse(ctx context.Context, sel ast.SelectionSet, v model.PodLogResponse) graphql.Marshaler {
return ec._PodLogResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNPodLogResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPodLogResponse(ctx context.Context, sel ast.SelectionSet, v *model.PodLogResponse) 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._PodLogResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNPredefinedExperimentList2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPredefinedExperimentListᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.PredefinedExperimentList) 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.marshalNPredefinedExperimentList2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPredefinedExperimentList(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) marshalNPredefinedExperimentList2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPredefinedExperimentList(ctx context.Context, sel ast.SelectionSet, v *model.PredefinedExperimentList) 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._PredefinedExperimentList(ctx, sel, v)
}
func (ec *executionContext) marshalNProbe2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbe(ctx context.Context, sel ast.SelectionSet, v model.Probe) graphql.Marshaler {
return ec._Probe(ctx, sel, &v)
}
func (ec *executionContext) marshalNProbe2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbe(ctx context.Context, sel ast.SelectionSet, v []*model.Probe) 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.marshalOProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbe(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalNProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbe(ctx context.Context, sel ast.SelectionSet, v *model.Probe) 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._Probe(ctx, sel, v)
}
func (ec *executionContext) marshalNProbeRecentExecutions2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeRecentExecutions(ctx context.Context, sel ast.SelectionSet, v *model.ProbeRecentExecutions) 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._ProbeRecentExecutions(ctx, sel, v)
}
func (ec *executionContext) unmarshalNProbeRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeRequest(ctx context.Context, v interface{}) (model.ProbeRequest, error) {
res, err := ec.unmarshalInputProbeRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNProbeType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx context.Context, v interface{}) (model.ProbeType, error) {
var res model.ProbeType
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNProbeType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx context.Context, sel ast.SelectionSet, v model.ProbeType) graphql.Marshaler {
return v
}
func (ec *executionContext) unmarshalNProbeVerdict2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeVerdict(ctx context.Context, v interface{}) (model.ProbeVerdict, error) {
var res model.ProbeVerdict
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNProbeVerdict2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeVerdict(ctx context.Context, sel ast.SelectionSet, v model.ProbeVerdict) graphql.Marshaler {
return v
}
func (ec *executionContext) marshalNProvider2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProvider(ctx context.Context, sel ast.SelectionSet, v *model.Provider) 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._Provider(ctx, sel, v)
}
func (ec *executionContext) marshalNRecentExecutions2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRecentExecutions(ctx context.Context, sel ast.SelectionSet, v []*model.RecentExecutions) 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.marshalORecentExecutions2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRecentExecutions(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) unmarshalNRegisterInfraRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRegisterInfraRequest(ctx context.Context, v interface{}) (model.RegisterInfraRequest, error) {
res, err := ec.unmarshalInputRegisterInfraRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNRegisterInfraResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRegisterInfraResponse(ctx context.Context, sel ast.SelectionSet, v model.RegisterInfraResponse) graphql.Marshaler {
return ec._RegisterInfraResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNRegisterInfraResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRegisterInfraResponse(ctx context.Context, sel ast.SelectionSet, v *model.RegisterInfraResponse) 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._RegisterInfraResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNResilienceScoreCategory2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐResilienceScoreCategory(ctx context.Context, sel ast.SelectionSet, v []*model.ResilienceScoreCategory) 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.marshalOResilienceScoreCategory2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐResilienceScoreCategory(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalNRunChaosExperimentResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRunChaosExperimentResponse(ctx context.Context, sel ast.SelectionSet, v model.RunChaosExperimentResponse) graphql.Marshaler {
return ec._RunChaosExperimentResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNRunChaosExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRunChaosExperimentResponse(ctx context.Context, sel ast.SelectionSet, v *model.RunChaosExperimentResponse) 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._RunChaosExperimentResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNSSHKey2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐSSHKey(ctx context.Context, sel ast.SelectionSet, v model.SSHKey) graphql.Marshaler {
return ec._SSHKey(ctx, sel, &v)
}
func (ec *executionContext) marshalNSSHKey2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐSSHKey(ctx context.Context, sel ast.SelectionSet, v *model.SSHKey) 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._SSHKey(ctx, sel, v)
}
func (ec *executionContext) unmarshalNSaveChaosExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐSaveChaosExperimentRequest(ctx context.Context, v interface{}) (model.SaveChaosExperimentRequest, error) {
res, err := ec.unmarshalInputSaveChaosExperimentRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNServerVersionResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐServerVersionResponse(ctx context.Context, sel ast.SelectionSet, v model.ServerVersionResponse) graphql.Marshaler {
return ec._ServerVersionResponse(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerVersionResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐServerVersionResponse(ctx context.Context, sel ast.SelectionSet, v *model.ServerVersionResponse) 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._ServerVersionResponse(ctx, sel, v)
}
func (ec *executionContext) marshalNSpec2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐSpec(ctx context.Context, sel ast.SelectionSet, v *model.Spec) 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._Spec(ctx, sel, v)
}
func (ec *executionContext) marshalNStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐStatus(ctx context.Context, sel ast.SelectionSet, v *model.Status) 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._Status(ctx, sel, v)
}
func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) {
res, err := graphql.UnmarshalString(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
res := graphql.MarshalString(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
var vSlice []interface{}
if v != nil {
vSlice = graphql.CoerceList(v)
}
var err error
res := make([]string, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
ret := make(graphql.Array, len(v))
for i := range v {
ret[i] = ec.marshalNString2string(ctx, sel, v[i])
}
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) unmarshalNUpdateChaosHubRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUpdateChaosHubRequest(ctx context.Context, v interface{}) (model.UpdateChaosHubRequest, error) {
res, err := ec.unmarshalInputUpdateChaosHubRequest(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNUpdateStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUpdateStatus(ctx context.Context, v interface{}) (model.UpdateStatus, error) {
var res model.UpdateStatus
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNUpdateStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUpdateStatus(ctx context.Context, sel ast.SelectionSet, v model.UpdateStatus) graphql.Marshaler {
return v
}
func (ec *executionContext) marshalNWeightages2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Weightages) 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.marshalNWeightages2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightages(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) marshalNWeightages2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightages(ctx context.Context, sel ast.SelectionSet, v *model.Weightages) 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._Weightages(ctx, sel, v)
}
func (ec *executionContext) unmarshalNWeightagesInput2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesInputᚄ(ctx context.Context, v interface{}) ([]*model.WeightagesInput, error) {
var vSlice []interface{}
if v != nil {
vSlice = graphql.CoerceList(v)
}
var err error
res := make([]*model.WeightagesInput, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalNWeightagesInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesInput(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) unmarshalNWeightagesInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesInput(ctx context.Context, v interface{}) (*model.WeightagesInput, error) {
res, err := ec.unmarshalInputWeightagesInput(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
return ec.___Directive(ctx, sel, &v)
}
func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) {
res, err := graphql.UnmarshalString(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
res := graphql.MarshalString(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
var vSlice []interface{}
if v != nil {
vSlice = graphql.CoerceList(v)
}
var err error
res := make([]string, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
return ec.___EnumValue(ctx, sel, &v)
}
func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
return ec.___Field(ctx, sel, &v)
}
func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
return ec.___InputValue(ctx, sel, &v)
}
func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
return ec.___Type(ctx, sel, &v)
}
func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
return ec.___Type(ctx, sel, v)
}
func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) {
res, err := graphql.UnmarshalString(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
res := graphql.MarshalString(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalOAuthType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx context.Context, v interface{}) (*model.AuthType, error) {
if v == nil {
return nil, nil
}
var res = new(model.AuthType)
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOAuthType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx context.Context, sel ast.SelectionSet, v *model.AuthType) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return v
}
func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
res, err := graphql.UnmarshalBoolean(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
res := graphql.MarshalBoolean(v)
return res
}
func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
if v == nil {
return nil, nil
}
res, err := graphql.UnmarshalBoolean(v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
if v == nil {
return graphql.Null
}
res := graphql.MarshalBoolean(*v)
return res
}
func (ec *executionContext) unmarshalOChaosHubFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHubFilterInput(ctx context.Context, v interface{}) (*model.ChaosHubFilterInput, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputChaosHubFilterInput(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOChaosHubStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHubStatus(ctx context.Context, sel ast.SelectionSet, v *model.ChaosHubStatus) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._ChaosHubStatus(ctx, sel, v)
}
func (ec *executionContext) unmarshalOCreateEnvironmentRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐCreateEnvironmentRequest(ctx context.Context, v interface{}) (*model.CreateEnvironmentRequest, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputCreateEnvironmentRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalODateRange2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐDateRange(ctx context.Context, v interface{}) (*model.DateRange, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputDateRange(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOEnvironment2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironment(ctx context.Context, sel ast.SelectionSet, v []*model.Environment) 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.marshalOEnvironment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironment(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalOEnvironment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironment(ctx context.Context, sel ast.SelectionSet, v *model.Environment) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._Environment(ctx, sel, v)
}
func (ec *executionContext) unmarshalOEnvironmentFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentFilterInput(ctx context.Context, v interface{}) (*model.EnvironmentFilterInput, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputEnvironmentFilterInput(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOEnvironmentSortInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentSortInput(ctx context.Context, v interface{}) (*model.EnvironmentSortInput, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputEnvironmentSortInput(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOEnvironmentType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx context.Context, v interface{}) (*model.EnvironmentType, error) {
if v == nil {
return nil, nil
}
var res = new(model.EnvironmentType)
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOEnvironmentType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx context.Context, sel ast.SelectionSet, v *model.EnvironmentType) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return v
}
func (ec *executionContext) marshalOExperiment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiment(ctx context.Context, sel ast.SelectionSet, v *model.Experiment) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._Experiment(ctx, sel, v)
}
func (ec *executionContext) unmarshalOExperimentFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentFilterInput(ctx context.Context, v interface{}) (*model.ExperimentFilterInput, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputExperimentFilterInput(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOExperimentRun2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRun(ctx context.Context, sel ast.SelectionSet, v *model.ExperimentRun) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._ExperimentRun(ctx, sel, v)
}
func (ec *executionContext) unmarshalOExperimentRunFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunFilterInput(ctx context.Context, v interface{}) (*model.ExperimentRunFilterInput, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputExperimentRunFilterInput(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOExperimentRunSortInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunSortInput(ctx context.Context, v interface{}) (*model.ExperimentRunSortInput, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputExperimentRunSortInput(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOExperimentRunStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunStatus(ctx context.Context, v interface{}) (*model.ExperimentRunStatus, error) {
if v == nil {
return nil, nil
}
var res = new(model.ExperimentRunStatus)
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOExperimentRunStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunStatus(ctx context.Context, sel ast.SelectionSet, v *model.ExperimentRunStatus) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return v
}
func (ec *executionContext) unmarshalOExperimentSortInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentSortInput(ctx context.Context, v interface{}) (*model.ExperimentSortInput, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputExperimentSortInput(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOExperimentType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentType(ctx context.Context, v interface{}) (*model.ExperimentType, error) {
if v == nil {
return nil, nil
}
var res = new(model.ExperimentType)
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOExperimentType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentType(ctx context.Context, sel ast.SelectionSet, v *model.ExperimentType) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return v
}
func (ec *executionContext) unmarshalOFloat2ᚖfloat64(ctx context.Context, v interface{}) (*float64, error) {
if v == nil {
return nil, nil
}
res, err := graphql.UnmarshalFloatContext(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOFloat2ᚖfloat64(ctx context.Context, sel ast.SelectionSet, v *float64) graphql.Marshaler {
if v == nil {
return graphql.Null
}
res := graphql.MarshalFloatContext(*v)
return graphql.WrapContextMarshaler(ctx, res)
}
func (ec *executionContext) marshalOGET2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGet(ctx context.Context, sel ast.SelectionSet, v *model.Get) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._GET(ctx, sel, v)
}
func (ec *executionContext) unmarshalOGETRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGETRequest(ctx context.Context, v interface{}) (*model.GETRequest, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputGETRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOGetProbesInExperimentRunResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbesInExperimentRunResponse(ctx context.Context, sel ast.SelectionSet, v *model.GetProbesInExperimentRunResponse) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._GetProbesInExperimentRunResponse(ctx, sel, v)
}
func (ec *executionContext) unmarshalOID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
if v == nil {
return nil, nil
}
var vSlice []interface{}
if v != nil {
vSlice = graphql.CoerceList(v)
}
var err error
res := make([]string, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalNID2string(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalOID2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
for i := range v {
ret[i] = ec.marshalNID2string(ctx, sel, v[i])
}
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) unmarshalOID2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) {
if v == nil {
return nil, nil
}
var vSlice []interface{}
if v != nil {
vSlice = graphql.CoerceList(v)
}
var err error
res := make([]*string, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalOID2ᚖstring(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalOID2ᚕᚖstring(ctx context.Context, sel ast.SelectionSet, v []*string) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
for i := range v {
ret[i] = ec.marshalOID2ᚖstring(ctx, sel, v[i])
}
return ret
}
func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
if v == nil {
return nil, nil
}
res, err := graphql.UnmarshalID(v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
if v == nil {
return graphql.Null
}
res := graphql.MarshalID(*v)
return res
}
func (ec *executionContext) unmarshalOINFRA_SCOPE2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraScope(ctx context.Context, v interface{}) (*model.InfraScope, error) {
if v == nil {
return nil, nil
}
var res = new(model.InfraScope)
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOINFRA_SCOPE2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraScope(ctx context.Context, sel ast.SelectionSet, v *model.InfraScope) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return v
}
func (ec *executionContext) marshalOImageRegistry2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistry(ctx context.Context, sel ast.SelectionSet, v *model.ImageRegistry) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._ImageRegistry(ctx, sel, v)
}
func (ec *executionContext) marshalOImageRegistryResponse2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryResponseᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.ImageRegistryResponse) 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.marshalNImageRegistryResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryResponse(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) marshalOInfra2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx context.Context, sel ast.SelectionSet, v *model.Infra) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._Infra(ctx, sel, v)
}
func (ec *executionContext) unmarshalOInfraFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraFilterInput(ctx context.Context, v interface{}) (*model.InfraFilterInput, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputInfraFilterInput(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOInfraIdentity2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx context.Context, v interface{}) (*model.InfraIdentity, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputInfraIdentity(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOInfrastructureType2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx context.Context, v interface{}) ([]*model.InfrastructureType, error) {
if v == nil {
return nil, nil
}
var vSlice []interface{}
if v != nil {
vSlice = graphql.CoerceList(v)
}
var err error
res := make([]*model.InfrastructureType, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalOInfrastructureType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalOInfrastructureType2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx context.Context, sel ast.SelectionSet, v []*model.InfrastructureType) 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.marshalOInfrastructureType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) unmarshalOInfrastructureType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx context.Context, v interface{}) (*model.InfrastructureType, error) {
if v == nil {
return nil, nil
}
var res = new(model.InfrastructureType)
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOInfrastructureType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx context.Context, sel ast.SelectionSet, v *model.InfrastructureType) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return v
}
func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) {
if v == nil {
return nil, nil
}
res, err := graphql.UnmarshalInt(v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler {
if v == nil {
return graphql.Null
}
res := graphql.MarshalInt(*v)
return res
}
func (ec *executionContext) marshalOK8SProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐK8SProbe(ctx context.Context, sel ast.SelectionSet, v *model.K8SProbe) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._K8SProbe(ctx, sel, v)
}
func (ec *executionContext) unmarshalOK8SProbeRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐK8SProbeRequest(ctx context.Context, v interface{}) (*model.K8SProbeRequest, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputK8SProbeRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOKubeGVRRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeGVRRequest(ctx context.Context, v interface{}) (*model.KubeGVRRequest, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputKubeGVRRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOKubeNamespace2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeNamespace(ctx context.Context, sel ast.SelectionSet, v *model.KubeNamespace) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._KubeNamespace(ctx, sel, v)
}
func (ec *executionContext) marshalOKubernetesCMDProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesCMDProbe(ctx context.Context, sel ast.SelectionSet, v *model.KubernetesCMDProbe) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._KubernetesCMDProbe(ctx, sel, v)
}
func (ec *executionContext) unmarshalOKubernetesCMDProbeRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesCMDProbeRequest(ctx context.Context, v interface{}) (*model.KubernetesCMDProbeRequest, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputKubernetesCMDProbeRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOKubernetesHTTPProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesHTTPProbe(ctx context.Context, sel ast.SelectionSet, v *model.KubernetesHTTPProbe) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._KubernetesHTTPProbe(ctx, sel, v)
}
func (ec *executionContext) unmarshalOKubernetesHTTPProbeRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesHTTPProbeRequest(ctx context.Context, v interface{}) (*model.KubernetesHTTPProbeRequest, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputKubernetesHTTPProbeRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOListChaosHubRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListChaosHubRequest(ctx context.Context, v interface{}) (*model.ListChaosHubRequest, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputListChaosHubRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOListEnvironmentRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListEnvironmentRequest(ctx context.Context, v interface{}) (*model.ListEnvironmentRequest, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputListEnvironmentRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOListEnvironmentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListEnvironmentResponse(ctx context.Context, sel ast.SelectionSet, v *model.ListEnvironmentResponse) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._ListEnvironmentResponse(ctx, sel, v)
}
func (ec *executionContext) unmarshalOListInfraRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListInfraRequest(ctx context.Context, v interface{}) (*model.ListInfraRequest, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputListInfraRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOObjectData2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐObjectData(ctx context.Context, sel ast.SelectionSet, v *model.ObjectData) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._ObjectData(ctx, sel, v)
}
func (ec *executionContext) marshalOPOST2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPost(ctx context.Context, sel ast.SelectionSet, v *model.Post) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._POST(ctx, sel, v)
}
func (ec *executionContext) unmarshalOPOSTRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPOSTRequest(ctx context.Context, v interface{}) (*model.POSTRequest, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputPOSTRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOPROMProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPROMProbe(ctx context.Context, sel ast.SelectionSet, v *model.PROMProbe) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._PROMProbe(ctx, sel, v)
}
func (ec *executionContext) unmarshalOPROMProbeRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPROMProbeRequest(ctx context.Context, v interface{}) (*model.PROMProbeRequest, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputPROMProbeRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOPagination2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPagination(ctx context.Context, v interface{}) (*model.Pagination, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputPagination(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbe(ctx context.Context, sel ast.SelectionSet, v *model.Probe) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._Probe(ctx, sel, v)
}
func (ec *executionContext) unmarshalOProbeFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeFilterInput(ctx context.Context, v interface{}) (*model.ProbeFilterInput, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputProbeFilterInput(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOProbeRecentExecutions2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeRecentExecutionsᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.ProbeRecentExecutions) 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.marshalNProbeRecentExecutions2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeRecentExecutions(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) unmarshalOProbeType2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx context.Context, v interface{}) ([]*model.ProbeType, error) {
if v == nil {
return nil, nil
}
var vSlice []interface{}
if v != nil {
vSlice = graphql.CoerceList(v)
}
var err error
res := make([]*model.ProbeType, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalOProbeType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalOProbeType2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx context.Context, sel ast.SelectionSet, v []*model.ProbeType) 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.marshalOProbeType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) unmarshalOProbeType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx context.Context, v interface{}) (*model.ProbeType, error) {
if v == nil {
return nil, nil
}
var res = new(model.ProbeType)
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOProbeType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx context.Context, sel ast.SelectionSet, v *model.ProbeType) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return v
}
func (ec *executionContext) marshalORecentExecutions2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRecentExecutions(ctx context.Context, sel ast.SelectionSet, v *model.RecentExecutions) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._RecentExecutions(ctx, sel, v)
}
func (ec *executionContext) marshalORecentExperimentRun2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRecentExperimentRun(ctx context.Context, sel ast.SelectionSet, v []*model.RecentExperimentRun) 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.marshalORecentExperimentRun2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRecentExperimentRun(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalORecentExperimentRun2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRecentExperimentRun(ctx context.Context, sel ast.SelectionSet, v *model.RecentExperimentRun) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._RecentExperimentRun(ctx, sel, v)
}
func (ec *executionContext) marshalOResilienceScoreCategory2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐResilienceScoreCategory(ctx context.Context, sel ast.SelectionSet, v *model.ResilienceScoreCategory) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._ResilienceScoreCategory(ctx, sel, v)
}
func (ec *executionContext) unmarshalOScheduleType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐScheduleType(ctx context.Context, v interface{}) (*model.ScheduleType, error) {
if v == nil {
return nil, nil
}
var res = new(model.ScheduleType)
err := res.UnmarshalGQL(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOScheduleType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐScheduleType(ctx context.Context, sel ast.SelectionSet, v *model.ScheduleType) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return v
}
func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
if v == nil {
return nil, nil
}
var vSlice []interface{}
if v != nil {
vSlice = graphql.CoerceList(v)
}
var err error
res := make([]string, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
for i := range v {
ret[i] = ec.marshalNString2string(ctx, sel, v[i])
}
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) {
if v == nil {
return nil, nil
}
var vSlice []interface{}
if v != nil {
vSlice = graphql.CoerceList(v)
}
var err error
res := make([]*string, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalOString2ᚖstring(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalOString2ᚕᚖstring(ctx context.Context, sel ast.SelectionSet, v []*string) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
for i := range v {
ret[i] = ec.marshalOString2ᚖstring(ctx, sel, v[i])
}
return ret
}
func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
if v == nil {
return nil, nil
}
res, err := graphql.UnmarshalString(v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
if v == nil {
return graphql.Null
}
res := graphql.MarshalString(*v)
return res
}
func (ec *executionContext) unmarshalOToleration2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐToleration(ctx context.Context, v interface{}) ([]*model.Toleration, error) {
if v == nil {
return nil, nil
}
var vSlice []interface{}
if v != nil {
vSlice = graphql.CoerceList(v)
}
var err error
res := make([]*model.Toleration, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalOToleration2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐToleration(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) unmarshalOToleration2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐToleration(ctx context.Context, v interface{}) (*model.Toleration, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputToleration(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOUpdateEnvironmentRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUpdateEnvironmentRequest(ctx context.Context, v interface{}) (*model.UpdateEnvironmentRequest, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputUpdateEnvironmentRequest(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx context.Context, sel ast.SelectionSet, v *model.UserDetails) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._UserDetails(ctx, sel, v)
}
func (ec *executionContext) unmarshalOWorkload2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWorkload(ctx context.Context, v interface{}) ([]*model.Workload, error) {
if v == nil {
return nil, nil
}
var vSlice []interface{}
if v != nil {
vSlice = graphql.CoerceList(v)
}
var err error
res := make([]*model.Workload, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalOWorkload2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWorkload(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) unmarshalOWorkload2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWorkload(ctx context.Context, v interface{}) (*model.Workload, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputWorkload(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec.___Schema(ctx, sel, v)
}
func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec.___Type(ctx, sel, v)
}
// endregion ***************************** type.gotpl *****************************