diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml new file mode 100644 index 00000000000..a0eacca529c --- /dev/null +++ b/.github/workflows/cifuzz.yml @@ -0,0 +1,41 @@ +name: CIFuzz +on: [pull_request] +permissions: {} +jobs: + Fuzzing: + runs-on: ubuntu-latest + permissions: + security-events: write + strategy: + fail-fast: false + matrix: + sanitizer: [address] + steps: + - name: Build Fuzzers (${{ matrix.sanitizer }}) + id: build + uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master + with: + oss-fuzz-project-name: 'litmuschaos' + language: go + sanitizer: ${{ matrix.sanitizer }} + - name: Run Fuzzers (${{ matrix.sanitizer }}) + uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master + with: + oss-fuzz-project-name: 'litmuschaos' + language: go + fuzz-seconds: 600 + sanitizer: ${{ matrix.sanitizer }} + output-sarif: true + - name: Upload Crash + uses: actions/upload-artifact@v3 + if: failure() && steps.build.outcome == 'success' + with: + name: ${{ matrix.sanitizer }}-artifacts + path: ./out/artifacts + - name: Upload Sarif + if: always() && steps.build.outcome == 'success' + uses: github/codeql-action/upload-sarif@v2 + with: + # Path to SARIF file relative to the root of the repository + sarif_file: cifuzz-sarif/results.sarif + checkout_path: cifuzz-sarif diff --git a/chaoscenter/graphql/server/go.mod b/chaoscenter/graphql/server/go.mod index a4ee4814cfe..41134b1053f 100644 --- a/chaoscenter/graphql/server/go.mod +++ b/chaoscenter/graphql/server/go.mod @@ -3,7 +3,7 @@ module github.com/litmuschaos/litmus/chaoscenter/graphql/server go 1.20 require ( - github.com/99designs/gqlgen v0.11.3 + github.com/99designs/gqlgen v0.17.42 github.com/argoproj/argo-workflows/v3 v3.3.1 github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32 github.com/gin-contrib/cors v1.3.1 @@ -21,11 +21,11 @@ require ( github.com/stretchr/testify v1.8.2 github.com/tidwall/gjson v1.14.0 github.com/tidwall/sjson v1.2.4 - github.com/vektah/gqlparser/v2 v2.1.0 + github.com/vektah/gqlparser/v2 v2.5.10 go.mongodb.org/mongo-driver v1.11.4 golang.org/x/crypto v0.17.0 google.golang.org/grpc v1.44.0 - google.golang.org/protobuf v1.28.1 + google.golang.org/protobuf v1.30.0 gopkg.in/yaml.v2 v2.4.0 k8s.io/api v0.26.0 k8s.io/apimachinery v0.26.0 @@ -40,7 +40,7 @@ require ( github.com/PuerkitoBio/purell v1.1.1 // indirect github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect github.com/acomagu/bufpipe v1.0.3 // indirect - github.com/agnivade/levenshtein v1.0.3 // indirect + github.com/agnivade/levenshtein v1.1.1 // indirect github.com/bytedance/sonic v1.8.0 // indirect github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect github.com/davecgh/go-spew v1.1.1 // indirect @@ -64,25 +64,26 @@ require ( github.com/google/gofuzz v1.2.0 // indirect github.com/googleapis/gnostic v0.5.5 // indirect github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect - github.com/hashicorp/golang-lru v0.5.3 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.3 // indirect github.com/imdario/mergo v0.3.12 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect - github.com/klauspost/compress v1.14.2 // indirect + github.com/klauspost/compress v1.17.4 // indirect github.com/klauspost/cpuid/v2 v2.0.9 // indirect github.com/leodido/go-urn v1.2.1 // indirect github.com/mailru/easyjson v0.7.7 // indirect - github.com/mattn/go-isatty v0.0.17 // indirect + github.com/mattn/go-isatty v0.0.19 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect - github.com/mitchellh/mapstructure v1.4.3 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe // indirect github.com/pelletier/go-toml/v2 v2.0.6 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/sergi/go-diff v1.1.0 // indirect + github.com/sergi/go-diff v1.3.1 // indirect + github.com/sosodev/duration v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/objx v0.5.0 // indirect github.com/tidwall/match v1.1.1 // indirect @@ -95,9 +96,9 @@ require ( github.com/xdg-go/stringprep v1.0.3 // indirect github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect - golang.org/x/net v0.10.0 // indirect + golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect - golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect + golang.org/x/sync v0.2.0 // indirect golang.org/x/sys v0.15.0 // indirect golang.org/x/term v0.15.0 // indirect golang.org/x/text v0.14.0 // indirect @@ -140,3 +141,7 @@ replace ( ) replace github.com/docker/docker => github.com/moby/moby v0.7.3-0.20190826074503-38ab9da00309 // Required by Helm + +replace github.com/openshift/api => github.com/openshift/api v0.0.0-20190924102528-32369d4db2ad // Required until https://github.com/operator-framework/operator-lifecycle-manager/pull/1241 is resolved + +replace vbom.ml/util => github.com/fvbommel/util v0.0.0-20160121211510-db5cfe13f5cc diff --git a/chaoscenter/graphql/server/go.sum b/chaoscenter/graphql/server/go.sum index c5aaa66c4ed..db42a522707 100644 --- a/chaoscenter/graphql/server/go.sum +++ b/chaoscenter/graphql/server/go.sum @@ -41,8 +41,8 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/99designs/gqlgen v0.11.3 h1:oFSxl1DFS9X///uHV3y6CEfpcXWrDUxVblR4Xib2bs4= -github.com/99designs/gqlgen v0.11.3/go.mod h1:RgX5GRRdDWNkh4pBrdzNpNPFVsdoUFY2+adM6nb1N+4= +github.com/99designs/gqlgen v0.17.42 h1:BVWDOb2VVHQC5k3m6oa0XhDnxltLLrU4so7x/u39Zu4= +github.com/99designs/gqlgen v0.17.42/go.mod h1:GQ6SyMhwFbgHR0a8r2Wn8fYgEwPxxmndLFPhU63+cJE= github.com/Azure/azure-sdk-for-go v32.5.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go v35.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go v43.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= @@ -97,6 +97,7 @@ github.com/OpenPeeDeeP/depguard v1.0.0/go.mod h1:7/4sitnI9YlQgTLLk734QlzXT8DuHVn github.com/OpenPeeDeeP/depguard v1.0.1/go.mod h1:xsIw86fROiiwelg+jB2uM9PiKihMMmUx/1V+TNhjQvM= github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 h1:YoJbenK9C67SkzkDfmQuVln04ygHj3vjZfd9FL+GmQQ= github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7/go.mod h1:z4/9nQmJSSwwds7ejkxaJwO37dru3geImFUdJlaLzQo= +github.com/PuerkitoBio/goquery v1.8.1 h1:uQxhNlArOIdbrH1tr0UXwdVFgDcZDrZVdcpygAcwmWM= github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= @@ -112,8 +113,8 @@ github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrU github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk= github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= -github.com/agnivade/levenshtein v1.0.3 h1:M5ZnqLOoZR8ygVq0FfkXsNOKzMCk0xRiow0R5+5VkQ0= -github.com/agnivade/levenshtein v1.0.3/go.mod h1:4SFRZbbXWLF4MU1T9Qg0pGgH3Pjs+t6ie5efyrwRJXs= +github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8= +github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= @@ -121,6 +122,7 @@ github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRF github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= +github.com/andybalholm/cascadia v1.3.1 h1:nhxRkql1kdYCc8Snf7D5/D3spOX+dBgjA6u8x004T2c= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/ant31/crd-validation v0.0.0-20180702145049-30f8a35d0ac2/go.mod h1:X0noFIik9YqfhGYBLEHg8LJKEwy7QIitLQuFMpKLcPk= @@ -262,8 +264,8 @@ github.com/deislabs/oras v0.7.0/go.mod h1:sqMKPG3tMyIX9xwXUBRLhZ24o+uT4y6jgBD2Rz github.com/denisenkom/go-mssqldb v0.0.0-20190515213511-eb9f6a1743f3/go.mod h1:zAg7JM8CkOJ43xKXIj7eRO9kmWm/TW578qo+oDO6tuM= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/dgryski/trifles v0.0.0-20190318185328-a8d75aae118c h1:TUuUh0Xgj97tLMNtWtNvI9mIV6isjEb9lBMNv+77IGM= -github.com/dgryski/trifles v0.0.0-20190318185328-a8d75aae118c/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA= +github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48 h1:fRzb/w+pyskVMQ+UbP35JkH8yB7MYb4q/qhBarqZE6g= +github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA= github.com/dhui/dktest v0.3.0/go.mod h1:cyzIUfGsBEbZ6BT7tnXqAShHSXCZhSNmFl70sZ7c1yc= github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= github.com/docker/cli v0.0.0-20190506213505-d88565df0c2d/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= @@ -328,6 +330,7 @@ github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4 github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI= github.com/fsouza/fake-gcs-server v1.7.0/go.mod h1:5XIRs4YvwNbNoz+1JF8j6KLAyDh7RHGAyAK3EP2EsNk= github.com/fvbommel/sortorder v1.0.1/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0= +github.com/fvbommel/util v0.0.0-20160121211510-db5cfe13f5cc/go.mod h1:AlRx4sdoz6EdWGYPMeunQWYf46cKnq7J4iVvLgyb5cY= github.com/garyburd/redigo v1.6.0/go.mod h1:NR3MbYisc3/PwhQ00EMzDiPmrwpPxAn5GI05/YaO1SY= github.com/getkin/kin-openapi v0.76.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSyhcnluiMv+Xg= github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= @@ -348,7 +351,6 @@ github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0 github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= github.com/go-acme/lego v2.5.0+incompatible/go.mod h1:yzMNe9CasVUhkquNvti5nAtPmG94USbYxYrZfTkIn0M= github.com/go-bindata/go-bindata v3.1.1+incompatible/go.mod h1:xK8Dsgwmeed+BBsSy2XTopBn/8uK2HWuGSnA11C3Joo= -github.com/go-chi/chi v3.3.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ= github.com/go-critic/go-critic v0.3.5-0.20190526074819-1df300866540/go.mod h1:+sE8vrLDS2M0pZkBk0wy6+nLdKexVDrl/jBqQOTDThA= github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= @@ -480,7 +482,6 @@ github.com/godbus/dbus v4.1.0+incompatible/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZ github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gofrs/flock v0.7.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= -github.com/gogo/protobuf v1.0.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= @@ -615,16 +616,13 @@ github.com/googleapis/gnostic v0.5.5/go.mod h1:7+EbHbldMins07ALC74bsA81Ovc97Dwqy github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gophercloud/gophercloud v0.2.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorilla/context v0.0.0-20160226214623-1ea25387ff6f/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/handlers v1.4.0/go.mod h1:Qkdc/uu4tH4g6mTK6auzZ766c4CA0Ng8+o/OAirnOIQ= -github.com/gorilla/mux v1.6.1/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.7.0/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.7.1/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.2.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= @@ -663,8 +661,9 @@ github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA github.com/hashicorp/golang-lru v0.0.0-20180201235237-0fb14efe8c47/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.3 h1:YPkqC67at8FYaadspW/6uE0COsBxS2656RLEr8Bppgk= github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru/v2 v2.0.3 h1:kmRrRLlInXvng0SmLxmQpQkpbYAvcXm7NPDrgxJa9mE= +github.com/hashicorp/golang-lru/v2 v2.0.3/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v0.0.0-20180404174102-ef8a98b0bbce/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= @@ -744,8 +743,8 @@ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+o github.com/klauspost/compress v1.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.14.2 h1:S0OHlFk/Gbon/yauFJ4FfJJF5V0fc5HbBTJazi28pRw= -github.com/klauspost/compress v1.14.2/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/klauspost/compress v1.17.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4= +github.com/klauspost/compress v1.17.4/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= github.com/klauspost/cpuid v0.0.0-20180405133222-e7e905edc00e/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4= @@ -784,7 +783,6 @@ github.com/litmuschaos/chaos-scheduler v0.0.0-20220714173615-d7513d616a71/go.mod github.com/litmuschaos/elves v0.0.0-20201107015738-552d74669e3c/go.mod h1:DsbHGNUq/78NZozWVVI9Q6eBei4I+JjlkkD5aibJ3MQ= github.com/litmuschaos/litmus-go v0.0.0-20210705063441-babf0c4aa57d/go.mod h1:MNO+1u4jBPjLtFO56bckIv87EhwTkppJxDf8+6PbLRY= github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= -github.com/logrusorgru/aurora v0.0.0-20200102142835-e9ef32dff381/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= github.com/lpabon/godbc v0.1.1/go.mod h1:Jo9QV0cf3U6jZABgiJ2skINAXb9j8m51r07g4KI92ZA= github.com/lucas-clemente/aes12 v0.0.0-20171027163421-cd47fb39b79f/go.mod h1:JpH9J1c9oX6otFSgdUHwUBUizmKlrMjxWnIAjff4m04= github.com/lucas-clemente/quic-clients v0.1.0/go.mod h1:y5xVIEoObKqULIKivu+gD/LU90pL73bTdtQjPBvtCBk= @@ -810,19 +808,16 @@ github.com/marten-seemann/qtls v0.2.3/go.mod h1:xzjG7avBwGGbdZ8dTGxlBnLArsVKLvwm github.com/martinlindhe/base36 v1.0.0/go.mod h1:+AtEs8xrBpCeYgSLoY/aJ6Wf37jtBuR0s35750M27+8= github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A= github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= -github.com/matryer/moq v0.0.0-20200106131100-75d0ddfc0007/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ= github.com/mattbaird/jsonpatch v0.0.0-20171005235357-81af80346b1a/go.mod h1:M1qoD/MqPgTZIk0EWKB38wE28ACRfVcn+cU08jyArI0= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.6/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= -github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng= -github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= @@ -856,11 +851,10 @@ github.com/mitchellh/hashstructure v0.0.0-20170609045927-2bca23e0e452/go.mod h1: github.com/mitchellh/hashstructure v1.0.0/go.mod h1:QjSHrPWS+BGUVBYkbTZWEnOh3G1DutKwClXU/ABz6AQ= github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v0.0.0-20180203102830-a4e142e9c047/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v0.0.0-20180220230111-00c29f56e238/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.4.3 h1:OVowDSCllw/YjdLkam3/sm7wEtOy59d8ndGgCcyj8cs= -github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/moby/moby v0.7.3-0.20190826074503-38ab9da00309/go.mod h1:fDXVQ6+S340veQPv35CzDahGBmHsiclFwfEygB/TWMc= github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= @@ -934,12 +928,10 @@ github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/ github.com/opencontainers/selinux v1.2.2/go.mod h1:+BLncwf63G4dgOzykXAxcmnFlUaOlkDdmw/CqsW6pjs= github.com/opencontainers/selinux v1.3.1-0.20190929122143-5215b1806f52/go.mod h1:+BLncwf63G4dgOzykXAxcmnFlUaOlkDdmw/CqsW6pjs= github.com/openebs/maya v1.12.1/go.mod h1:E9CmKbURtsthTyASz0piTxljLmGxjbaJ3aFhtWEko2Y= -github.com/openshift/api v3.9.1-0.20190924102528-32369d4db2ad+incompatible/go.mod h1:dh9o4Fs58gpFXGSYfnVxGR9PnV53I8TW84pQaJDdGiY= +github.com/openshift/api v0.0.0-20190924102528-32369d4db2ad/go.mod h1:dh9o4Fs58gpFXGSYfnVxGR9PnV53I8TW84pQaJDdGiY= github.com/openshift/client-go v0.0.0-20190923180330-3b6373338c9b/go.mod h1:6rzn+JTr7+WYS2E1TExP4gByoABxMznR6y2SnUIkmxk= github.com/openshift/origin v0.0.0-20160503220234-8f127d736703/go.mod h1:0Rox5r9C8aQn6j1oAOQ0c1uC86mYbUFObzjBRvUKHII= github.com/openshift/prom-label-proxy v0.1.1-0.20191016113035-b8153a7f39f1/go.mod h1:p5MuxzsYP1JPsNGwtjtcgRHHlGziCJJfztff91nNixw= -github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= -github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= github.com/operator-framework/api v0.0.0-20200120235816-80fd2f1a09c9/go.mod h1:S5IdlJvmKkF84K2tBvsrqJbI2FVy03P88R75snpRxJo= @@ -1025,7 +1017,6 @@ github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.5.0/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8= -github.com/rs/cors v1.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rubenv/sql-migrate v0.0.0-20191025130928-9355dd04f4b3/go.mod h1:WS0rl9eEliYI8DPnr3TOwz4439pay+qNgzJoVya/DmY= github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto= github.com/russross/blackfriday v0.0.0-20170610170232-067529f716f4/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= @@ -1039,16 +1030,15 @@ github.com/sclevine/spec v1.2.0/go.mod h1:W4J29eT/Kzv7/b9IWLB055Z+qvVC9vt0Arko24 github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= +github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= +github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= github.com/shirou/gopsutil v0.0.0-20180427012116-c95755e4bcd7/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4/go.mod h1:qsXQc7+bwAM3Q1u/4XEfrquwF8Lw7D7y5cD8CuHnfIc= github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= -github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/shurcooL/vfsgen v0.0.0-20180121065927-ffb13db8def0/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw= github.com/sirupsen/logrus v1.0.5/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc= github.com/sirupsen/logrus v1.0.6/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= @@ -1062,6 +1052,8 @@ github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1 github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= +github.com/sosodev/duration v1.1.0 h1:kQcaiGbJaIsRqgQy7VGlZrVw1giWO+lDoX3MCPnpVO4= +github.com/sosodev/duration v1.1.0/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg= github.com/sourcegraph/go-diff v0.5.1/go.mod h1:j2dHj3m8aZgQO8lMTcTnBcXkRRRqi34cd2MNlA9u1mE= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.0/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= @@ -1095,7 +1087,6 @@ github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSS github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v0.0.0-20151208002404-e3a8ff8ce365/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -1138,17 +1129,14 @@ github.com/ultraware/funlen v0.0.1/go.mod h1:Dp4UiAus7Wdb9KUZsYWZEWiRzGuM2kXM1lP github.com/ultraware/funlen v0.0.2/go.mod h1:Dp4UiAus7Wdb9KUZsYWZEWiRzGuM2kXM1lPbfaF6xhA= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli/v2 v2.1.1/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ= github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasthttp v1.2.0/go.mod h1:4vX61m6KN+xDduDNwXrhIAVZaZaZiQ1luJk8LWSxF3s= github.com/valyala/quicktemplate v1.1.1/go.mod h1:EH+4AkTd43SvgIbQHYu59/cJyxDoOVRUAfrukLPuGJ4= github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= -github.com/vektah/dataloaden v0.2.1-0.20190515034641-a19b9a6e7c9e/go.mod h1:/HUdMve7rvxZma+2ZELQeNh88+003LL7Pf/CZ089j8U= github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw= -github.com/vektah/gqlparser/v2 v2.0.1/go.mod h1:SyUiHgLATUR8BiYURfTirrTcGpcE+4XkV2se04Px1Ms= -github.com/vektah/gqlparser/v2 v2.1.0 h1:uiKJ+T5HMGGQM2kRKQ8Pxw8+Zq9qhhZhz/lieYvCMns= -github.com/vektah/gqlparser/v2 v2.1.0/go.mod h1:SyUiHgLATUR8BiYURfTirrTcGpcE+4XkV2se04Px1Ms= +github.com/vektah/gqlparser/v2 v2.5.10 h1:6zSM4azXC9u4Nxy5YmdmGu4uKamfwsdKTwp5zsEealU= +github.com/vektah/gqlparser/v2 v2.5.10/go.mod h1:1rCcfwB2ekJofmluGWXMSEnPMZgbxzwj6FaZ/4OT8Cc= github.com/vishvananda/netlink v0.0.0-20171020171820-b2de5d10e38e/go.mod h1:+SR5DhBJrl6ZM7CoCKvpw5BKroDKQ+PJqOg65H/2ktk= github.com/vishvananda/netlink v1.0.0/go.mod h1:+SR5DhBJrl6ZM7CoCKvpw5BKroDKQ+PJqOg65H/2ktk= github.com/vishvananda/netns v0.0.0-20171111001504-be1fbeda1936/go.mod h1:ZjcWmFBXmLKZu9Nxj3WKYEafiSqer2rnvPr0en9UNpI= @@ -1363,8 +1351,8 @@ golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1393,8 +1381,8 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 h1:uVc8UZUe6tr40fFVnUP5Oj+veunVezqYl9z7DYw9xzw= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= +golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20171026204733-164713f0dfce/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180117170059-2c42eef0765b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1487,7 +1475,7 @@ golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= @@ -1543,7 +1531,6 @@ golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3 golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190425222832-ad9eeb80039a/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190515012406-7d7faa4812bd/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190521203540-521d6ed310dd/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= @@ -1571,7 +1558,6 @@ golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200114235610-7ae403b6b589/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= @@ -1732,8 +1718,8 @@ google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlba google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= -google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= +google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -1904,7 +1890,4 @@ sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= -sourcegraph.com/sourcegraph/appdash v0.0.0-20180110180208-2cc67fd64755/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= -sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67/go.mod h1:L5q+DGLGOQFpo1snNEkLOJT2d1YTW66rWNzatr3He1k= sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0= -vbom.ml/util v0.0.0-20160121211510-db5cfe13f5cc/go.mod h1:so/NYdZXCz+E3ZpW0uAoCj6uzU2+8OWDFv/HxUSs7kI= diff --git a/chaoscenter/graphql/server/gqlgen.yml b/chaoscenter/graphql/server/gqlgen.yml index 819837e95a9..846a6ff902c 100644 --- a/chaoscenter/graphql/server/gqlgen.yml +++ b/chaoscenter/graphql/server/gqlgen.yml @@ -34,8 +34,8 @@ resolver: # gqlgen will search for any type names in the schema in these go packages # if they match it will use them, otherwise it will generate them. -autobind: - - "github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model" +# autobind: +# - "github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/model" # This section declares type mapping between the GraphQL and go type systems # diff --git a/chaoscenter/graphql/server/graph/chaos_experiment.resolvers.go b/chaoscenter/graphql/server/graph/chaos_experiment.resolvers.go index 4c84feadec0..5b1d84e9c0b 100644 --- a/chaoscenter/graphql/server/graph/chaos_experiment.resolvers.go +++ b/chaoscenter/graphql/server/graph/chaos_experiment.resolvers.go @@ -2,6 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. +// Code generated by github.com/99designs/gqlgen version v0.17.42 import ( "context" @@ -15,6 +16,7 @@ import ( "go.mongodb.org/mongo-driver/bson" ) +// CreateChaosExperiment is the resolver for the createChaosExperiment field. func (r *mutationResolver) CreateChaosExperiment(ctx context.Context, request model.ChaosExperimentRequest, projectID string) (*model.ChaosExperimentResponse, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -65,6 +67,7 @@ func (r *mutationResolver) CreateChaosExperiment(ctx context.Context, request mo return uiResponse, nil } +// SaveChaosExperiment is the resolver for the saveChaosExperiment field. func (r *mutationResolver) SaveChaosExperiment(ctx context.Context, request model.SaveChaosExperimentRequest, projectID string) (string, error) { logFields := logrus.Fields{ "experimentId": request.ID, @@ -89,6 +92,7 @@ func (r *mutationResolver) SaveChaosExperiment(ctx context.Context, request mode return uiResponse, nil } +// UpdateChaosExperiment is the resolver for the updateChaosExperiment field. func (r *mutationResolver) UpdateChaosExperiment(ctx context.Context, request *model.ChaosExperimentRequest, projectID string) (*model.ChaosExperimentResponse, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -111,6 +115,7 @@ func (r *mutationResolver) UpdateChaosExperiment(ctx context.Context, request *m return uiResponse, err } +// DeleteChaosExperiment is the resolver for the deleteChaosExperiment field. func (r *mutationResolver) DeleteChaosExperiment(ctx context.Context, experimentID string, experimentRunID *string, projectID string) (bool, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -135,6 +140,7 @@ func (r *mutationResolver) DeleteChaosExperiment(ctx context.Context, experiment return uiResponse, err } +// UpdateCronExperimentState is the resolver for the updateCronExperimentState field. func (r *mutationResolver) UpdateCronExperimentState(ctx context.Context, experimentID string, disable bool, projectID string) (bool, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -158,6 +164,7 @@ func (r *mutationResolver) UpdateCronExperimentState(ctx context.Context, experi return uiResponse, err } +// GetExperiment is the resolver for the getExperiment field. func (r *queryResolver) GetExperiment(ctx context.Context, projectID string, experimentID string) (*model.GetExperimentResponse, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -179,6 +186,7 @@ func (r *queryResolver) GetExperiment(ctx context.Context, projectID string, exp return expResponse, err } +// ListExperiment is the resolver for the listExperiment field. func (r *queryResolver) ListExperiment(ctx context.Context, projectID string, request model.ListExperimentRequest) (*model.ListExperimentResponse, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -200,6 +208,7 @@ func (r *queryResolver) ListExperiment(ctx context.Context, projectID string, re return uiResponse, err } +// GetExperimentStats is the resolver for the getExperimentStats field. func (r *queryResolver) GetExperimentStats(ctx context.Context, projectID string) (*model.GetExperimentStatsResponse, error) { logFields := logrus.Fields{ "projectId": projectID, diff --git a/chaoscenter/graphql/server/graph/chaos_experiment_run.resolvers.go b/chaoscenter/graphql/server/graph/chaos_experiment_run.resolvers.go index 8731d90e0c1..dedf2709f94 100644 --- a/chaoscenter/graphql/server/graph/chaos_experiment_run.resolvers.go +++ b/chaoscenter/graphql/server/graph/chaos_experiment_run.resolvers.go @@ -2,6 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. +// Code generated by github.com/99designs/gqlgen version v0.17.42 import ( "context" @@ -14,10 +15,12 @@ import ( "go.mongodb.org/mongo-driver/bson" ) +// ChaosExperimentRun is the resolver for the chaosExperimentRun field. func (r *mutationResolver) ChaosExperimentRun(ctx context.Context, request model.ExperimentRunRequest) (string, error) { return r.chaosExperimentRunHandler.ChaosExperimentRunEvent(request) } +// RunChaosExperiment is the resolver for the runChaosExperiment field. func (r *mutationResolver) RunChaosExperiment(ctx context.Context, experimentID string, projectID string) (*model.RunChaosExperimentResponse, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -53,6 +56,7 @@ func (r *mutationResolver) RunChaosExperiment(ctx context.Context, experimentID return &model.RunChaosExperimentResponse{NotifyID: uiResponse.NotifyID}, err } +// StopExperimentRuns is the resolver for the stopExperimentRuns field. func (r *mutationResolver) StopExperimentRuns(ctx context.Context, projectID string, experimentID string, experimentRunID *string, notifyID *string) (bool, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -77,6 +81,7 @@ func (r *mutationResolver) StopExperimentRuns(ctx context.Context, projectID str return uiResponse, nil } +// GetExperimentRun is the resolver for the getExperimentRun field. func (r *queryResolver) GetExperimentRun(ctx context.Context, projectID string, experimentRunID *string, notifyID *string) (*model.ExperimentRun, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -98,6 +103,7 @@ func (r *queryResolver) GetExperimentRun(ctx context.Context, projectID string, return expRunResponse, err } +// ListExperimentRun is the resolver for the listExperimentRun field. func (r *queryResolver) ListExperimentRun(ctx context.Context, projectID string, request model.ListExperimentRunRequest) (*model.ListExperimentRunResponse, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -120,6 +126,7 @@ func (r *queryResolver) ListExperimentRun(ctx context.Context, projectID string, return uiResponse, err } +// GetExperimentRunStats is the resolver for the getExperimentRunStats field. func (r *queryResolver) GetExperimentRunStats(ctx context.Context, projectID string) (*model.GetExperimentRunStatsResponse, error) { logFields := logrus.Fields{ "projectId": projectID, diff --git a/chaoscenter/graphql/server/graph/chaos_infrastructure.resolvers.go b/chaoscenter/graphql/server/graph/chaos_infrastructure.resolvers.go index a1109c78cba..e374e95361e 100644 --- a/chaoscenter/graphql/server/graph/chaos_infrastructure.resolvers.go +++ b/chaoscenter/graphql/server/graph/chaos_infrastructure.resolvers.go @@ -2,6 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. +// Code generated by github.com/99designs/gqlgen version v0.17.42 import ( "context" @@ -19,6 +20,7 @@ import ( "go.mongodb.org/mongo-driver/bson" ) +// RegisterInfra is the resolver for the registerInfra field. func (r *mutationResolver) RegisterInfra(ctx context.Context, projectID string, request model.RegisterInfraRequest) (*model.RegisterInfraResponse, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -41,10 +43,12 @@ func (r *mutationResolver) RegisterInfra(ctx context.Context, projectID string, return rcaResponse, err } +// ConfirmInfraRegistration is the resolver for the confirmInfraRegistration field. func (r *mutationResolver) ConfirmInfraRegistration(ctx context.Context, request model.InfraIdentity) (*model.ConfirmInfraRegistrationResponse, error) { return r.chaosInfrastructureService.ConfirmInfraRegistration(request, *data_store.Store) } +// DeleteInfra is the resolver for the deleteInfra field. func (r *mutationResolver) DeleteInfra(ctx context.Context, projectID string, infraID string) (string, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -68,6 +72,7 @@ func (r *mutationResolver) DeleteInfra(ctx context.Context, projectID string, in return dcaResponse, err } +// GetManifestWithInfraID is the resolver for the getManifestWithInfraID field. func (r *mutationResolver) GetManifestWithInfraID(ctx context.Context, projectID string, infraID string, accessKey string) (string, error) { logFields := logrus.Fields{ @@ -84,14 +89,17 @@ func (r *mutationResolver) GetManifestWithInfraID(ctx context.Context, projectID return string(manifest), nil } +// PodLog is the resolver for the podLog field. func (r *mutationResolver) PodLog(ctx context.Context, request model.PodLog) (string, error) { return r.chaosInfrastructureService.PodLog(request, *data_store.Store) } +// KubeObj is the resolver for the kubeObj field. func (r *mutationResolver) KubeObj(ctx context.Context, request model.KubeObjectData) (string, error) { return r.chaosInfrastructureService.KubeObj(request, *data_store.Store) } +// GetInfra is the resolver for the getInfra field. func (r *queryResolver) GetInfra(ctx context.Context, projectID string, infraID string) (*model.Infra, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -112,6 +120,7 @@ func (r *queryResolver) GetInfra(ctx context.Context, projectID string, infraID return getInfraResponse, err } +// ListInfras is the resolver for the listInfras field. func (r *queryResolver) ListInfras(ctx context.Context, projectID string, request *model.ListInfraRequest) (*model.ListInfraResponse, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -132,6 +141,7 @@ func (r *queryResolver) ListInfras(ctx context.Context, projectID string, reques return lcaResponse, err } +// GetInfraDetails is the resolver for the getInfraDetails field. func (r *queryResolver) GetInfraDetails(ctx context.Context, infraID string, projectID string) (*model.Infra, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -150,6 +160,7 @@ func (r *queryResolver) GetInfraDetails(ctx context.Context, infraID string, pro return gcaResponse, err } +// GetInfraManifest is the resolver for the getInfraManifest field. func (r *queryResolver) GetInfraManifest(ctx context.Context, infraID string, upgrade bool, projectID string) (string, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -175,6 +186,7 @@ func (r *queryResolver) GetInfraManifest(ctx context.Context, infraID string, up return string(gcaResponse), err } +// GetInfraStats is the resolver for the getInfraStats field. func (r *queryResolver) GetInfraStats(ctx context.Context, projectID string) (*model.GetInfraStatsResponse, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -189,14 +201,17 @@ func (r *queryResolver) GetInfraStats(ctx context.Context, projectID string) (*m return r.chaosInfrastructureService.GetInfraStats(ctx, projectID) } +// GetVersionDetails is the resolver for the getVersionDetails field. func (r *queryResolver) GetVersionDetails(ctx context.Context, projectID string) (*model.InfraVersionDetails, error) { return r.chaosInfrastructureService.GetVersionDetails() } +// GetServerVersion is the resolver for the getServerVersion field. func (r *queryResolver) GetServerVersion(ctx context.Context) (*model.ServerVersionResponse, error) { return r.chaosInfrastructureService.QueryServerVersion(ctx) } +// GetInfraEvents is the resolver for the getInfraEvents field. func (r *subscriptionResolver) GetInfraEvents(ctx context.Context, projectID string) (<-chan *model.InfraEventResponse, error) { logrus.Print("NEW EVENT ", projectID) infraEvent := make(chan *model.InfraEventResponse, 1) @@ -212,6 +227,7 @@ func (r *subscriptionResolver) GetInfraEvents(ctx context.Context, projectID str return infraEvent, nil } +// InfraConnect is the resolver for the infraConnect field. func (r *subscriptionResolver) InfraConnect(ctx context.Context, request model.InfraIdentity) (<-chan *model.InfraActionResponse, error) { logrus.Print("NEW CLUSTER CONNECT: ", request.InfraID) infraAction := make(chan *model.InfraActionResponse, 1) @@ -264,6 +280,7 @@ func (r *subscriptionResolver) InfraConnect(ctx context.Context, request model.I return infraAction, nil } +// GetPodLog is the resolver for the getPodLog field. func (r *subscriptionResolver) GetPodLog(ctx context.Context, request model.PodLogRequest) (<-chan *model.PodLogResponse, error) { logrus.Print("NEW LOG REQUEST: ", request.InfraID, request.PodName) workflowLog := make(chan *model.PodLogResponse, 1) @@ -280,6 +297,7 @@ func (r *subscriptionResolver) GetPodLog(ctx context.Context, request model.PodL return workflowLog, nil } +// GetKubeObject is the resolver for the getKubeObject field. func (r *subscriptionResolver) GetKubeObject(ctx context.Context, request model.KubeObjectRequest) (<-chan *model.KubeObjectResponse, error) { logrus.Print("NEW KUBEOBJECT REQUEST", request.InfraID) kubeObjData := make(chan *model.KubeObjectResponse) diff --git a/chaoscenter/graphql/server/graph/chaoshub.resolvers.go b/chaoscenter/graphql/server/graph/chaoshub.resolvers.go index a25d1940f2e..c042a8b395e 100644 --- a/chaoscenter/graphql/server/graph/chaoshub.resolvers.go +++ b/chaoscenter/graphql/server/graph/chaoshub.resolvers.go @@ -2,6 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. +// Code generated by github.com/99designs/gqlgen version v0.17.42 import ( "context" @@ -11,6 +12,7 @@ import ( chaosHubOps "github.com/litmuschaos/litmus/chaoscenter/graphql/server/pkg/chaoshub/ops" ) +// AddChaosHub is the resolver for the addChaosHub field. func (r *mutationResolver) AddChaosHub(ctx context.Context, projectID string, request model.CreateChaosHubRequest) (*model.ChaosHub, error) { if err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.AddChaosHub], @@ -21,6 +23,7 @@ func (r *mutationResolver) AddChaosHub(ctx context.Context, projectID string, re return r.chaosHubService.AddChaosHub(ctx, request, projectID) } +// AddRemoteChaosHub is the resolver for the addRemoteChaosHub field. func (r *mutationResolver) AddRemoteChaosHub(ctx context.Context, projectID string, request model.CreateRemoteChaosHub) (*model.ChaosHub, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.SaveChaosHub], @@ -32,6 +35,7 @@ func (r *mutationResolver) AddRemoteChaosHub(ctx context.Context, projectID stri return r.chaosHubService.AddRemoteChaosHub(ctx, request, projectID) } +// SaveChaosHub is the resolver for the saveChaosHub field. func (r *mutationResolver) SaveChaosHub(ctx context.Context, projectID string, request model.CreateChaosHubRequest) (*model.ChaosHub, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.SaveChaosHub], @@ -43,6 +47,7 @@ func (r *mutationResolver) SaveChaosHub(ctx context.Context, projectID string, r return r.chaosHubService.SaveChaosHub(ctx, request, projectID) } +// SyncChaosHub is the resolver for the syncChaosHub field. func (r *mutationResolver) SyncChaosHub(ctx context.Context, id string, projectID string) (string, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.UpdateChaosWorkflow], @@ -53,6 +58,7 @@ func (r *mutationResolver) SyncChaosHub(ctx context.Context, id string, projectI return r.chaosHubService.SyncChaosHub(ctx, id, projectID) } +// GenerateSSHKey is the resolver for the generateSSHKey field. func (r *mutationResolver) GenerateSSHKey(ctx context.Context) (*model.SSHKey, error) { publicKey, privateKey, err := chaosHubOps.GenerateKeys() if err != nil { @@ -65,6 +71,7 @@ func (r *mutationResolver) GenerateSSHKey(ctx context.Context) (*model.SSHKey, e }, nil } +// UpdateChaosHub is the resolver for the updateChaosHub field. func (r *mutationResolver) UpdateChaosHub(ctx context.Context, projectID string, request model.UpdateChaosHubRequest) (*model.ChaosHub, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.UpdateChaosHub], @@ -75,6 +82,7 @@ func (r *mutationResolver) UpdateChaosHub(ctx context.Context, projectID string, return r.chaosHubService.UpdateChaosHub(ctx, request, projectID) } +// DeleteChaosHub is the resolver for the deleteChaosHub field. func (r *mutationResolver) DeleteChaosHub(ctx context.Context, projectID string, hubID string) (bool, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.DeleteChaosHub], @@ -85,6 +93,7 @@ func (r *mutationResolver) DeleteChaosHub(ctx context.Context, projectID string, return r.chaosHubService.DeleteChaosHub(ctx, hubID, projectID) } +// ListChaosFaults is the resolver for the listChaosFaults field. func (r *queryResolver) ListChaosFaults(ctx context.Context, hubID string, projectID string) ([]*model.Chart, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.ListCharts], @@ -95,26 +104,32 @@ func (r *queryResolver) ListChaosFaults(ctx context.Context, hubID string, proje return r.chaosHubService.ListChaosFaults(ctx, hubID, projectID) } +// GetChaosFault is the resolver for the getChaosFault field. func (r *queryResolver) GetChaosFault(ctx context.Context, projectID string, request model.ExperimentRequest) (*model.FaultDetails, error) { return r.chaosHubService.GetChaosFault(ctx, request, projectID) } +// ListChaosHub is the resolver for the listChaosHub field. func (r *queryResolver) ListChaosHub(ctx context.Context, projectID string, request *model.ListChaosHubRequest) ([]*model.ChaosHubStatus, error) { return r.chaosHubService.ListChaosHubs(ctx, projectID, request) } +// GetChaosHub is the resolver for the getChaosHub field. func (r *queryResolver) GetChaosHub(ctx context.Context, projectID string, chaosHubID string) (*model.ChaosHubStatus, error) { return r.chaosHubService.GetChaosHub(ctx, chaosHubID, projectID) } +// ListPredefinedExperiments is the resolver for the listPredefinedExperiments field. func (r *queryResolver) ListPredefinedExperiments(ctx context.Context, hubID string, projectID string) ([]*model.PredefinedExperimentList, error) { return r.chaosHubService.ListPredefinedExperiments(ctx, hubID, projectID) } +// GetPredefinedExperiment is the resolver for the getPredefinedExperiment field. func (r *queryResolver) GetPredefinedExperiment(ctx context.Context, hubID string, experimentName []string, projectID string) ([]*model.PredefinedExperimentList, error) { return r.chaosHubService.GetPredefinedExperiment(ctx, hubID, experimentName, projectID) } +// GetChaosHubStats is the resolver for the getChaosHubStats field. func (r *queryResolver) GetChaosHubStats(ctx context.Context, projectID string) (*model.GetChaosHubStatsResponse, error) { return r.chaosHubService.GetChaosHubStats(ctx, projectID) } diff --git a/chaoscenter/graphql/server/graph/environment.resolvers.go b/chaoscenter/graphql/server/graph/environment.resolvers.go index d9f43ca6ac8..1e3c2e2534d 100644 --- a/chaoscenter/graphql/server/graph/environment.resolvers.go +++ b/chaoscenter/graphql/server/graph/environment.resolvers.go @@ -2,6 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. +// Code generated by github.com/99designs/gqlgen version v0.17.42 import ( "context" @@ -11,6 +12,7 @@ import ( "github.com/sirupsen/logrus" ) +// CreateEnvironment is the resolver for the createEnvironment field. func (r *mutationResolver) CreateEnvironment(ctx context.Context, projectID string, request *model.CreateEnvironmentRequest) (*model.Environment, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -25,6 +27,7 @@ func (r *mutationResolver) CreateEnvironment(ctx context.Context, projectID stri return r.environmentService.CreateEnvironment(ctx, projectID, request) } +// UpdateEnvironment is the resolver for the updateEnvironment field. func (r *mutationResolver) UpdateEnvironment(ctx context.Context, projectID string, request *model.UpdateEnvironmentRequest) (string, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -40,6 +43,7 @@ func (r *mutationResolver) UpdateEnvironment(ctx context.Context, projectID stri return r.environmentService.UpdateEnvironment(ctx, projectID, request) } +// DeleteEnvironment is the resolver for the deleteEnvironment field. func (r *mutationResolver) DeleteEnvironment(ctx context.Context, projectID string, environmentID string) (string, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -55,6 +59,7 @@ func (r *mutationResolver) DeleteEnvironment(ctx context.Context, projectID stri return r.environmentService.DeleteEnvironment(ctx, projectID, environmentID) } +// GetEnvironment is the resolver for the getEnvironment field. func (r *queryResolver) GetEnvironment(ctx context.Context, projectID string, environmentID string) (*model.Environment, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -70,6 +75,7 @@ func (r *queryResolver) GetEnvironment(ctx context.Context, projectID string, en return r.environmentService.GetEnvironment(projectID, environmentID) } +// ListEnvironments is the resolver for the listEnvironments field. func (r *queryResolver) ListEnvironments(ctx context.Context, projectID string, request *model.ListEnvironmentRequest) (*model.ListEnvironmentResponse, error) { logFields := logrus.Fields{ "projectId": projectID, diff --git a/chaoscenter/graphql/server/graph/generated/generated.go b/chaoscenter/graphql/server/graph/generated/generated.go index b31d43f38dc..b1201bf5a06 100644 --- a/chaoscenter/graphql/server/graph/generated/generated.go +++ b/chaoscenter/graphql/server/graph/generated/generated.go @@ -24,6 +24,7 @@ import ( // 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, @@ -31,6 +32,7 @@ func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { } type Config struct { + Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot @@ -228,13 +230,13 @@ type ComplexityRoot struct { } Experiments struct { - Csv func(childComplexity int) int + CSV func(childComplexity int) int Desc func(childComplexity int) int Name func(childComplexity int) int } FaultDetails struct { - Csv func(childComplexity int) int + CSV func(childComplexity int) int Engine func(childComplexity int) int Fault func(childComplexity int) int } @@ -246,7 +248,7 @@ type ComplexityRoot struct { Plan func(childComplexity int) int } - Get struct { + GET struct { Criteria func(childComplexity int) int ResponseCode func(childComplexity int) int } @@ -517,7 +519,7 @@ type ComplexityRoot struct { Name func(childComplexity int) int } - Post struct { + POST struct { Body func(childComplexity int) int BodyPath func(childComplexity int) int ContentType func(childComplexity int) int @@ -553,7 +555,7 @@ type ComplexityRoot struct { } PredefinedExperimentList struct { - ExperimentCsv func(childComplexity int) int + ExperimentCSV func(childComplexity int) int ExperimentManifest func(childComplexity int) int ExperimentName func(childComplexity int) int } @@ -787,17 +789,21 @@ type SubscriptionResolver interface { } 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} + ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -1768,11 +1774,11 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.ExperimentRun.Weightages(childComplexity), true case "Experiments.CSV": - if e.complexity.Experiments.Csv == nil { + if e.complexity.Experiments.CSV == nil { break } - return e.complexity.Experiments.Csv(childComplexity), true + return e.complexity.Experiments.CSV(childComplexity), true case "Experiments.desc": if e.complexity.Experiments.Desc == nil { @@ -1789,11 +1795,11 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Experiments.Name(childComplexity), true case "FaultDetails.csv": - if e.complexity.FaultDetails.Csv == nil { + if e.complexity.FaultDetails.CSV == nil { break } - return e.complexity.FaultDetails.Csv(childComplexity), true + return e.complexity.FaultDetails.CSV(childComplexity), true case "FaultDetails.engine": if e.complexity.FaultDetails.Engine == nil { @@ -1838,18 +1844,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.FaultList.Plan(childComplexity), true case "GET.criteria": - if e.complexity.Get.Criteria == nil { + if e.complexity.GET.Criteria == nil { break } - return e.complexity.Get.Criteria(childComplexity), true + return e.complexity.GET.Criteria(childComplexity), true case "GET.responseCode": - if e.complexity.Get.ResponseCode == nil { + if e.complexity.GET.ResponseCode == nil { break } - return e.complexity.Get.ResponseCode(childComplexity), true + return e.complexity.GET.ResponseCode(childComplexity), true case "GetChaosHubStatsResponse.totalChaosHubs": if e.complexity.GetChaosHubStatsResponse.TotalChaosHubs == nil { @@ -3270,39 +3276,39 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.ObjectData.Name(childComplexity), true case "POST.body": - if e.complexity.Post.Body == nil { + if e.complexity.POST.Body == nil { break } - return e.complexity.Post.Body(childComplexity), true + return e.complexity.POST.Body(childComplexity), true case "POST.bodyPath": - if e.complexity.Post.BodyPath == nil { + if e.complexity.POST.BodyPath == nil { break } - return e.complexity.Post.BodyPath(childComplexity), true + return e.complexity.POST.BodyPath(childComplexity), true case "POST.contentType": - if e.complexity.Post.ContentType == nil { + if e.complexity.POST.ContentType == nil { break } - return e.complexity.Post.ContentType(childComplexity), true + return e.complexity.POST.ContentType(childComplexity), true case "POST.criteria": - if e.complexity.Post.Criteria == nil { + if e.complexity.POST.Criteria == nil { break } - return e.complexity.Post.Criteria(childComplexity), true + return e.complexity.POST.Criteria(childComplexity), true case "POST.responseCode": - if e.complexity.Post.ResponseCode == nil { + if e.complexity.POST.ResponseCode == nil { break } - return e.complexity.Post.ResponseCode(childComplexity), true + return e.complexity.POST.ResponseCode(childComplexity), true case "PROMProbe.attempt": if e.complexity.PROMProbe.Attempt == nil { @@ -3431,11 +3437,11 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.PodLogResponse.PodType(childComplexity), true case "PredefinedExperimentList.experimentCSV": - if e.complexity.PredefinedExperimentList.ExperimentCsv == nil { + if e.complexity.PredefinedExperimentList.ExperimentCSV == nil { break } - return e.complexity.PredefinedExperimentList.ExperimentCsv(childComplexity), true + return e.complexity.PredefinedExperimentList.ExperimentCSV(childComplexity), true case "PredefinedExperimentList.experimentManifest": if e.complexity.PredefinedExperimentList.ExperimentManifest == nil { @@ -4327,23 +4333,92 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { rc := graphql.GetOperationContext(ctx) - ec := executionContext{rc, e} + 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.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 { - if !first { - return nil + 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 + } } - first = false - data := ec._Query(ctx, rc.Operation.SelectionSet) var buf bytes.Buffer data.MarshalGQL(&buf) - - return &graphql.Response{ - Data: buf.Bytes(), + 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 { @@ -4351,6 +4426,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { return nil } first = false + ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) data := ec._Mutation(ctx, rc.Operation.SelectionSet) var buf bytes.Buffer data.MarshalGQL(&buf) @@ -4365,7 +4441,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { var buf bytes.Buffer return func(ctx context.Context) *graphql.Response { buf.Reset() - data := next() + data := next(ctx) if data == nil { return nil @@ -4385,24 +4461,46 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { 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(parsedSchema), nil + 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(parsedSchema, parsedSchema.Types[name]), nil + return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil } var sources = []*ast.Source{ - &ast.Source{Name: "../definitions/shared/chaos_experiment.graphqls", Input: `""" + {Name: "../../../definitions/shared/chaos_experiment.graphqls", Input: `""" Defines the details of the weightages of each chaos fault in the experiment """ input WeightagesInput { @@ -5182,7 +5280,7 @@ extend type Mutation { ): Boolean! @authorized } `, BuiltIn: false}, - &ast.Source{Name: "../definitions/shared/chaos_experiment_run.graphqls", Input: `extend type Query { + {Name: "../../../definitions/shared/chaos_experiment_run.graphqls", Input: `extend type Query { """ Returns experiment run based on experiment run ID """ @@ -5222,7 +5320,7 @@ extend type Mutation { """ stopExperimentRuns(projectID: ID!, experimentID:String!, experimentRunID: String, notifyID: String): Boolean! @authorized }`, BuiltIn: false}, - &ast.Source{Name: "../definitions/shared/chaos_infrastructure.graphqls", Input: `directive @authorized on FIELD_DEFINITION + {Name: "../../../definitions/shared/chaos_infrastructure.graphqls", Input: `directive @authorized on FIELD_DEFINITION """ UpdateStatus represents if infra needs to be updated @@ -5889,7 +5987,7 @@ extend type Subscription { getKubeObject(request: KubeObjectRequest!): KubeObjectResponse! } `, BuiltIn: false}, - &ast.Source{Name: "../definitions/shared/chaoshub.graphqls", Input: `enum AuthType { + {Name: "../../../definitions/shared/chaoshub.graphqls", Input: `enum AuthType { BASIC NONE SSH @@ -6544,7 +6642,7 @@ extend type Mutation { """ deleteChaosHub(projectID: ID!, hubID: ID!): Boolean! @authorized }`, BuiltIn: false}, - &ast.Source{Name: "../definitions/shared/common.graphqls", Input: ` + {Name: "../../../definitions/shared/common.graphqls", Input: ` interface ResourceDetails { name: String! description: String @@ -6565,7 +6663,7 @@ type UserDetails { } `, BuiltIn: false}, - &ast.Source{Name: "../definitions/shared/environment.graphqls", Input: ` + {Name: "../../../definitions/shared/environment.graphqls", Input: ` enum EnvironmentType{ PROD NON_PROD @@ -6681,7 +6779,7 @@ extend type Mutation{ updateEnvironment( projectID:ID!,request:UpdateEnvironmentRequest): String! @authorized deleteEnvironment(projectID:ID!,environmentID: ID!): String! @authorized }`, BuiltIn: false}, - &ast.Source{Name: "../definitions/shared/gitops.graphqls", Input: ` + {Name: "../../../definitions/shared/gitops.graphqls", Input: ` """ Defines the SSHKey details """ @@ -6803,7 +6901,7 @@ extend type Mutation { """ updateGitOps(projectID: ID!,configurations: GitConfig!): Boolean! @authorized }`, BuiltIn: false}, - &ast.Source{Name: "../definitions/shared/image_registry.graphqls", Input: `""" + {Name: "../../../definitions/shared/image_registry.graphqls", Input: `""" Defines details for image registry """ type ImageRegistry { @@ -6947,7 +7045,7 @@ extend type Mutation { deleteImageRegistry(imageRegistryID: String!, projectID: String!): String! @authorized }`, BuiltIn: false}, - &ast.Source{Name: "../definitions/shared/probe.graphqls", Input: `""" + {Name: "../../../definitions/shared/probe.graphqls", Input: `""" Defines the different types of Probes """ enum ProbeType { @@ -8066,7 +8164,7 @@ extend type Mutation { deleteProbe(probeName: ID!, projectID: ID!): Boolean! @authorized } `, BuiltIn: false}, - &ast.Source{Name: "../definitions/shared/project.graphqls", Input: `enum Invitation { + {Name: "../../../definitions/shared/project.graphqls", Input: `enum Invitation { Accepted Pending } @@ -8089,6 +8187,7 @@ func (ec *executionContext) field_Mutation_addChaosHub_args(ctx context.Context, 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 @@ -8097,6 +8196,7 @@ func (ec *executionContext) field_Mutation_addChaosHub_args(ctx context.Context, 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 @@ -8111,6 +8211,7 @@ func (ec *executionContext) field_Mutation_addProbe_args(ctx context.Context, ra 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 @@ -8119,6 +8220,7 @@ func (ec *executionContext) field_Mutation_addProbe_args(ctx context.Context, ra 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 @@ -8133,6 +8235,7 @@ func (ec *executionContext) field_Mutation_addRemoteChaosHub_args(ctx context.Co 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 @@ -8141,6 +8244,7 @@ func (ec *executionContext) field_Mutation_addRemoteChaosHub_args(ctx context.Co 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 @@ -8155,6 +8259,7 @@ func (ec *executionContext) field_Mutation_chaosExperimentRun_args(ctx context.C 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 @@ -8169,6 +8274,7 @@ func (ec *executionContext) field_Mutation_confirmInfraRegistration_args(ctx con 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 @@ -8183,6 +8289,7 @@ func (ec *executionContext) field_Mutation_createChaosExperiment_args(ctx contex 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 @@ -8191,6 +8298,7 @@ func (ec *executionContext) field_Mutation_createChaosExperiment_args(ctx contex 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 @@ -8205,6 +8313,7 @@ func (ec *executionContext) field_Mutation_createEnvironment_args(ctx context.Co 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 @@ -8213,6 +8322,7 @@ func (ec *executionContext) field_Mutation_createEnvironment_args(ctx context.Co 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 @@ -8227,6 +8337,7 @@ func (ec *executionContext) field_Mutation_createImageRegistry_args(ctx context. 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 @@ -8235,6 +8346,7 @@ func (ec *executionContext) field_Mutation_createImageRegistry_args(ctx context. 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 @@ -8249,6 +8361,7 @@ func (ec *executionContext) field_Mutation_deleteChaosExperiment_args(ctx contex 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 @@ -8257,6 +8370,7 @@ func (ec *executionContext) field_Mutation_deleteChaosExperiment_args(ctx contex 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 @@ -8265,6 +8379,7 @@ func (ec *executionContext) field_Mutation_deleteChaosExperiment_args(ctx contex 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 @@ -8279,6 +8394,7 @@ func (ec *executionContext) field_Mutation_deleteChaosHub_args(ctx context.Conte 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 @@ -8287,6 +8403,7 @@ func (ec *executionContext) field_Mutation_deleteChaosHub_args(ctx context.Conte 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 @@ -8301,6 +8418,7 @@ func (ec *executionContext) field_Mutation_deleteEnvironment_args(ctx context.Co 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 @@ -8309,6 +8427,7 @@ func (ec *executionContext) field_Mutation_deleteEnvironment_args(ctx context.Co 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 @@ -8323,6 +8442,7 @@ func (ec *executionContext) field_Mutation_deleteImageRegistry_args(ctx context. 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 @@ -8331,6 +8451,7 @@ func (ec *executionContext) field_Mutation_deleteImageRegistry_args(ctx context. 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 @@ -8345,6 +8466,7 @@ func (ec *executionContext) field_Mutation_deleteInfra_args(ctx context.Context, 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 @@ -8353,6 +8475,7 @@ func (ec *executionContext) field_Mutation_deleteInfra_args(ctx context.Context, 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 @@ -8367,6 +8490,7 @@ func (ec *executionContext) field_Mutation_deleteProbe_args(ctx context.Context, 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 @@ -8375,6 +8499,7 @@ func (ec *executionContext) field_Mutation_deleteProbe_args(ctx context.Context, 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 @@ -8389,6 +8514,7 @@ func (ec *executionContext) field_Mutation_disableGitOps_args(ctx context.Contex 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 @@ -8403,6 +8529,7 @@ func (ec *executionContext) field_Mutation_enableGitOps_args(ctx context.Context 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 @@ -8411,6 +8538,7 @@ func (ec *executionContext) field_Mutation_enableGitOps_args(ctx context.Context 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 @@ -8425,6 +8553,7 @@ func (ec *executionContext) field_Mutation_getManifestWithInfraID_args(ctx conte 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 @@ -8433,6 +8562,7 @@ func (ec *executionContext) field_Mutation_getManifestWithInfraID_args(ctx conte 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 @@ -8441,6 +8571,7 @@ func (ec *executionContext) field_Mutation_getManifestWithInfraID_args(ctx conte 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 @@ -8455,6 +8586,7 @@ func (ec *executionContext) field_Mutation_gitopsNotifier_args(ctx context.Conte 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 @@ -8463,6 +8595,7 @@ func (ec *executionContext) field_Mutation_gitopsNotifier_args(ctx context.Conte 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 @@ -8477,6 +8610,7 @@ func (ec *executionContext) field_Mutation_kubeObj_args(ctx context.Context, raw 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 @@ -8491,6 +8625,7 @@ func (ec *executionContext) field_Mutation_podLog_args(ctx context.Context, rawA 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 @@ -8505,6 +8640,7 @@ func (ec *executionContext) field_Mutation_registerInfra_args(ctx context.Contex 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 @@ -8513,6 +8649,7 @@ func (ec *executionContext) field_Mutation_registerInfra_args(ctx context.Contex 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 @@ -8527,6 +8664,7 @@ func (ec *executionContext) field_Mutation_runChaosExperiment_args(ctx context.C 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 @@ -8535,6 +8673,7 @@ func (ec *executionContext) field_Mutation_runChaosExperiment_args(ctx context.C 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 @@ -8549,6 +8688,7 @@ func (ec *executionContext) field_Mutation_saveChaosExperiment_args(ctx context. 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 @@ -8557,6 +8697,7 @@ func (ec *executionContext) field_Mutation_saveChaosExperiment_args(ctx context. 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 @@ -8571,6 +8712,7 @@ func (ec *executionContext) field_Mutation_saveChaosHub_args(ctx context.Context 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 @@ -8579,6 +8721,7 @@ func (ec *executionContext) field_Mutation_saveChaosHub_args(ctx context.Context 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 @@ -8593,6 +8736,7 @@ func (ec *executionContext) field_Mutation_stopExperimentRuns_args(ctx context.C 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 @@ -8601,6 +8745,7 @@ func (ec *executionContext) field_Mutation_stopExperimentRuns_args(ctx context.C 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 @@ -8609,6 +8754,7 @@ func (ec *executionContext) field_Mutation_stopExperimentRuns_args(ctx context.C 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 @@ -8617,6 +8763,7 @@ func (ec *executionContext) field_Mutation_stopExperimentRuns_args(ctx context.C 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 @@ -8631,6 +8778,7 @@ func (ec *executionContext) field_Mutation_syncChaosHub_args(ctx context.Context 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 @@ -8639,6 +8787,7 @@ func (ec *executionContext) field_Mutation_syncChaosHub_args(ctx context.Context 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 @@ -8653,6 +8802,7 @@ func (ec *executionContext) field_Mutation_updateChaosExperiment_args(ctx contex args := map[string]interface{}{} var arg0 *model.ChaosExperimentRequest if tmp, ok := rawArgs["request"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("request")) arg0, err = ec.unmarshalOChaosExperimentRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentRequest(ctx, tmp) if err != nil { return nil, err @@ -8661,6 +8811,7 @@ func (ec *executionContext) field_Mutation_updateChaosExperiment_args(ctx contex 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 @@ -8675,6 +8826,7 @@ func (ec *executionContext) field_Mutation_updateChaosHub_args(ctx context.Conte 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 @@ -8683,6 +8835,7 @@ func (ec *executionContext) field_Mutation_updateChaosHub_args(ctx context.Conte 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 @@ -8697,6 +8850,7 @@ func (ec *executionContext) field_Mutation_updateCronExperimentState_args(ctx co 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 @@ -8705,6 +8859,7 @@ func (ec *executionContext) field_Mutation_updateCronExperimentState_args(ctx co 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 @@ -8713,6 +8868,7 @@ func (ec *executionContext) field_Mutation_updateCronExperimentState_args(ctx co 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 @@ -8727,6 +8883,7 @@ func (ec *executionContext) field_Mutation_updateEnvironment_args(ctx context.Co 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 @@ -8735,6 +8892,7 @@ func (ec *executionContext) field_Mutation_updateEnvironment_args(ctx context.Co 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 @@ -8749,6 +8907,7 @@ func (ec *executionContext) field_Mutation_updateGitOps_args(ctx context.Context 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 @@ -8757,6 +8916,7 @@ func (ec *executionContext) field_Mutation_updateGitOps_args(ctx context.Context 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 @@ -8771,6 +8931,7 @@ func (ec *executionContext) field_Mutation_updateImageRegistry_args(ctx context. 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 @@ -8779,6 +8940,7 @@ func (ec *executionContext) field_Mutation_updateImageRegistry_args(ctx context. 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 @@ -8787,6 +8949,7 @@ func (ec *executionContext) field_Mutation_updateImageRegistry_args(ctx context. 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 @@ -8801,6 +8964,7 @@ func (ec *executionContext) field_Mutation_updateProbe_args(ctx context.Context, 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 @@ -8809,6 +8973,7 @@ func (ec *executionContext) field_Mutation_updateProbe_args(ctx context.Context, 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 @@ -8823,6 +8988,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs 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 @@ -8837,6 +9003,7 @@ func (ec *executionContext) field_Query_getChaosFault_args(ctx context.Context, 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 @@ -8845,6 +9012,7 @@ func (ec *executionContext) field_Query_getChaosFault_args(ctx context.Context, 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 @@ -8859,6 +9027,7 @@ func (ec *executionContext) field_Query_getChaosHubStats_args(ctx context.Contex 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 @@ -8873,6 +9042,7 @@ func (ec *executionContext) field_Query_getChaosHub_args(ctx context.Context, ra 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 @@ -8881,6 +9051,7 @@ func (ec *executionContext) field_Query_getChaosHub_args(ctx context.Context, ra 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 @@ -8895,6 +9066,7 @@ func (ec *executionContext) field_Query_getEnvironment_args(ctx context.Context, 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 @@ -8903,6 +9075,7 @@ func (ec *executionContext) field_Query_getEnvironment_args(ctx context.Context, 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 @@ -8917,6 +9090,7 @@ func (ec *executionContext) field_Query_getExperimentRunStats_args(ctx context.C 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 @@ -8931,6 +9105,7 @@ func (ec *executionContext) field_Query_getExperimentRun_args(ctx context.Contex 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 @@ -8939,6 +9114,7 @@ func (ec *executionContext) field_Query_getExperimentRun_args(ctx context.Contex 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 @@ -8947,6 +9123,7 @@ func (ec *executionContext) field_Query_getExperimentRun_args(ctx context.Contex 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 @@ -8961,6 +9138,7 @@ func (ec *executionContext) field_Query_getExperimentStats_args(ctx context.Cont 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 @@ -8975,6 +9153,7 @@ func (ec *executionContext) field_Query_getExperiment_args(ctx context.Context, 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 @@ -8983,6 +9162,7 @@ func (ec *executionContext) field_Query_getExperiment_args(ctx context.Context, 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 @@ -8997,6 +9177,7 @@ func (ec *executionContext) field_Query_getGitOpsDetails_args(ctx context.Contex 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 @@ -9011,6 +9192,7 @@ func (ec *executionContext) field_Query_getImageRegistry_args(ctx context.Contex 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 @@ -9025,6 +9207,7 @@ func (ec *executionContext) field_Query_getInfraDetails_args(ctx context.Context 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 @@ -9033,6 +9216,7 @@ func (ec *executionContext) field_Query_getInfraDetails_args(ctx context.Context 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 @@ -9047,6 +9231,7 @@ func (ec *executionContext) field_Query_getInfraManifest_args(ctx context.Contex 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 @@ -9055,6 +9240,7 @@ func (ec *executionContext) field_Query_getInfraManifest_args(ctx context.Contex 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 @@ -9063,6 +9249,7 @@ func (ec *executionContext) field_Query_getInfraManifest_args(ctx context.Contex 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 @@ -9077,6 +9264,7 @@ func (ec *executionContext) field_Query_getInfraStats_args(ctx context.Context, 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 @@ -9091,6 +9279,7 @@ func (ec *executionContext) field_Query_getInfra_args(ctx context.Context, rawAr 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 @@ -9099,6 +9288,7 @@ func (ec *executionContext) field_Query_getInfra_args(ctx context.Context, rawAr 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 @@ -9113,6 +9303,7 @@ func (ec *executionContext) field_Query_getPredefinedExperiment_args(ctx context 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 @@ -9121,6 +9312,7 @@ func (ec *executionContext) field_Query_getPredefinedExperiment_args(ctx context 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 @@ -9129,6 +9321,7 @@ func (ec *executionContext) field_Query_getPredefinedExperiment_args(ctx context 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 @@ -9143,6 +9336,7 @@ func (ec *executionContext) field_Query_getProbeReference_args(ctx context.Conte 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 @@ -9151,6 +9345,7 @@ func (ec *executionContext) field_Query_getProbeReference_args(ctx context.Conte 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 @@ -9165,6 +9360,7 @@ func (ec *executionContext) field_Query_getProbeYAML_args(ctx context.Context, r 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 @@ -9173,6 +9369,7 @@ func (ec *executionContext) field_Query_getProbeYAML_args(ctx context.Context, r 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 @@ -9187,6 +9384,7 @@ func (ec *executionContext) field_Query_getProbe_args(ctx context.Context, rawAr 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 @@ -9195,6 +9393,7 @@ func (ec *executionContext) field_Query_getProbe_args(ctx context.Context, rawAr 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 @@ -9209,6 +9408,7 @@ func (ec *executionContext) field_Query_getProbesInExperimentRun_args(ctx contex 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 @@ -9217,6 +9417,7 @@ func (ec *executionContext) field_Query_getProbesInExperimentRun_args(ctx contex 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 @@ -9225,6 +9426,7 @@ func (ec *executionContext) field_Query_getProbesInExperimentRun_args(ctx contex 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 @@ -9239,6 +9441,7 @@ func (ec *executionContext) field_Query_getVersionDetails_args(ctx context.Conte 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 @@ -9253,6 +9456,7 @@ func (ec *executionContext) field_Query_listChaosFaults_args(ctx context.Context 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 @@ -9261,6 +9465,7 @@ func (ec *executionContext) field_Query_listChaosFaults_args(ctx context.Context 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 @@ -9275,6 +9480,7 @@ func (ec *executionContext) field_Query_listChaosHub_args(ctx context.Context, r 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 @@ -9283,6 +9489,7 @@ func (ec *executionContext) field_Query_listChaosHub_args(ctx context.Context, r 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 @@ -9297,6 +9504,7 @@ func (ec *executionContext) field_Query_listEnvironments_args(ctx context.Contex 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 @@ -9305,6 +9513,7 @@ func (ec *executionContext) field_Query_listEnvironments_args(ctx context.Contex 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 @@ -9319,6 +9528,7 @@ func (ec *executionContext) field_Query_listExperimentRun_args(ctx context.Conte 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 @@ -9327,6 +9537,7 @@ func (ec *executionContext) field_Query_listExperimentRun_args(ctx context.Conte 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 @@ -9341,6 +9552,7 @@ func (ec *executionContext) field_Query_listExperiment_args(ctx context.Context, 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 @@ -9349,6 +9561,7 @@ func (ec *executionContext) field_Query_listExperiment_args(ctx context.Context, 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 @@ -9363,6 +9576,7 @@ func (ec *executionContext) field_Query_listImageRegistry_args(ctx context.Conte 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 @@ -9377,6 +9591,7 @@ func (ec *executionContext) field_Query_listInfras_args(ctx context.Context, raw 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 @@ -9385,6 +9600,7 @@ func (ec *executionContext) field_Query_listInfras_args(ctx context.Context, raw 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 @@ -9399,6 +9615,7 @@ func (ec *executionContext) field_Query_listPredefinedExperiments_args(ctx conte 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 @@ -9407,6 +9624,7 @@ func (ec *executionContext) field_Query_listPredefinedExperiments_args(ctx conte 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 @@ -9421,6 +9639,7 @@ func (ec *executionContext) field_Query_listProbes_args(ctx context.Context, raw 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 @@ -9429,6 +9648,7 @@ func (ec *executionContext) field_Query_listProbes_args(ctx context.Context, raw 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 @@ -9437,6 +9657,7 @@ func (ec *executionContext) field_Query_listProbes_args(ctx context.Context, raw 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 @@ -9445,6 +9666,7 @@ func (ec *executionContext) field_Query_listProbes_args(ctx context.Context, raw 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 @@ -9459,6 +9681,7 @@ func (ec *executionContext) field_Query_validateUniqueProbe_args(ctx context.Con 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 @@ -9467,6 +9690,7 @@ func (ec *executionContext) field_Query_validateUniqueProbe_args(ctx context.Con 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 @@ -9481,6 +9705,7 @@ func (ec *executionContext) field_Subscription_getInfraEvents_args(ctx context.C 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 @@ -9495,6 +9720,7 @@ func (ec *executionContext) field_Subscription_getKubeObject_args(ctx context.Co 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 @@ -9509,6 +9735,7 @@ func (ec *executionContext) field_Subscription_getPodLog_args(ctx context.Contex 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 @@ -9523,6 +9750,7 @@ func (ec *executionContext) field_Subscription_infraConnect_args(ctx context.Con 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 @@ -9537,6 +9765,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra 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 @@ -9551,6 +9780,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg 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 @@ -9569,20 +9799,17 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg // 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 } }() - fc := &graphql.FieldContext{ - Object: "ActionPayload", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.RequestID, nil @@ -9602,21 +9829,31 @@ func (ec *executionContext) _ActionPayload_requestID(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ActionPayload_requestID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ActionPayload", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.RequestType, nil @@ -9636,21 +9873,31 @@ func (ec *executionContext) _ActionPayload_requestType(ctx context.Context, fiel return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ActionPayload_requestType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ActionPayload", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.K8sManifest, nil @@ -9670,21 +9917,31 @@ func (ec *executionContext) _ActionPayload_k8sManifest(ctx context.Context, fiel return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ActionPayload_k8sManifest(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ActionPayload", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Namespace, nil @@ -9704,21 +9961,31 @@ func (ec *executionContext) _ActionPayload_namespace(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ActionPayload_namespace(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ActionPayload", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExternalData, nil @@ -9735,21 +10002,31 @@ func (ec *executionContext) _ActionPayload_externalData(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ActionPayload_externalData(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ActionPayload", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Username, nil @@ -9766,21 +10043,31 @@ func (ec *executionContext) _ActionPayload_username(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ActionPayload_username(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Annotation", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Categories, nil @@ -9800,21 +10087,31 @@ func (ec *executionContext) _Annotation_categories(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Annotation_categories(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Annotation", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Vendor, nil @@ -9834,21 +10131,31 @@ func (ec *executionContext) _Annotation_vendor(ctx context.Context, field graphq return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Annotation_vendor(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Annotation", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil @@ -9868,21 +10175,31 @@ func (ec *executionContext) _Annotation_createdAt(ctx context.Context, field gra return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Annotation_createdAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Annotation", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Repository, nil @@ -9902,21 +10219,31 @@ func (ec *executionContext) _Annotation_repository(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Annotation_repository(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Annotation", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Support, nil @@ -9936,21 +10263,31 @@ func (ec *executionContext) _Annotation_support(ctx context.Context, field graph return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Annotation_support(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Annotation", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ChartDescription, nil @@ -9970,21 +10307,31 @@ func (ec *executionContext) _Annotation_chartDescription(ctx context.Context, fi return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Annotation_chartDescription(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosExperimentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentID, nil @@ -10004,21 +10351,31 @@ func (ec *executionContext) _ChaosExperimentResponse_experimentID(ctx context.Co return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosExperimentResponse_experimentID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosExperimentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProjectID, nil @@ -10038,21 +10395,31 @@ func (ec *executionContext) _ChaosExperimentResponse_projectID(ctx context.Conte return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosExperimentResponse_projectID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosExperimentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CronSyntax, nil @@ -10072,21 +10439,31 @@ func (ec *executionContext) _ChaosExperimentResponse_cronSyntax(ctx context.Cont return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosExperimentResponse_cronSyntax(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosExperimentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentName, nil @@ -10106,21 +10483,31 @@ func (ec *executionContext) _ChaosExperimentResponse_experimentName(ctx context. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosExperimentResponse_experimentName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosExperimentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentDescription, nil @@ -10140,21 +10527,31 @@ func (ec *executionContext) _ChaosExperimentResponse_experimentDescription(ctx c return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosExperimentResponse_experimentDescription(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosExperimentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsCustomExperiment, nil @@ -10174,21 +10571,31 @@ func (ec *executionContext) _ChaosExperimentResponse_isCustomExperiment(ctx cont return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosExperimentResponse_isCustomExperiment(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosExperimentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Tags, nil @@ -10205,21 +10612,31 @@ func (ec *executionContext) _ChaosExperimentResponse_tags(ctx context.Context, f return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosExperimentResponse_tags(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil @@ -10239,21 +10656,31 @@ func (ec *executionContext) _ChaosHub_id(ctx context.Context, field graphql.Coll return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_id(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.RepoURL, nil @@ -10273,21 +10700,31 @@ func (ec *executionContext) _ChaosHub_repoURL(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_repoURL(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.RepoBranch, nil @@ -10307,21 +10744,31 @@ func (ec *executionContext) _ChaosHub_repoBranch(ctx context.Context, field grap return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_repoBranch(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProjectID, nil @@ -10341,21 +10788,31 @@ func (ec *executionContext) _ChaosHub_projectID(ctx context.Context, field graph return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_projectID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsDefault, nil @@ -10375,21 +10832,31 @@ func (ec *executionContext) _ChaosHub_isDefault(ctx context.Context, field graph return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_isDefault(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -10409,21 +10876,31 @@ func (ec *executionContext) _ChaosHub_name(ctx context.Context, field graphql.Co return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Tags, nil @@ -10440,21 +10917,31 @@ func (ec *executionContext) _ChaosHub_tags(ctx context.Context, field graphql.Co return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_tags(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedBy, nil @@ -10471,21 +10958,39 @@ func (ec *executionContext) _ChaosHub_createdBy(ctx context.Context, field graph return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_createdBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedBy, nil @@ -10502,21 +11007,39 @@ func (ec *executionContext) _ChaosHub_updatedBy(ctx context.Context, field graph return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_updatedBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil @@ -10533,21 +11056,31 @@ func (ec *executionContext) _ChaosHub_description(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.HubType, nil @@ -10567,21 +11100,31 @@ func (ec *executionContext) _ChaosHub_hubType(ctx context.Context, field graphql return ec.marshalNHubType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐHubType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_hubType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsPrivate, nil @@ -10601,21 +11144,31 @@ func (ec *executionContext) _ChaosHub_isPrivate(ctx context.Context, field graph return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_isPrivate(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.AuthType, nil @@ -10635,21 +11188,31 @@ func (ec *executionContext) _ChaosHub_authType(ctx context.Context, field graphq return ec.marshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_authType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Token, nil @@ -10666,21 +11229,31 @@ func (ec *executionContext) _ChaosHub_token(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_token(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UserName, nil @@ -10697,21 +11270,31 @@ func (ec *executionContext) _ChaosHub_userName(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_userName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Password, nil @@ -10728,21 +11311,31 @@ func (ec *executionContext) _ChaosHub_password(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_password(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.SSHPrivateKey, nil @@ -10759,21 +11352,31 @@ func (ec *executionContext) _ChaosHub_sshPrivateKey(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_sshPrivateKey(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsRemoved, nil @@ -10793,21 +11396,31 @@ func (ec *executionContext) _ChaosHub_isRemoved(ctx context.Context, field graph return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_isRemoved(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil @@ -10827,21 +11440,31 @@ func (ec *executionContext) _ChaosHub_createdAt(ctx context.Context, field graph return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_createdAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedAt, nil @@ -10861,21 +11484,31 @@ func (ec *executionContext) _ChaosHub_updatedAt(ctx context.Context, field graph return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_updatedAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHub", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.LastSyncedAt, nil @@ -10895,21 +11528,31 @@ func (ec *executionContext) _ChaosHub_lastSyncedAt(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHub_lastSyncedAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil @@ -10929,21 +11572,31 @@ func (ec *executionContext) _ChaosHubStatus_id(ctx context.Context, field graphq return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_id(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.RepoURL, nil @@ -10963,21 +11616,31 @@ func (ec *executionContext) _ChaosHubStatus_repoURL(ctx context.Context, field g return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_repoURL(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.RepoBranch, nil @@ -10997,21 +11660,31 @@ func (ec *executionContext) _ChaosHubStatus_repoBranch(ctx context.Context, fiel return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_repoBranch(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsAvailable, nil @@ -11031,21 +11704,31 @@ func (ec *executionContext) _ChaosHubStatus_isAvailable(ctx context.Context, fie return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_isAvailable(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalFaults, nil @@ -11065,21 +11748,31 @@ func (ec *executionContext) _ChaosHubStatus_totalFaults(ctx context.Context, fie return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_totalFaults(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalExperiments, nil @@ -11099,21 +11792,31 @@ func (ec *executionContext) _ChaosHubStatus_totalExperiments(ctx context.Context return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_totalExperiments(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -11133,21 +11836,31 @@ func (ec *executionContext) _ChaosHubStatus_name(ctx context.Context, field grap return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.HubType, nil @@ -11167,21 +11880,31 @@ func (ec *executionContext) _ChaosHubStatus_hubType(ctx context.Context, field g return ec.marshalNHubType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐHubType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_hubType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsPrivate, nil @@ -11201,21 +11924,31 @@ func (ec *executionContext) _ChaosHubStatus_isPrivate(ctx context.Context, field return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_isPrivate(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.AuthType, nil @@ -11235,21 +11968,31 @@ func (ec *executionContext) _ChaosHubStatus_authType(ctx context.Context, field return ec.marshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_authType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Token, nil @@ -11266,21 +12009,31 @@ func (ec *executionContext) _ChaosHubStatus_token(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_token(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UserName, nil @@ -11297,21 +12050,31 @@ func (ec *executionContext) _ChaosHubStatus_userName(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_userName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Password, nil @@ -11328,21 +12091,31 @@ func (ec *executionContext) _ChaosHubStatus_password(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_password(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsRemoved, nil @@ -11362,21 +12135,31 @@ func (ec *executionContext) _ChaosHubStatus_isRemoved(ctx context.Context, field return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_isRemoved(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.SSHPrivateKey, nil @@ -11393,21 +12176,31 @@ func (ec *executionContext) _ChaosHubStatus_sshPrivateKey(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_sshPrivateKey(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.SSHPublicKey, nil @@ -11424,21 +12217,31 @@ func (ec *executionContext) _ChaosHubStatus_sshPublicKey(ctx context.Context, fi return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_sshPublicKey(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.LastSyncedAt, nil @@ -11458,21 +12261,31 @@ func (ec *executionContext) _ChaosHubStatus_lastSyncedAt(ctx context.Context, fi return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_lastSyncedAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Tags, nil @@ -11489,21 +12302,31 @@ func (ec *executionContext) _ChaosHubStatus_tags(ctx context.Context, field grap return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_tags(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedBy, nil @@ -11520,21 +12343,39 @@ func (ec *executionContext) _ChaosHubStatus_createdBy(ctx context.Context, field return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_createdBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedBy, nil @@ -11551,21 +12392,39 @@ func (ec *executionContext) _ChaosHubStatus_updatedBy(ctx context.Context, field return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_updatedBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil @@ -11585,21 +12444,31 @@ func (ec *executionContext) _ChaosHubStatus_createdAt(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_createdAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedAt, nil @@ -11619,21 +12488,31 @@ func (ec *executionContext) _ChaosHubStatus_updatedAt(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_updatedAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil @@ -11650,21 +12529,31 @@ func (ec *executionContext) _ChaosHubStatus_description(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ChaosHubStatus", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsDefault, nil @@ -11684,21 +12573,31 @@ func (ec *executionContext) _ChaosHubStatus_isDefault(ctx context.Context, field return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ChaosHubStatus_isDefault(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Chart", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.APIVersion, nil @@ -11718,21 +12617,31 @@ func (ec *executionContext) _Chart_apiVersion(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Chart_apiVersion(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Chart", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Kind, nil @@ -11752,21 +12661,31 @@ func (ec *executionContext) _Chart_kind(ctx context.Context, field graphql.Colle return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Chart_kind(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Chart", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Metadata, nil @@ -11786,21 +12705,39 @@ func (ec *executionContext) _Chart_metadata(ctx context.Context, field graphql.C return ec.marshalNMetadata2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMetadata(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Chart_metadata(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Chart", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Spec, nil @@ -11820,21 +12757,59 @@ func (ec *executionContext) _Chart_spec(ctx context.Context, field graphql.Colle return ec.marshalNSpec2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐSpec(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Chart_spec(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Chart", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.PackageInfo, nil @@ -11854,21 +12829,37 @@ func (ec *executionContext) _Chart_packageInfo(ctx context.Context, field graphq return ec.marshalNPackageInformation2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPackageInformation(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Chart_packageInfo(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Comparator", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil @@ -11888,21 +12879,31 @@ func (ec *executionContext) _Comparator_type(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Comparator_type(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Comparator", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Value, nil @@ -11922,21 +12923,31 @@ func (ec *executionContext) _Comparator_value(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Comparator_value(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Comparator", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Criteria, nil @@ -11956,21 +12967,31 @@ func (ec *executionContext) _Comparator_criteria(ctx context.Context, field grap return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Comparator_criteria(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ConfirmInfraRegistrationResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsInfraConfirmed, nil @@ -11990,21 +13011,31 @@ func (ec *executionContext) _ConfirmInfraRegistrationResponse_isInfraConfirmed(c return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ConfirmInfraRegistrationResponse_isInfraConfirmed(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ConfirmInfraRegistrationResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.NewAccessKey, nil @@ -12021,21 +13052,31 @@ func (ec *executionContext) _ConfirmInfraRegistrationResponse_newAccessKey(ctx c return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ConfirmInfraRegistrationResponse_newAccessKey(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ConfirmInfraRegistrationResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InfraID, nil @@ -12052,21 +13093,31 @@ func (ec *executionContext) _ConfirmInfraRegistrationResponse_infraID(ctx contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ConfirmInfraRegistrationResponse_infraID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Environment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProjectID, nil @@ -12086,21 +13137,31 @@ func (ec *executionContext) _Environment_projectID(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Environment_projectID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Environment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.EnvironmentID, nil @@ -12120,21 +13181,31 @@ func (ec *executionContext) _Environment_environmentID(ctx context.Context, fiel return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Environment_environmentID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Environment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -12154,21 +13225,31 @@ func (ec *executionContext) _Environment_name(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Environment_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Environment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil @@ -12185,21 +13266,31 @@ func (ec *executionContext) _Environment_description(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Environment_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Environment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Tags, nil @@ -12216,21 +13307,31 @@ func (ec *executionContext) _Environment_tags(ctx context.Context, field graphql return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Environment_tags(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Environment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil @@ -12250,21 +13351,31 @@ func (ec *executionContext) _Environment_type(ctx context.Context, field graphql return ec.marshalNEnvironmentType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Environment_type(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Environment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil @@ -12284,21 +13395,31 @@ func (ec *executionContext) _Environment_createdAt(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Environment_createdAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Environment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedBy, nil @@ -12315,21 +13436,39 @@ func (ec *executionContext) _Environment_createdBy(ctx context.Context, field gr return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Environment_createdBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Environment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedBy, nil @@ -12346,21 +13485,39 @@ func (ec *executionContext) _Environment_updatedBy(ctx context.Context, field gr return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Environment_updatedBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Environment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedAt, nil @@ -12380,21 +13537,31 @@ func (ec *executionContext) _Environment_updatedAt(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Environment_updatedAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Environment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsRemoved, nil @@ -12411,21 +13578,31 @@ func (ec *executionContext) _Environment_isRemoved(ctx context.Context, field gr return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Environment_isRemoved(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Environment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InfraIDs, nil @@ -12442,21 +13619,31 @@ func (ec *executionContext) _Environment_infraIDs(ctx context.Context, field gra return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Environment_infraIDs(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExecutedByExperiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentID, nil @@ -12476,21 +13663,31 @@ func (ec *executionContext) _ExecutedByExperiment_experimentID(ctx context.Conte return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExecutedByExperiment_experimentID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExecutedByExperiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentName, nil @@ -12510,21 +13707,31 @@ func (ec *executionContext) _ExecutedByExperiment_experimentName(ctx context.Con return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExecutedByExperiment_experimentName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExecutedByExperiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedAt, nil @@ -12544,21 +13751,31 @@ func (ec *executionContext) _ExecutedByExperiment_updatedAt(ctx context.Context, return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExecutedByExperiment_updatedAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExecutedByExperiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedBy, nil @@ -12575,21 +13792,39 @@ func (ec *executionContext) _ExecutedByExperiment_updatedBy(ctx context.Context, return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExecutedByExperiment_updatedBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExecutionHistory", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Mode, nil @@ -12609,21 +13844,31 @@ func (ec *executionContext) _ExecutionHistory_mode(ctx context.Context, field gr return ec.marshalNMode2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMode(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExecutionHistory_mode(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExecutionHistory", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.FaultName, nil @@ -12643,21 +13888,31 @@ func (ec *executionContext) _ExecutionHistory_faultName(ctx context.Context, fie return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExecutionHistory_faultName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExecutionHistory", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Status, nil @@ -12677,21 +13932,37 @@ func (ec *executionContext) _ExecutionHistory_status(ctx context.Context, field return ec.marshalNStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐStatus(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExecutionHistory_status(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExecutionHistory", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExecutedByExperiment, nil @@ -12711,21 +13982,41 @@ func (ec *executionContext) _ExecutionHistory_executedByExperiment(ctx context.C return ec.marshalNExecutedByExperiment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExecutedByExperiment(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExecutionHistory_executedByExperiment(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProjectID, nil @@ -12745,21 +14036,31 @@ func (ec *executionContext) _Experiment_projectID(ctx context.Context, field gra return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_projectID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentID, nil @@ -12779,21 +14080,31 @@ func (ec *executionContext) _Experiment_experimentID(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_experimentID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentType, nil @@ -12810,21 +14121,31 @@ func (ec *executionContext) _Experiment_experimentType(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_experimentType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentManifest, nil @@ -12844,21 +14165,31 @@ func (ec *executionContext) _Experiment_experimentManifest(ctx context.Context, return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_experimentManifest(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CronSyntax, nil @@ -12878,21 +14209,31 @@ func (ec *executionContext) _Experiment_cronSyntax(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_cronSyntax(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -12912,21 +14253,31 @@ func (ec *executionContext) _Experiment_name(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil @@ -12946,21 +14297,31 @@ func (ec *executionContext) _Experiment_description(ctx context.Context, field g return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Weightages, nil @@ -12980,21 +14341,37 @@ func (ec *executionContext) _Experiment_weightages(ctx context.Context, field gr return ec.marshalNWeightages2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_weightages(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsCustomExperiment, nil @@ -13014,21 +14391,31 @@ func (ec *executionContext) _Experiment_isCustomExperiment(ctx context.Context, return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_isCustomExperiment(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedAt, nil @@ -13048,21 +14435,31 @@ func (ec *executionContext) _Experiment_updatedAt(ctx context.Context, field gra return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_updatedAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil @@ -13082,21 +14479,31 @@ func (ec *executionContext) _Experiment_createdAt(ctx context.Context, field gra return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_createdAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Infra, nil @@ -13113,21 +14520,87 @@ func (ec *executionContext) _Experiment_infra(ctx context.Context, field graphql return ec.marshalOInfra2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_infra(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsRemoved, nil @@ -13147,21 +14620,31 @@ func (ec *executionContext) _Experiment_isRemoved(ctx context.Context, field gra return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_isRemoved(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Tags, nil @@ -13178,21 +14661,31 @@ func (ec *executionContext) _Experiment_tags(ctx context.Context, field graphql. return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_tags(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedBy, nil @@ -13209,21 +14702,39 @@ func (ec *executionContext) _Experiment_createdBy(ctx context.Context, field gra return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_createdBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.RecentExperimentRunDetails, nil @@ -13240,21 +14751,49 @@ func (ec *executionContext) _Experiment_recentExperimentRunDetails(ctx context.C return ec.marshalORecentExperimentRun2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRecentExperimentRun(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_recentExperimentRunDetails(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiment", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedBy, nil @@ -13271,21 +14810,39 @@ func (ec *executionContext) _Experiment_updatedBy(ctx context.Context, field gra return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiment_updatedBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentDetails", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.EngineDetails, nil @@ -13305,21 +14862,31 @@ func (ec *executionContext) _ExperimentDetails_engineDetails(ctx context.Context return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentDetails_engineDetails(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentDetails", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentDetails, nil @@ -13339,21 +14906,31 @@ func (ec *executionContext) _ExperimentDetails_experimentDetails(ctx context.Con return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentDetails_experimentDetails(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProjectID, nil @@ -13373,21 +14950,31 @@ func (ec *executionContext) _ExperimentRun_projectID(ctx context.Context, field return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_projectID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentRunID, nil @@ -13407,21 +14994,31 @@ func (ec *executionContext) _ExperimentRun_experimentRunID(ctx context.Context, return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_experimentRunID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentType, nil @@ -13438,21 +15035,31 @@ func (ec *executionContext) _ExperimentRun_experimentType(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_experimentType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentID, nil @@ -13472,21 +15079,31 @@ func (ec *executionContext) _ExperimentRun_experimentID(ctx context.Context, fie return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_experimentID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Weightages, nil @@ -13506,21 +15123,37 @@ func (ec *executionContext) _ExperimentRun_weightages(ctx context.Context, field return ec.marshalNWeightages2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_weightages(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedAt, nil @@ -13540,21 +15173,31 @@ func (ec *executionContext) _ExperimentRun_updatedAt(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_updatedAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil @@ -13574,21 +15217,31 @@ func (ec *executionContext) _ExperimentRun_createdAt(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_createdAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Infra, nil @@ -13608,21 +15261,87 @@ func (ec *executionContext) _ExperimentRun_infra(ctx context.Context, field grap return ec.marshalNInfra2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_infra(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentName, nil @@ -13642,21 +15361,31 @@ func (ec *executionContext) _ExperimentRun_experimentName(ctx context.Context, f return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_experimentName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentManifest, nil @@ -13676,21 +15405,31 @@ func (ec *executionContext) _ExperimentRun_experimentManifest(ctx context.Contex return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_experimentManifest(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Phase, nil @@ -13710,21 +15449,31 @@ func (ec *executionContext) _ExperimentRun_phase(ctx context.Context, field grap return ec.marshalNExperimentRunStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunStatus(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_phase(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ResiliencyScore, nil @@ -13741,21 +15490,31 @@ func (ec *executionContext) _ExperimentRun_resiliencyScore(ctx context.Context, return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_resiliencyScore(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.FaultsPassed, nil @@ -13772,21 +15531,31 @@ func (ec *executionContext) _ExperimentRun_faultsPassed(ctx context.Context, fie return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_faultsPassed(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.FaultsFailed, nil @@ -13803,21 +15572,31 @@ func (ec *executionContext) _ExperimentRun_faultsFailed(ctx context.Context, fie return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_faultsFailed(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.FaultsAwaited, nil @@ -13834,21 +15613,31 @@ func (ec *executionContext) _ExperimentRun_faultsAwaited(ctx context.Context, fi return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_faultsAwaited(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.FaultsStopped, nil @@ -13865,21 +15654,31 @@ func (ec *executionContext) _ExperimentRun_faultsStopped(ctx context.Context, fi return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_faultsStopped(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.FaultsNa, nil @@ -13896,21 +15695,31 @@ func (ec *executionContext) _ExperimentRun_faultsNa(ctx context.Context, field g return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_faultsNa(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalFaults, nil @@ -13927,21 +15736,31 @@ func (ec *executionContext) _ExperimentRun_totalFaults(ctx context.Context, fiel return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_totalFaults(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExecutionData, nil @@ -13961,21 +15780,31 @@ func (ec *executionContext) _ExperimentRun_executionData(ctx context.Context, fi return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_executionData(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsRemoved, nil @@ -13992,21 +15821,31 @@ func (ec *executionContext) _ExperimentRun_isRemoved(ctx context.Context, field return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_isRemoved(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedBy, nil @@ -14023,21 +15862,39 @@ func (ec *executionContext) _ExperimentRun_updatedBy(ctx context.Context, field return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_updatedBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedBy, nil @@ -14054,21 +15911,39 @@ func (ec *executionContext) _ExperimentRun_createdBy(ctx context.Context, field return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_createdBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.NotifyID, nil @@ -14085,21 +15960,31 @@ func (ec *executionContext) _ExperimentRun_notifyID(ctx context.Context, field g return ec.marshalOID2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_notifyID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.RunSequence, nil @@ -14119,21 +16004,31 @@ func (ec *executionContext) _ExperimentRun_runSequence(ctx context.Context, fiel return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ExperimentRun_runSequence(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiments", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -14153,24 +16048,34 @@ func (ec *executionContext) _Experiments_name(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiments_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiments", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Csv, nil + return obj.CSV, nil }) if err != nil { ec.Error(ctx, err) @@ -14187,21 +16092,31 @@ func (ec *executionContext) _Experiments_CSV(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiments_CSV(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Experiments", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Desc, nil @@ -14221,21 +16136,31 @@ func (ec *executionContext) _Experiments_desc(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Experiments_desc(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "FaultDetails", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Fault, nil @@ -14255,21 +16180,31 @@ func (ec *executionContext) _FaultDetails_fault(ctx context.Context, field graph return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_FaultDetails_fault(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "FaultDetails", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Engine, nil @@ -14289,24 +16224,34 @@ func (ec *executionContext) _FaultDetails_engine(ctx context.Context, field grap return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_FaultDetails_engine(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "FaultDetails", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Csv, nil + return obj.CSV, nil }) if err != nil { ec.Error(ctx, err) @@ -14323,21 +16268,31 @@ func (ec *executionContext) _FaultDetails_csv(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_FaultDetails_csv(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "FaultList", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -14357,21 +16312,31 @@ func (ec *executionContext) _FaultList_name(ctx context.Context, field graphql.C return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_FaultList_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "FaultList", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.DisplayName, nil @@ -14391,21 +16356,31 @@ func (ec *executionContext) _FaultList_displayName(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_FaultList_displayName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "FaultList", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil @@ -14425,21 +16400,31 @@ func (ec *executionContext) _FaultList_description(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_FaultList_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "FaultList", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Plan, nil @@ -14456,21 +16441,31 @@ func (ec *executionContext) _FaultList_plan(ctx context.Context, field graphql.C return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_FaultList_plan(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GET", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Criteria, nil @@ -14490,21 +16485,31 @@ func (ec *executionContext) _GET_criteria(ctx context.Context, field graphql.Col return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GET_criteria(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GET", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ResponseCode, nil @@ -14524,21 +16529,31 @@ func (ec *executionContext) _GET_responseCode(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GET_responseCode(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetChaosHubStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalChaosHubs, nil @@ -14558,21 +16573,31 @@ func (ec *executionContext) _GetChaosHubStatsResponse_totalChaosHubs(ctx context return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) _GetExperimentResponse_experimentDetails(ctx context.Context, field graphql.CollectedField, obj *model.GetExperimentResponse) (ret graphql.Marshaler) { - defer func() { +func (ec *executionContext) fieldContext_GetChaosHubStatsResponse_totalChaosHubs(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetExperimentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentDetails, nil @@ -14592,21 +16617,67 @@ func (ec *executionContext) _GetExperimentResponse_experimentDetails(ctx context return ec.marshalNExperiment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiment(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetExperimentResponse_experimentDetails(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetExperimentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.AverageResiliencyScore, nil @@ -14623,21 +16694,31 @@ func (ec *executionContext) _GetExperimentResponse_averageResiliencyScore(ctx co return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetExperimentResponse_averageResiliencyScore(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetExperimentRunStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalExperimentRuns, nil @@ -14657,21 +16738,31 @@ func (ec *executionContext) _GetExperimentRunStatsResponse_totalExperimentRuns(c return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetExperimentRunStatsResponse_totalExperimentRuns(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetExperimentRunStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalCompletedExperimentRuns, nil @@ -14691,21 +16782,31 @@ func (ec *executionContext) _GetExperimentRunStatsResponse_totalCompletedExperim return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetExperimentRunStatsResponse_totalCompletedExperimentRuns(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetExperimentRunStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalTerminatedExperimentRuns, nil @@ -14725,21 +16826,31 @@ func (ec *executionContext) _GetExperimentRunStatsResponse_totalTerminatedExperi return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetExperimentRunStatsResponse_totalTerminatedExperimentRuns(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetExperimentRunStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalRunningExperimentRuns, nil @@ -14759,21 +16870,31 @@ func (ec *executionContext) _GetExperimentRunStatsResponse_totalRunningExperimen return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetExperimentRunStatsResponse_totalRunningExperimentRuns(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetExperimentRunStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalStoppedExperimentRuns, nil @@ -14793,21 +16914,31 @@ func (ec *executionContext) _GetExperimentRunStatsResponse_totalStoppedExperimen return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetExperimentRunStatsResponse_totalStoppedExperimentRuns(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetExperimentRunStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalErroredExperimentRuns, nil @@ -14827,21 +16958,31 @@ func (ec *executionContext) _GetExperimentRunStatsResponse_totalErroredExperimen return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetExperimentRunStatsResponse_totalErroredExperimentRuns(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetExperimentStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalExperiments, nil @@ -14861,21 +17002,31 @@ func (ec *executionContext) _GetExperimentStatsResponse_totalExperiments(ctx con return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetExperimentStatsResponse_totalExperiments(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetExperimentStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalExpCategorizedByResiliencyScore, nil @@ -14895,21 +17046,37 @@ func (ec *executionContext) _GetExperimentStatsResponse_totalExpCategorizedByRes return ec.marshalNResilienceScoreCategory2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐResilienceScoreCategory(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetExperimentStatsResponse_totalExpCategorizedByResiliencyScore(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetInfraStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalInfrastructures, nil @@ -14929,21 +17096,31 @@ func (ec *executionContext) _GetInfraStatsResponse_totalInfrastructures(ctx cont return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetInfraStatsResponse_totalInfrastructures(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetInfraStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalActiveInfrastructure, nil @@ -14963,21 +17140,31 @@ func (ec *executionContext) _GetInfraStatsResponse_totalActiveInfrastructure(ctx return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetInfraStatsResponse_totalActiveInfrastructure(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetInfraStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalInactiveInfrastructures, nil @@ -14997,21 +17184,31 @@ func (ec *executionContext) _GetInfraStatsResponse_totalInactiveInfrastructures( return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetInfraStatsResponse_totalInactiveInfrastructures(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetInfraStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalConfirmedInfrastructure, nil @@ -15031,21 +17228,31 @@ func (ec *executionContext) _GetInfraStatsResponse_totalConfirmedInfrastructure( return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetInfraStatsResponse_totalConfirmedInfrastructure(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetInfraStatsResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalNonConfirmedInfrastructures, nil @@ -15065,21 +17272,31 @@ func (ec *executionContext) _GetInfraStatsResponse_totalNonConfirmedInfrastructu return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetInfraStatsResponse_totalNonConfirmedInfrastructures(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetProbeReferenceResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProjectID, nil @@ -15099,21 +17316,31 @@ func (ec *executionContext) _GetProbeReferenceResponse_projectID(ctx context.Con return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetProbeReferenceResponse_projectID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetProbeReferenceResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -15133,21 +17360,31 @@ func (ec *executionContext) _GetProbeReferenceResponse_name(ctx context.Context, return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetProbeReferenceResponse_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetProbeReferenceResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalRuns, nil @@ -15167,21 +17404,31 @@ func (ec *executionContext) _GetProbeReferenceResponse_totalRuns(ctx context.Con return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetProbeReferenceResponse_totalRuns(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetProbeReferenceResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.RecentExecutions, nil @@ -15201,21 +17448,39 @@ func (ec *executionContext) _GetProbeReferenceResponse_recentExecutions(ctx cont return ec.marshalNRecentExecutions2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRecentExecutions(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetProbeReferenceResponse_recentExecutions(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetProbesInExperimentRunResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Probe, nil @@ -15235,21 +17500,65 @@ func (ec *executionContext) _GetProbesInExperimentRunResponse_probe(ctx context. return ec.marshalNProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbe(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetProbesInExperimentRunResponse_probe(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetProbesInExperimentRunResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Mode, nil @@ -15269,21 +17578,31 @@ func (ec *executionContext) _GetProbesInExperimentRunResponse_mode(ctx context.C return ec.marshalNMode2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMode(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetProbesInExperimentRunResponse_mode(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GetProbesInExperimentRunResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Status, nil @@ -15303,21 +17622,37 @@ func (ec *executionContext) _GetProbesInExperimentRunResponse_status(ctx context return ec.marshalNStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐStatus(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GetProbesInExperimentRunResponse_status(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GitConfigResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Enabled, nil @@ -15337,21 +17672,31 @@ func (ec *executionContext) _GitConfigResponse_enabled(ctx context.Context, fiel return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GitConfigResponse_enabled(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GitConfigResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProjectID, nil @@ -15371,21 +17716,31 @@ func (ec *executionContext) _GitConfigResponse_projectID(ctx context.Context, fi return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GitConfigResponse_projectID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GitConfigResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Branch, nil @@ -15402,21 +17757,31 @@ func (ec *executionContext) _GitConfigResponse_branch(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GitConfigResponse_branch(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GitConfigResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.RepoURL, nil @@ -15433,21 +17798,31 @@ func (ec *executionContext) _GitConfigResponse_repoURL(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GitConfigResponse_repoURL(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GitConfigResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.AuthType, nil @@ -15464,21 +17839,31 @@ func (ec *executionContext) _GitConfigResponse_authType(ctx context.Context, fie return ec.marshalOAuthType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GitConfigResponse_authType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GitConfigResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Token, nil @@ -15495,21 +17880,31 @@ func (ec *executionContext) _GitConfigResponse_token(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GitConfigResponse_token(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GitConfigResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UserName, nil @@ -15526,21 +17921,31 @@ func (ec *executionContext) _GitConfigResponse_userName(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GitConfigResponse_userName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GitConfigResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Password, nil @@ -15557,21 +17962,31 @@ func (ec *executionContext) _GitConfigResponse_password(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GitConfigResponse_password(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "GitConfigResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.SSHPrivateKey, nil @@ -15588,21 +18003,31 @@ func (ec *executionContext) _GitConfigResponse_sshPrivateKey(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_GitConfigResponse_sshPrivateKey(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistry", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsDefault, nil @@ -15619,21 +18044,31 @@ func (ec *executionContext) _ImageRegistry_isDefault(ctx context.Context, field return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistry_isDefault(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistry", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ImageRegistryName, nil @@ -15653,21 +18088,31 @@ func (ec *executionContext) _ImageRegistry_imageRegistryName(ctx context.Context return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistry_imageRegistryName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistry", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ImageRepoName, nil @@ -15687,21 +18132,31 @@ func (ec *executionContext) _ImageRegistry_imageRepoName(ctx context.Context, fi return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistry_imageRepoName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistry", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ImageRegistryType, nil @@ -15721,21 +18176,31 @@ func (ec *executionContext) _ImageRegistry_imageRegistryType(ctx context.Context return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistry_imageRegistryType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistry", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.SecretName, nil @@ -15752,21 +18217,31 @@ func (ec *executionContext) _ImageRegistry_secretName(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistry_secretName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistry", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.SecretNamespace, nil @@ -15783,21 +18258,31 @@ func (ec *executionContext) _ImageRegistry_secretNamespace(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistry_secretNamespace(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistry", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.EnableRegistry, nil @@ -15814,21 +18299,31 @@ func (ec *executionContext) _ImageRegistry_enableRegistry(ctx context.Context, f return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistry_enableRegistry(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistryResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsDefault, nil @@ -15848,21 +18343,31 @@ func (ec *executionContext) _ImageRegistryResponse_isDefault(ctx context.Context return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistryResponse_isDefault(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistryResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ImageRegistryInfo, nil @@ -15879,21 +18384,47 @@ func (ec *executionContext) _ImageRegistryResponse_imageRegistryInfo(ctx context return ec.marshalOImageRegistry2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistry(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistryResponse_imageRegistryInfo(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistryResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ImageRegistryID, nil @@ -15913,21 +18444,31 @@ func (ec *executionContext) _ImageRegistryResponse_imageRegistryID(ctx context.C return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistryResponse_imageRegistryID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistryResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProjectID, nil @@ -15947,21 +18488,31 @@ func (ec *executionContext) _ImageRegistryResponse_projectID(ctx context.Context return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistryResponse_projectID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistryResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedAt, nil @@ -15978,21 +18529,31 @@ func (ec *executionContext) _ImageRegistryResponse_updatedAt(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistryResponse_updatedAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistryResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil @@ -16009,21 +18570,31 @@ func (ec *executionContext) _ImageRegistryResponse_createdAt(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistryResponse_createdAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistryResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedBy, nil @@ -16040,21 +18611,39 @@ func (ec *executionContext) _ImageRegistryResponse_createdBy(ctx context.Context return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistryResponse_createdBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistryResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedBy, nil @@ -16071,21 +18660,39 @@ func (ec *executionContext) _ImageRegistryResponse_updatedBy(ctx context.Context return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistryResponse_updatedBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ImageRegistryResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsRemoved, nil @@ -16102,21 +18709,31 @@ func (ec *executionContext) _ImageRegistryResponse_isRemoved(ctx context.Context return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ImageRegistryResponse_isRemoved(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProjectID, nil @@ -16136,21 +18753,31 @@ func (ec *executionContext) _Infra_projectID(ctx context.Context, field graphql. return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_projectID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InfraID, nil @@ -16170,21 +18797,31 @@ func (ec *executionContext) _Infra_infraID(ctx context.Context, field graphql.Co return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_infraID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -16204,21 +18841,31 @@ func (ec *executionContext) _Infra_name(ctx context.Context, field graphql.Colle return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil @@ -16235,21 +18882,31 @@ func (ec *executionContext) _Infra_description(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Tags, nil @@ -16266,21 +18923,31 @@ func (ec *executionContext) _Infra_tags(ctx context.Context, field graphql.Colle return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_tags(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.EnvironmentID, nil @@ -16300,21 +18967,31 @@ func (ec *executionContext) _Infra_environmentID(ctx context.Context, field grap return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_environmentID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.PlatformName, nil @@ -16334,21 +19011,31 @@ func (ec *executionContext) _Infra_platformName(ctx context.Context, field graph return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_platformName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsActive, nil @@ -16368,21 +19055,31 @@ func (ec *executionContext) _Infra_isActive(ctx context.Context, field graphql.C return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_isActive(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsInfraConfirmed, nil @@ -16402,21 +19099,31 @@ func (ec *executionContext) _Infra_isInfraConfirmed(ctx context.Context, field g return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_isInfraConfirmed(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsRemoved, nil @@ -16436,21 +19143,31 @@ func (ec *executionContext) _Infra_isRemoved(ctx context.Context, field graphql. return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_isRemoved(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedAt, nil @@ -16470,21 +19187,31 @@ func (ec *executionContext) _Infra_updatedAt(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_updatedAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil @@ -16504,21 +19231,31 @@ func (ec *executionContext) _Infra_createdAt(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_createdAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.NoOfExperiments, nil @@ -16535,21 +19272,31 @@ func (ec *executionContext) _Infra_noOfExperiments(ctx context.Context, field gr return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_noOfExperiments(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.NoOfExperimentRuns, nil @@ -16566,21 +19313,31 @@ func (ec *executionContext) _Infra_noOfExperimentRuns(ctx context.Context, field return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_noOfExperimentRuns(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Token, nil @@ -16600,21 +19357,31 @@ func (ec *executionContext) _Infra_token(ctx context.Context, field graphql.Coll return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_token(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InfraNamespace, nil @@ -16631,21 +19398,31 @@ func (ec *executionContext) _Infra_infraNamespace(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_infraNamespace(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ServiceAccount, nil @@ -16662,21 +19439,31 @@ func (ec *executionContext) _Infra_serviceAccount(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_serviceAccount(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InfraScope, nil @@ -16696,21 +19483,31 @@ func (ec *executionContext) _Infra_infraScope(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_infraScope(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InfraNsExists, nil @@ -16727,21 +19524,31 @@ func (ec *executionContext) _Infra_infraNsExists(ctx context.Context, field grap return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_infraNsExists(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InfraSaExists, nil @@ -16758,21 +19565,31 @@ func (ec *executionContext) _Infra_infraSaExists(ctx context.Context, field grap return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_infraSaExists(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.LastExperimentTimestamp, nil @@ -16789,21 +19606,31 @@ func (ec *executionContext) _Infra_lastExperimentTimestamp(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_lastExperimentTimestamp(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.StartTime, nil @@ -16823,21 +19650,31 @@ func (ec *executionContext) _Infra_startTime(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_startTime(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Version, nil @@ -16857,21 +19694,31 @@ func (ec *executionContext) _Infra_version(ctx context.Context, field graphql.Co return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_version(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedBy, nil @@ -16888,21 +19735,39 @@ func (ec *executionContext) _Infra_createdBy(ctx context.Context, field graphql. return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_createdBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedBy, nil @@ -16919,21 +19784,39 @@ func (ec *executionContext) _Infra_updatedBy(ctx context.Context, field graphql. return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_updatedBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InfraType, nil @@ -16950,21 +19833,31 @@ func (ec *executionContext) _Infra_infraType(ctx context.Context, field graphql. return ec.marshalOInfrastructureType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_infraType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Infra", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdateStatus, nil @@ -16984,21 +19877,31 @@ func (ec *executionContext) _Infra_updateStatus(ctx context.Context, field graph return ec.marshalNUpdateStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUpdateStatus(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Infra_updateStatus(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "InfraActionResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProjectID, nil @@ -17018,21 +19921,31 @@ func (ec *executionContext) _InfraActionResponse_projectID(ctx context.Context, return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_InfraActionResponse_projectID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "InfraActionResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Action, nil @@ -17052,21 +19965,45 @@ func (ec *executionContext) _InfraActionResponse_action(ctx context.Context, fie return ec.marshalNActionPayload2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐActionPayload(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_InfraActionResponse_action(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "InfraEventResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.EventID, nil @@ -17086,21 +20023,31 @@ func (ec *executionContext) _InfraEventResponse_eventID(ctx context.Context, fie return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_InfraEventResponse_eventID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "InfraEventResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.EventType, nil @@ -17120,21 +20067,31 @@ func (ec *executionContext) _InfraEventResponse_eventType(ctx context.Context, f return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_InfraEventResponse_eventType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "InfraEventResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.EventName, nil @@ -17154,21 +20111,31 @@ func (ec *executionContext) _InfraEventResponse_eventName(ctx context.Context, f return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_InfraEventResponse_eventName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "InfraEventResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil @@ -17188,21 +20155,31 @@ func (ec *executionContext) _InfraEventResponse_description(ctx context.Context, return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_InfraEventResponse_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "InfraEventResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Infra, nil @@ -17222,21 +20199,87 @@ func (ec *executionContext) _InfraEventResponse_infra(ctx context.Context, field return ec.marshalNInfra2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_InfraEventResponse_infra(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "InfraVersionDetails", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.LatestVersion, nil @@ -17256,21 +20299,31 @@ func (ec *executionContext) _InfraVersionDetails_latestVersion(ctx context.Conte return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_InfraVersionDetails_latestVersion(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "InfraVersionDetails", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CompatibleVersions, nil @@ -17290,21 +20343,31 @@ func (ec *executionContext) _InfraVersionDetails_compatibleVersions(ctx context. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_InfraVersionDetails_compatibleVersions(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProbeTimeout, nil @@ -17324,21 +20387,31 @@ func (ec *executionContext) _K8SProbe_probeTimeout(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_probeTimeout(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Interval, nil @@ -17358,21 +20431,31 @@ func (ec *executionContext) _K8SProbe_interval(ctx context.Context, field graphq return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_interval(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Retry, nil @@ -17389,21 +20472,31 @@ func (ec *executionContext) _K8SProbe_retry(ctx context.Context, field graphql.C return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_retry(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Attempt, nil @@ -17420,21 +20513,31 @@ func (ec *executionContext) _K8SProbe_attempt(ctx context.Context, field graphql return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_attempt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProbePollingInterval, nil @@ -17451,21 +20554,31 @@ func (ec *executionContext) _K8SProbe_probePollingInterval(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_probePollingInterval(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InitialDelay, nil @@ -17482,21 +20595,31 @@ func (ec *executionContext) _K8SProbe_initialDelay(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_initialDelay(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.EvaluationTimeout, nil @@ -17513,21 +20636,31 @@ func (ec *executionContext) _K8SProbe_evaluationTimeout(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_evaluationTimeout(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.StopOnFailure, nil @@ -17544,21 +20677,31 @@ func (ec *executionContext) _K8SProbe_stopOnFailure(ctx context.Context, field g return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_stopOnFailure(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Group, nil @@ -17575,21 +20718,31 @@ func (ec *executionContext) _K8SProbe_group(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_group(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Version, nil @@ -17609,21 +20762,31 @@ func (ec *executionContext) _K8SProbe_version(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_version(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Resource, nil @@ -17643,21 +20806,31 @@ func (ec *executionContext) _K8SProbe_resource(ctx context.Context, field graphq return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_resource(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Namespace, nil @@ -17674,21 +20847,31 @@ func (ec *executionContext) _K8SProbe_namespace(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_namespace(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ResourceNames, nil @@ -17705,21 +20888,31 @@ func (ec *executionContext) _K8SProbe_resourceNames(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_resourceNames(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.FieldSelector, nil @@ -17736,21 +20929,31 @@ func (ec *executionContext) _K8SProbe_fieldSelector(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_fieldSelector(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.LabelSelector, nil @@ -17767,21 +20970,31 @@ func (ec *executionContext) _K8SProbe_labelSelector(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_labelSelector(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "K8SProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Operation, nil @@ -17801,21 +21014,31 @@ func (ec *executionContext) _K8SProbe_operation(ctx context.Context, field graph return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_K8SProbe_operation(ctx 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) _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 } }() - fc := &graphql.FieldContext{ - Object: "KubeObject", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Namespace, nil @@ -17835,21 +21058,31 @@ func (ec *executionContext) _KubeObject_namespace(ctx context.Context, field gra return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubeObject_namespace(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubeObject", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Data, nil @@ -17869,21 +21102,37 @@ func (ec *executionContext) _KubeObject_data(ctx context.Context, field graphql. return ec.marshalNObjectData2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐObjectData(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubeObject_data(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubeObjectResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InfraID, nil @@ -17903,21 +21152,31 @@ func (ec *executionContext) _KubeObjectResponse_infraID(ctx context.Context, fie return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubeObjectResponse_infraID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubeObjectResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.KubeObj, nil @@ -17937,21 +21196,37 @@ func (ec *executionContext) _KubeObjectResponse_kubeObj(ctx context.Context, fie return ec.marshalNKubeObject2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObject(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubeObjectResponse_kubeObj(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesCMDProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProbeTimeout, nil @@ -17971,21 +21246,31 @@ func (ec *executionContext) _KubernetesCMDProbe_probeTimeout(ctx context.Context return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesCMDProbe_probeTimeout(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesCMDProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Interval, nil @@ -18005,21 +21290,31 @@ func (ec *executionContext) _KubernetesCMDProbe_interval(ctx context.Context, fi return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesCMDProbe_interval(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesCMDProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Retry, nil @@ -18036,21 +21331,31 @@ func (ec *executionContext) _KubernetesCMDProbe_retry(ctx context.Context, field return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesCMDProbe_retry(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesCMDProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Attempt, nil @@ -18067,21 +21372,31 @@ func (ec *executionContext) _KubernetesCMDProbe_attempt(ctx context.Context, fie return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesCMDProbe_attempt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesCMDProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProbePollingInterval, nil @@ -18098,21 +21413,31 @@ func (ec *executionContext) _KubernetesCMDProbe_probePollingInterval(ctx context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesCMDProbe_probePollingInterval(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesCMDProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InitialDelay, nil @@ -18129,21 +21454,31 @@ func (ec *executionContext) _KubernetesCMDProbe_initialDelay(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesCMDProbe_initialDelay(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesCMDProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.EvaluationTimeout, nil @@ -18160,21 +21495,31 @@ func (ec *executionContext) _KubernetesCMDProbe_evaluationTimeout(ctx context.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesCMDProbe_evaluationTimeout(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesCMDProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.StopOnFailure, nil @@ -18191,21 +21536,31 @@ func (ec *executionContext) _KubernetesCMDProbe_stopOnFailure(ctx context.Contex return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesCMDProbe_stopOnFailure(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesCMDProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Command, nil @@ -18225,21 +21580,31 @@ func (ec *executionContext) _KubernetesCMDProbe_command(ctx context.Context, fie return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesCMDProbe_command(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesCMDProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Comparator, nil @@ -18259,21 +21624,39 @@ func (ec *executionContext) _KubernetesCMDProbe_comparator(ctx context.Context, return ec.marshalNComparator2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparator(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesCMDProbe_comparator(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesCMDProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Source, nil @@ -18290,21 +21673,31 @@ func (ec *executionContext) _KubernetesCMDProbe_source(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesCMDProbe_source(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesHTTPProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProbeTimeout, nil @@ -18324,21 +21717,31 @@ func (ec *executionContext) _KubernetesHTTPProbe_probeTimeout(ctx context.Contex return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesHTTPProbe_probeTimeout(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesHTTPProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Interval, nil @@ -18358,21 +21761,31 @@ func (ec *executionContext) _KubernetesHTTPProbe_interval(ctx context.Context, f return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesHTTPProbe_interval(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesHTTPProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Retry, nil @@ -18389,21 +21802,31 @@ func (ec *executionContext) _KubernetesHTTPProbe_retry(ctx context.Context, fiel return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesHTTPProbe_retry(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesHTTPProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Attempt, nil @@ -18420,21 +21843,31 @@ func (ec *executionContext) _KubernetesHTTPProbe_attempt(ctx context.Context, fi return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesHTTPProbe_attempt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesHTTPProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProbePollingInterval, nil @@ -18451,21 +21884,31 @@ func (ec *executionContext) _KubernetesHTTPProbe_probePollingInterval(ctx contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesHTTPProbe_probePollingInterval(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesHTTPProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InitialDelay, nil @@ -18482,21 +21925,31 @@ func (ec *executionContext) _KubernetesHTTPProbe_initialDelay(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesHTTPProbe_initialDelay(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesHTTPProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.EvaluationTimeout, nil @@ -18513,21 +21966,31 @@ func (ec *executionContext) _KubernetesHTTPProbe_evaluationTimeout(ctx context.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesHTTPProbe_evaluationTimeout(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesHTTPProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.StopOnFailure, nil @@ -18544,21 +22007,31 @@ func (ec *executionContext) _KubernetesHTTPProbe_stopOnFailure(ctx context.Conte return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesHTTPProbe_stopOnFailure(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesHTTPProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.URL, nil @@ -18578,21 +22051,31 @@ func (ec *executionContext) _KubernetesHTTPProbe_url(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesHTTPProbe_url(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesHTTPProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Method, nil @@ -18612,21 +22095,37 @@ func (ec *executionContext) _KubernetesHTTPProbe_method(ctx context.Context, fie return ec.marshalNMethod2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMethod(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesHTTPProbe_method(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "KubernetesHTTPProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InsecureSkipVerify, nil @@ -18643,21 +22142,31 @@ func (ec *executionContext) _KubernetesHTTPProbe_insecureSkipVerify(ctx context. return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_KubernetesHTTPProbe_insecureSkipVerify(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Link", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -18677,21 +22186,31 @@ func (ec *executionContext) _Link_name(ctx context.Context, field graphql.Collec return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Link_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Link", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.URL, nil @@ -18711,21 +22230,31 @@ func (ec *executionContext) _Link_url(ctx context.Context, field graphql.Collect return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Link_url(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ListEnvironmentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalNoOfEnvironments, nil @@ -18745,21 +22274,31 @@ func (ec *executionContext) _ListEnvironmentResponse_totalNoOfEnvironments(ctx c return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ListEnvironmentResponse_totalNoOfEnvironments(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ListEnvironmentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Environments, nil @@ -18776,21 +22315,57 @@ func (ec *executionContext) _ListEnvironmentResponse_environments(ctx context.Co return ec.marshalOEnvironment2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironment(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ListEnvironmentResponse_environments(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ListExperimentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalNoOfExperiments, nil @@ -18810,21 +22385,31 @@ func (ec *executionContext) _ListExperimentResponse_totalNoOfExperiments(ctx con return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ListExperimentResponse_totalNoOfExperiments(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ListExperimentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Experiments, nil @@ -18844,21 +22429,67 @@ func (ec *executionContext) _ListExperimentResponse_experiments(ctx context.Cont return ec.marshalNExperiment2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiment(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ListExperimentResponse_experiments(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ListExperimentRunResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalNoOfExperimentRuns, nil @@ -18878,21 +22509,31 @@ func (ec *executionContext) _ListExperimentRunResponse_totalNoOfExperimentRuns(c return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ListExperimentRunResponse_totalNoOfExperimentRuns(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ListExperimentRunResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentRuns, nil @@ -18912,21 +22553,81 @@ func (ec *executionContext) _ListExperimentRunResponse_experimentRuns(ctx contex return ec.marshalNExperimentRun2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRun(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ListExperimentRunResponse_experimentRuns(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ListInfraResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.TotalNoOfInfras, nil @@ -18946,21 +22647,31 @@ func (ec *executionContext) _ListInfraResponse_totalNoOfInfras(ctx context.Conte return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ListInfraResponse_totalNoOfInfras(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ListInfraResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Infras, nil @@ -18980,21 +22691,87 @@ func (ec *executionContext) _ListInfraResponse_infras(ctx context.Context, field return ec.marshalNInfra2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfra(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ListInfraResponse_infras(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Maintainer", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -19014,21 +22791,31 @@ func (ec *executionContext) _Maintainer_name(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Maintainer_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Maintainer", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Email, nil @@ -19048,21 +22835,31 @@ func (ec *executionContext) _Maintainer_email(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Maintainer_email(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Metadata", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -19082,21 +22879,31 @@ func (ec *executionContext) _Metadata_name(ctx context.Context, field graphql.Co return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Metadata_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Metadata", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _Metadata_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 } }() - fc := &graphql.FieldContext{ - Object: "Metadata", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Version, nil @@ -19116,21 +22923,31 @@ func (ec *executionContext) _Metadata_version(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Metadata_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Metadata", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _Metadata_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 } }() - fc := &graphql.FieldContext{ - Object: "Metadata", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Annotations, nil @@ -19150,21 +22967,45 @@ func (ec *executionContext) _Metadata_annotations(ctx context.Context, field gra return ec.marshalNAnnotation2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAnnotation(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Metadata_annotations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Metadata", + Field: field, + IsMethod: 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 } }() - fc := &graphql.FieldContext{ - Object: "Method", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Get, nil @@ -19181,21 +23022,37 @@ func (ec *executionContext) _Method_get(ctx context.Context, field graphql.Colle return ec.marshalOGET2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGet(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Method_get(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Method", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Post, nil @@ -19212,31 +23069,46 @@ func (ec *executionContext) _Method_post(ctx context.Context, field graphql.Coll return ec.marshalOPOST2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPost(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Method_post(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_createChaosExperiment_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["request"].(model.ChaosExperimentRequest), args["projectID"].(string)) + return ec.resolvers.Mutation().CreateChaosExperiment(rctx, fc.Args["request"].(model.ChaosExperimentRequest), fc.Args["projectID"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -19253,31 +23125,61 @@ func (ec *executionContext) _Mutation_createChaosExperiment(ctx context.Context, return ec.marshalNChaosExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_saveChaosExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_saveChaosExperiment_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["request"].(model.SaveChaosExperimentRequest), args["projectID"].(string)) + return ec.resolvers.Mutation().SaveChaosExperiment(rctx, fc.Args["request"].(model.SaveChaosExperimentRequest), fc.Args["projectID"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -19294,31 +23196,45 @@ func (ec *executionContext) _Mutation_saveChaosExperiment(ctx context.Context, f return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_updateChaosExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_updateChaosExperiment_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["request"].(*model.ChaosExperimentRequest), args["projectID"].(string)) + return ec.resolvers.Mutation().UpdateChaosExperiment(rctx, fc.Args["request"].(*model.ChaosExperimentRequest), fc.Args["projectID"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -19335,31 +23251,61 @@ func (ec *executionContext) _Mutation_updateChaosExperiment(ctx context.Context, return ec.marshalNChaosExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_deleteChaosExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_deleteChaosExperiment_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["experimentID"].(string), args["experimentRunID"].(*string), args["projectID"].(string)) + 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) @@ -19376,32 +23322,46 @@ func (ec *executionContext) _Mutation_deleteChaosExperiment(ctx context.Context, return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_updateCronExperimentState(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_updateCronExperimentState_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["experimentID"].(string), args["disable"].(bool), args["projectID"].(string)) + 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 { @@ -19412,7 +23372,7 @@ func (ec *executionContext) _Mutation_updateCronExperimentState(ctx context.Cont tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -19437,31 +23397,45 @@ func (ec *executionContext) _Mutation_updateCronExperimentState(ctx context.Cont return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_chaosExperimentRun(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_chaosExperimentRun_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["request"].(model.ExperimentRunRequest)) + return ec.resolvers.Mutation().ChaosExperimentRun(rctx, fc.Args["request"].(model.ExperimentRunRequest)) }) if err != nil { ec.Error(ctx, err) @@ -19478,31 +23452,45 @@ func (ec *executionContext) _Mutation_chaosExperimentRun(ctx context.Context, fi return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_runChaosExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_runChaosExperiment_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["experimentID"].(string), args["projectID"].(string)) + return ec.resolvers.Mutation().RunChaosExperiment(rctx, fc.Args["experimentID"].(string), fc.Args["projectID"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -19519,32 +23507,50 @@ func (ec *executionContext) _Mutation_runChaosExperiment(ctx context.Context, fi return ec.marshalNRunChaosExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRunChaosExperimentResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_stopExperimentRuns(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_stopExperimentRuns_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["experimentID"].(string), args["experimentRunID"].(*string), args["notifyID"].(*string)) + 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 { @@ -19555,7 +23561,7 @@ func (ec *executionContext) _Mutation_stopExperimentRuns(ctx context.Context, fi tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -19580,31 +23586,45 @@ func (ec *executionContext) _Mutation_stopExperimentRuns(ctx context.Context, fi return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_registerInfra(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_registerInfra_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["projectID"].(string), args["request"].(model.RegisterInfraRequest)) + return ec.resolvers.Mutation().RegisterInfra(rctx, fc.Args["projectID"].(string), fc.Args["request"].(model.RegisterInfraRequest)) }) if err != nil { ec.Error(ctx, err) @@ -19621,31 +23641,55 @@ func (ec *executionContext) _Mutation_registerInfra(ctx context.Context, field g return ec.marshalNRegisterInfraResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRegisterInfraResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_confirmInfraRegistration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_confirmInfraRegistration_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["request"].(model.InfraIdentity)) + return ec.resolvers.Mutation().ConfirmInfraRegistration(rctx, fc.Args["request"].(model.InfraIdentity)) }) if err != nil { ec.Error(ctx, err) @@ -19662,32 +23706,54 @@ func (ec *executionContext) _Mutation_confirmInfraRegistration(ctx context.Conte return ec.marshalNConfirmInfraRegistrationResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐConfirmInfraRegistrationResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_deleteInfra(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_deleteInfra_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["infraID"].(string)) + 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 { @@ -19698,7 +23764,7 @@ func (ec *executionContext) _Mutation_deleteInfra(ctx context.Context, field gra tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -19723,31 +23789,45 @@ func (ec *executionContext) _Mutation_deleteInfra(ctx context.Context, field gra return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_getManifestWithInfraID(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_getManifestWithInfraID_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["projectID"].(string), args["infraID"].(string), args["accessKey"].(string)) + 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) @@ -19764,31 +23844,45 @@ func (ec *executionContext) _Mutation_getManifestWithInfraID(ctx context.Context return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_podLog(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_podLog_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["request"].(model.PodLog)) + return ec.resolvers.Mutation().PodLog(rctx, fc.Args["request"].(model.PodLog)) }) if err != nil { ec.Error(ctx, err) @@ -19805,31 +23899,45 @@ func (ec *executionContext) _Mutation_podLog(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_kubeObj(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_kubeObj_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["request"].(model.KubeObjectData)) + return ec.resolvers.Mutation().KubeObj(rctx, fc.Args["request"].(model.KubeObjectData)) }) if err != nil { ec.Error(ctx, err) @@ -19846,32 +23954,46 @@ func (ec *executionContext) _Mutation_kubeObj(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_addChaosHub(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_addChaosHub_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["request"].(model.CreateChaosHubRequest)) + 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 { @@ -19882,7 +24004,7 @@ func (ec *executionContext) _Mutation_addChaosHub(ctx context.Context, field gra tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -19907,32 +24029,90 @@ func (ec *executionContext) _Mutation_addChaosHub(ctx context.Context, field gra 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 "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 } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_addRemoteChaosHub_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["projectID"].(string), args["request"].(model.CreateRemoteChaosHub)) + 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 { @@ -19943,7 +24123,7 @@ func (ec *executionContext) _Mutation_addRemoteChaosHub(ctx context.Context, fie tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -19968,32 +24148,90 @@ func (ec *executionContext) _Mutation_addRemoteChaosHub(ctx context.Context, fie 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 "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 } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_saveChaosHub_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["projectID"].(string), args["request"].(model.CreateChaosHubRequest)) + 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 { @@ -20004,7 +24242,7 @@ func (ec *executionContext) _Mutation_saveChaosHub(ctx context.Context, field gr tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20029,32 +24267,90 @@ func (ec *executionContext) _Mutation_saveChaosHub(ctx context.Context, field gr 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 "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 } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_syncChaosHub_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["id"].(string), args["projectID"].(string)) + 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 { @@ -20065,7 +24361,7 @@ func (ec *executionContext) _Mutation_syncChaosHub(ctx context.Context, field gr tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20090,21 +24386,42 @@ func (ec *executionContext) _Mutation_syncChaosHub(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_generateSSHKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 @@ -20119,7 +24436,7 @@ func (ec *executionContext) _Mutation_generateSSHKey(ctx context.Context, field tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20144,32 +24461,41 @@ func (ec *executionContext) _Mutation_generateSSHKey(ctx context.Context, field return ec.marshalNSSHKey2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐSSHKey(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Mutation_generateSSHKey(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 "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 } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_updateChaosHub_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["projectID"].(string), args["request"].(model.UpdateChaosHubRequest)) + 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 { @@ -20180,7 +24506,7 @@ func (ec *executionContext) _Mutation_updateChaosHub(ctx context.Context, field tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20205,32 +24531,90 @@ func (ec *executionContext) _Mutation_updateChaosHub(ctx context.Context, field 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 "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 } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_deleteChaosHub_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["projectID"].(string), args["hubID"].(string)) + 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 { @@ -20241,7 +24625,7 @@ func (ec *executionContext) _Mutation_deleteChaosHub(ctx context.Context, field tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20266,32 +24650,46 @@ func (ec *executionContext) _Mutation_deleteChaosHub(ctx context.Context, field return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_createEnvironment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_createEnvironment_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["request"].(*model.CreateEnvironmentRequest)) + 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 { @@ -20302,7 +24700,7 @@ func (ec *executionContext) _Mutation_createEnvironment(ctx context.Context, fie tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20324,32 +24722,72 @@ func (ec *executionContext) _Mutation_createEnvironment(ctx context.Context, fie return ec.marshalOEnvironment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironment(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_updateEnvironment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_updateEnvironment_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["request"].(*model.UpdateEnvironmentRequest)) + 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 { @@ -20360,7 +24798,7 @@ func (ec *executionContext) _Mutation_updateEnvironment(ctx context.Context, fie tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20385,32 +24823,46 @@ func (ec *executionContext) _Mutation_updateEnvironment(ctx context.Context, fie return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_deleteEnvironment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_deleteEnvironment_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["environmentID"].(string)) + 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 { @@ -20421,7 +24873,7 @@ func (ec *executionContext) _Mutation_deleteEnvironment(ctx context.Context, fie tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20446,31 +24898,45 @@ func (ec *executionContext) _Mutation_deleteEnvironment(ctx context.Context, fie return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_gitopsNotifier(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_gitopsNotifier_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["clusterInfo"].(model.InfraIdentity), args["experimentID"].(string)) + return ec.resolvers.Mutation().GitopsNotifier(rctx, fc.Args["clusterInfo"].(model.InfraIdentity), fc.Args["experimentID"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -20487,32 +24953,46 @@ func (ec *executionContext) _Mutation_gitopsNotifier(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_enableGitOps(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_enableGitOps_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["configurations"].(model.GitConfig)) + 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 { @@ -20523,7 +25003,7 @@ func (ec *executionContext) _Mutation_enableGitOps(ctx context.Context, field gr tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20548,32 +25028,46 @@ func (ec *executionContext) _Mutation_enableGitOps(ctx context.Context, field gr return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_disableGitOps(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_disableGitOps_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string)) + return ec.resolvers.Mutation().DisableGitOps(rctx, fc.Args["projectID"].(string)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.Authorized == nil { @@ -20584,7 +25078,7 @@ func (ec *executionContext) _Mutation_disableGitOps(ctx context.Context, field g tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20609,32 +25103,46 @@ func (ec *executionContext) _Mutation_disableGitOps(ctx context.Context, field g return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_updateGitOps(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_updateGitOps_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["configurations"].(model.GitConfig)) + 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 { @@ -20645,7 +25153,7 @@ func (ec *executionContext) _Mutation_updateGitOps(ctx context.Context, field gr tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20670,93 +25178,46 @@ func (ec *executionContext) _Mutation_updateGitOps(ctx context.Context, field gr return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_createImageRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_createImageRegistry_args(ctx, rawArgs) - if err != nil { + if fc.Args, err = ec.field_Mutation_updateGitOps_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null + return fc, err } - fc.Args = args - 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, args["projectID"].(string), 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) - } + return fc, nil +} - tmp, err := directive1(rctx) - if err != nil { - return nil, 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) - }) +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 { - ec.Error(ctx, 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) _Mutation_updateImageRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) ret = graphql.Null } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_updateImageRegistry_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["imageRegistryID"].(string), args["projectID"].(string), args["imageRegistryInfo"].(model.ImageRegistryInput)) + 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 { @@ -20767,7 +25228,7 @@ func (ec *executionContext) _Mutation_updateImageRegistry(ctx context.Context, f tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20792,93 +25253,66 @@ func (ec *executionContext) _Mutation_updateImageRegistry(ctx context.Context, f return ec.marshalNImageRegistryResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_deleteImageRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_deleteImageRegistry_args(ctx, rawArgs) - if err != nil { + if fc.Args, err = ec.field_Mutation_createImageRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null + return fc, err } - fc.Args = args - 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, args["imageRegistryID"].(string), 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) - } + return fc, nil +} - tmp, err := directive1(rctx) - if err != nil { - return nil, 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) - }) +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 { - ec.Error(ctx, err) return graphql.Null } - if resTmp == 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) _Mutation_addProbe(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) ret = graphql.Null } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_addProbe_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["request"].(model.ProbeRequest), args["projectID"].(string)) + 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 { @@ -20889,15 +25323,15 @@ func (ec *executionContext) _Mutation_addProbe(ctx context.Context, field graphq tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil } - if data, ok := tmp.(*model.Probe); ok { + 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.Probe`, tmp) + 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) @@ -20909,37 +25343,71 @@ func (ec *executionContext) _Mutation_addProbe(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(*model.Probe) + res := resTmp.(*model.ImageRegistryResponse) fc.Result = res - return ec.marshalNProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbe(ctx, field.Selections, res) + return ec.marshalNImageRegistryResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_updateProbe(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_updateProbe_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["request"].(model.ProbeRequest), args["projectID"].(string)) + 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 { @@ -20950,7 +25418,7 @@ func (ec *executionContext) _Mutation_updateProbe(ctx context.Context, field gra tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -20975,32 +25443,230 @@ func (ec *executionContext) _Mutation_updateProbe(ctx context.Context, field gra return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Mutation_deleteProbe(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 } }() - fc := &graphql.FieldContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, + 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) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_deleteProbe_args(ctx, rawArgs) + defer func() { + if r := 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 } - fc.Args = args + if resTmp == 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, args["probeName"].(string), args["projectID"].(string)) + 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 { @@ -21011,7 +25677,7 @@ func (ec *executionContext) _Mutation_deleteProbe(ctx context.Context, field gra tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -21036,21 +25702,42 @@ func (ec *executionContext) _Mutation_deleteProbe(ctx context.Context, field gra return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) _ObjectData_labels(ctx context.Context, field graphql.CollectedField, obj *model.ObjectData) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "ObjectData", - Field: field, - Args: nil, - IsMethod: false, + 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 @@ -21067,21 +25754,31 @@ func (ec *executionContext) _ObjectData_labels(ctx context.Context, field graphq return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ObjectData_labels(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ObjectData", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -21101,21 +25798,31 @@ func (ec *executionContext) _ObjectData_name(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ObjectData_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "POST", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ContentType, nil @@ -21132,21 +25839,31 @@ func (ec *executionContext) _POST_contentType(ctx context.Context, field graphql return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_POST_contentType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "POST", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Body, nil @@ -21163,21 +25880,31 @@ func (ec *executionContext) _POST_body(ctx context.Context, field graphql.Collec return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_POST_body(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "POST", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.BodyPath, nil @@ -21194,21 +25921,31 @@ func (ec *executionContext) _POST_bodyPath(ctx context.Context, field graphql.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_POST_bodyPath(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "POST", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Criteria, nil @@ -21228,21 +25965,31 @@ func (ec *executionContext) _POST_criteria(ctx context.Context, field graphql.Co return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_POST_criteria(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "POST", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ResponseCode, nil @@ -21262,21 +26009,31 @@ func (ec *executionContext) _POST_responseCode(ctx context.Context, field graphq return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_POST_responseCode(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PROMProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProbeTimeout, nil @@ -21296,21 +26053,31 @@ func (ec *executionContext) _PROMProbe_probeTimeout(ctx context.Context, field g return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PROMProbe_probeTimeout(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PROMProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Interval, nil @@ -21330,21 +26097,31 @@ func (ec *executionContext) _PROMProbe_interval(ctx context.Context, field graph return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PROMProbe_interval(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PROMProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Retry, nil @@ -21361,21 +26138,31 @@ func (ec *executionContext) _PROMProbe_retry(ctx context.Context, field graphql. return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PROMProbe_retry(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PROMProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Attempt, nil @@ -21392,21 +26179,31 @@ func (ec *executionContext) _PROMProbe_attempt(ctx context.Context, field graphq return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PROMProbe_attempt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PROMProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProbePollingInterval, nil @@ -21423,21 +26220,31 @@ func (ec *executionContext) _PROMProbe_probePollingInterval(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PROMProbe_probePollingInterval(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PROMProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InitialDelay, nil @@ -21454,21 +26261,31 @@ func (ec *executionContext) _PROMProbe_initialDelay(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PROMProbe_initialDelay(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PROMProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.EvaluationTimeout, nil @@ -21485,21 +26302,31 @@ func (ec *executionContext) _PROMProbe_evaluationTimeout(ctx context.Context, fi return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PROMProbe_evaluationTimeout(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PROMProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.StopOnFailure, nil @@ -21516,21 +26343,31 @@ func (ec *executionContext) _PROMProbe_stopOnFailure(ctx context.Context, field return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PROMProbe_stopOnFailure(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PROMProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Endpoint, nil @@ -21550,21 +26387,31 @@ func (ec *executionContext) _PROMProbe_endpoint(ctx context.Context, field graph return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PROMProbe_endpoint(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PROMProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Query, nil @@ -21581,21 +26428,31 @@ func (ec *executionContext) _PROMProbe_query(ctx context.Context, field graphql. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PROMProbe_query(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PROMProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.QueryPath, nil @@ -21612,21 +26469,31 @@ func (ec *executionContext) _PROMProbe_queryPath(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PROMProbe_queryPath(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PROMProbe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Comparator, nil @@ -21646,21 +26513,39 @@ func (ec *executionContext) _PROMProbe_comparator(ctx context.Context, field gra return ec.marshalNComparator2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparator(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PROMProbe_comparator(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PackageInformation", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.PackageName, nil @@ -21680,21 +26565,31 @@ func (ec *executionContext) _PackageInformation_packageName(ctx context.Context, return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PackageInformation_packageName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PackageInformation", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Experiments, nil @@ -21714,21 +26609,39 @@ func (ec *executionContext) _PackageInformation_experiments(ctx context.Context, return ec.marshalNExperiments2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentsᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PackageInformation_experiments(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PodLogResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentRunID, nil @@ -21748,21 +26661,31 @@ func (ec *executionContext) _PodLogResponse_experimentRunID(ctx context.Context, return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PodLogResponse_experimentRunID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PodLogResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.PodName, nil @@ -21782,21 +26705,31 @@ func (ec *executionContext) _PodLogResponse_podName(ctx context.Context, field g return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PodLogResponse_podName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PodLogResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.PodType, nil @@ -21816,21 +26749,31 @@ func (ec *executionContext) _PodLogResponse_podType(ctx context.Context, field g return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PodLogResponse_podType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PodLogResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Log, nil @@ -21850,21 +26793,31 @@ func (ec *executionContext) _PodLogResponse_log(ctx context.Context, field graph return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PodLogResponse_log(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PredefinedExperimentList", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentName, nil @@ -21884,24 +26837,34 @@ func (ec *executionContext) _PredefinedExperimentList_experimentName(ctx context return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PredefinedExperimentList_experimentName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PredefinedExperimentList", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExperimentCsv, nil + return obj.ExperimentCSV, nil }) if err != nil { ec.Error(ctx, err) @@ -21918,21 +26881,31 @@ func (ec *executionContext) _PredefinedExperimentList_experimentCSV(ctx context. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PredefinedExperimentList_experimentCSV(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "PredefinedExperimentList", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentManifest, nil @@ -21952,21 +26925,31 @@ func (ec *executionContext) _PredefinedExperimentList_experimentManifest(ctx con return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_PredefinedExperimentList_experimentManifest(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProjectID, nil @@ -21986,21 +26969,31 @@ func (ec *executionContext) _Probe_projectID(ctx context.Context, field graphql. return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_projectID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -22020,21 +27013,31 @@ func (ec *executionContext) _Probe_name(ctx context.Context, field graphql.Colle return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil @@ -22051,21 +27054,31 @@ func (ec *executionContext) _Probe_description(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Tags, nil @@ -22082,21 +27095,31 @@ func (ec *executionContext) _Probe_tags(ctx context.Context, field graphql.Colle return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_tags(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil @@ -22116,21 +27139,31 @@ func (ec *executionContext) _Probe_type(ctx context.Context, field graphql.Colle return ec.marshalNProbeType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_type(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InfrastructureType, nil @@ -22150,21 +27183,31 @@ func (ec *executionContext) _Probe_infrastructureType(ctx context.Context, field return ec.marshalNInfrastructureType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_infrastructureType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.KubernetesHTTPProperties, nil @@ -22181,21 +27224,55 @@ func (ec *executionContext) _Probe_kubernetesHTTPProperties(ctx context.Context, return ec.marshalOKubernetesHTTPProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesHTTPProbe(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_kubernetesHTTPProperties(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.KubernetesCMDProperties, nil @@ -22212,21 +27289,55 @@ func (ec *executionContext) _Probe_kubernetesCMDProperties(ctx context.Context, return ec.marshalOKubernetesCMDProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesCMDProbe(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_kubernetesCMDProperties(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.K8sProperties, nil @@ -22243,21 +27354,65 @@ func (ec *executionContext) _Probe_k8sProperties(ctx context.Context, field grap return ec.marshalOK8SProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐK8SProbe(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_k8sProperties(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.PromProperties, nil @@ -22274,21 +27429,57 @@ func (ec *executionContext) _Probe_promProperties(ctx context.Context, field gra return ec.marshalOPROMProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPROMProbe(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_promProperties(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.RecentExecutions, nil @@ -22305,21 +27496,39 @@ func (ec *executionContext) _Probe_recentExecutions(ctx context.Context, field g return ec.marshalOProbeRecentExecutions2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeRecentExecutionsᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_recentExecutions(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ReferencedBy, nil @@ -22336,21 +27545,31 @@ func (ec *executionContext) _Probe_referencedBy(ctx context.Context, field graph return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_referencedBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedAt, nil @@ -22370,21 +27589,31 @@ func (ec *executionContext) _Probe_updatedAt(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_updatedAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil @@ -22404,21 +27633,31 @@ func (ec *executionContext) _Probe_createdAt(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_createdAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedBy, nil @@ -22435,21 +27674,39 @@ func (ec *executionContext) _Probe_updatedBy(ctx context.Context, field graphql. return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_updatedBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Probe", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedBy, nil @@ -22466,21 +27723,39 @@ func (ec *executionContext) _Probe_createdBy(ctx context.Context, field graphql. return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Probe_createdBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ProbeRecentExecutions", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.FaultName, nil @@ -22500,21 +27775,31 @@ func (ec *executionContext) _ProbeRecentExecutions_faultName(ctx context.Context return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ProbeRecentExecutions_faultName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ProbeRecentExecutions", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Status, nil @@ -22534,21 +27819,37 @@ func (ec *executionContext) _ProbeRecentExecutions_status(ctx context.Context, f return ec.marshalNStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐStatus(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ProbeRecentExecutions_status(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ProbeRecentExecutions", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExecutedByExperiment, nil @@ -22568,21 +27869,41 @@ func (ec *executionContext) _ProbeRecentExecutions_executedByExperiment(ctx cont return ec.marshalNExecutedByExperiment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExecutedByExperiment(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ProbeRecentExecutions_executedByExperiment(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Provider", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -22602,31 +27923,34 @@ func (ec *executionContext) _Provider_name(ctx context.Context, field graphql.Co return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Provider_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getExperiment_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["projectID"].(string), args["experimentID"].(string)) + return ec.resolvers.Query().GetExperiment(rctx, fc.Args["projectID"].(string), fc.Args["experimentID"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -22643,31 +27967,51 @@ func (ec *executionContext) _Query_getExperiment(ctx context.Context, field grap return ec.marshalNGetExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetExperimentResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_listExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_listExperiment_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["projectID"].(string), args["request"].(model.ListExperimentRequest)) + return ec.resolvers.Query().ListExperiment(rctx, fc.Args["projectID"].(string), fc.Args["request"].(model.ListExperimentRequest)) }) if err != nil { ec.Error(ctx, err) @@ -22684,31 +28028,51 @@ func (ec *executionContext) _Query_listExperiment(ctx context.Context, field gra return ec.marshalNListExperimentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getExperimentStats(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getExperimentStats_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["projectID"].(string)) + return ec.resolvers.Query().GetExperimentStats(rctx, fc.Args["projectID"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -22725,31 +28089,51 @@ func (ec *executionContext) _Query_getExperimentStats(ctx context.Context, field return ec.marshalNGetExperimentStatsResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetExperimentStatsResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getExperimentRun(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getExperimentRun_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["projectID"].(string), args["experimentRunID"].(*string), args["notifyID"].(*string)) + return ec.resolvers.Query().GetExperimentRun(rctx, fc.Args["projectID"].(string), fc.Args["experimentRunID"].(*string), fc.Args["notifyID"].(*string)) }) if err != nil { ec.Error(ctx, err) @@ -22766,31 +28150,95 @@ func (ec *executionContext) _Query_getExperimentRun(ctx context.Context, field g 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 } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_listExperimentRun_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["projectID"].(string), args["request"].(model.ListExperimentRunRequest)) + return ec.resolvers.Query().ListExperimentRun(rctx, fc.Args["projectID"].(string), fc.Args["request"].(model.ListExperimentRunRequest)) }) if err != nil { ec.Error(ctx, err) @@ -22807,31 +28255,51 @@ func (ec *executionContext) _Query_listExperimentRun(ctx context.Context, field return ec.marshalNListExperimentRunResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentRunResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getExperimentRunStats(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getExperimentRunStats_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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, args["projectID"].(string)) + return ec.resolvers.Query().GetExperimentRunStats(rctx, fc.Args["projectID"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -22848,32 +28316,60 @@ func (ec *executionContext) _Query_getExperimentRunStats(ctx context.Context, fi return ec.marshalNGetExperimentRunStatsResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetExperimentRunStatsResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getInfra(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getInfra_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["infraID"].(string)) + 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 { @@ -22884,7 +28380,7 @@ func (ec *executionContext) _Query_getInfra(ctx context.Context, field graphql.C tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -22909,32 +28405,102 @@ func (ec *executionContext) _Query_getInfra(ctx context.Context, field graphql.C 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 } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_listInfras_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["projectID"].(string), args["request"].(*model.ListInfraRequest)) + 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 { @@ -22945,7 +28511,7 @@ func (ec *executionContext) _Query_listInfras(ctx context.Context, field graphql tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -22970,32 +28536,52 @@ func (ec *executionContext) _Query_listInfras(ctx context.Context, field graphql return ec.marshalNListInfraResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListInfraResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getInfraDetails(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getInfraDetails_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["infraID"].(string), args["projectID"].(string)) + 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 { @@ -23006,7 +28592,7 @@ func (ec *executionContext) _Query_getInfraDetails(ctx context.Context, field gr tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23031,32 +28617,102 @@ func (ec *executionContext) _Query_getInfraDetails(ctx context.Context, field gr 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 } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getInfraManifest_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["infraID"].(string), args["upgrade"].(bool), args["projectID"].(string)) + 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 { @@ -23067,7 +28723,7 @@ func (ec *executionContext) _Query_getInfraManifest(ctx context.Context, field g tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23092,32 +28748,46 @@ func (ec *executionContext) _Query_getInfraManifest(ctx context.Context, field g return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getInfraStats(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getInfraStats_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string)) + return ec.resolvers.Query().GetInfraStats(rctx, fc.Args["projectID"].(string)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.Authorized == nil { @@ -23128,7 +28798,7 @@ func (ec *executionContext) _Query_getInfraStats(ctx context.Context, field grap tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23153,32 +28823,58 @@ func (ec *executionContext) _Query_getInfraStats(ctx context.Context, field grap return ec.marshalNGetInfraStatsResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetInfraStatsResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getVersionDetails(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getVersionDetails_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string)) + return ec.resolvers.Query().GetVersionDetails(rctx, fc.Args["projectID"].(string)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.Authorized == nil { @@ -23189,7 +28885,7 @@ func (ec *executionContext) _Query_getVersionDetails(ctx context.Context, field tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23214,21 +28910,48 @@ func (ec *executionContext) _Query_getVersionDetails(ctx context.Context, field return ec.marshalNInfraVersionDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraVersionDetails(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getServerVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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) @@ -23248,32 +28971,41 @@ func (ec *executionContext) _Query_getServerVersion(ctx context.Context, field g return ec.marshalNServerVersionResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐServerVersionResponse(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Query_getServerVersion(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 "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 } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_listChaosFaults_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["hubID"].(string), args["projectID"].(string)) + 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 { @@ -23284,7 +29016,7 @@ func (ec *executionContext) _Query_listChaosFaults(ctx context.Context, field gr tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23309,32 +29041,58 @@ func (ec *executionContext) _Query_listChaosFaults(ctx context.Context, field gr return ec.marshalNChart2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChartᚄ(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getChaosFault(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getChaosFault_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["request"].(model.ExperimentRequest)) + 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 { @@ -23345,7 +29103,7 @@ func (ec *executionContext) _Query_getChaosFault(ctx context.Context, field grap tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23370,32 +29128,54 @@ func (ec *executionContext) _Query_getChaosFault(ctx context.Context, field grap return ec.marshalNFaultDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐFaultDetails(ctx, field.Selections, res) } -func (ec *executionContext) _Query_listChaosHub(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_listChaosHub_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["request"].(*model.ListChaosHubRequest)) + 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 { @@ -23406,7 +29186,7 @@ func (ec *executionContext) _Query_listChaosHub(ctx context.Context, field graph tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23431,32 +29211,96 @@ func (ec *executionContext) _Query_listChaosHub(ctx context.Context, field graph 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 "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 } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getChaosHub_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["projectID"].(string), args["chaosHubID"].(string)) + 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 { @@ -23467,7 +29311,7 @@ func (ec *executionContext) _Query_getChaosHub(ctx context.Context, field graphq tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23492,32 +29336,96 @@ func (ec *executionContext) _Query_getChaosHub(ctx context.Context, field graphq 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 "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 } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_listPredefinedExperiments_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["hubID"].(string), args["projectID"].(string)) + 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 { @@ -23528,7 +29436,7 @@ func (ec *executionContext) _Query_listPredefinedExperiments(ctx context.Context tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23553,32 +29461,54 @@ func (ec *executionContext) _Query_listPredefinedExperiments(ctx context.Context return ec.marshalNPredefinedExperimentList2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPredefinedExperimentListᚄ(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getPredefinedExperiment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getPredefinedExperiment_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["hubID"].(string), args["experimentName"].([]string), args["projectID"].(string)) + 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 { @@ -23589,7 +29519,7 @@ func (ec *executionContext) _Query_getPredefinedExperiment(ctx context.Context, tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23614,32 +29544,54 @@ func (ec *executionContext) _Query_getPredefinedExperiment(ctx context.Context, return ec.marshalNPredefinedExperimentList2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPredefinedExperimentListᚄ(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getChaosHubStats(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getChaosHubStats_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string)) + return ec.resolvers.Query().GetChaosHubStats(rctx, fc.Args["projectID"].(string)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.Authorized == nil { @@ -23650,7 +29602,7 @@ func (ec *executionContext) _Query_getChaosHubStats(ctx context.Context, field g tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23675,32 +29627,50 @@ func (ec *executionContext) _Query_getChaosHubStats(ctx context.Context, field g return ec.marshalNGetChaosHubStatsResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetChaosHubStatsResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getEnvironment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getEnvironment_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["environmentID"].(string)) + 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 { @@ -23711,7 +29681,7 @@ func (ec *executionContext) _Query_getEnvironment(ctx context.Context, field gra tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23733,32 +29703,72 @@ func (ec *executionContext) _Query_getEnvironment(ctx context.Context, field gra return ec.marshalOEnvironment2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironment(ctx, field.Selections, res) } -func (ec *executionContext) _Query_listEnvironments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_listEnvironments_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["request"].(*model.ListEnvironmentRequest)) + 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 { @@ -23769,7 +29779,7 @@ func (ec *executionContext) _Query_listEnvironments(ctx context.Context, field g tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23791,32 +29801,52 @@ func (ec *executionContext) _Query_listEnvironments(ctx context.Context, field g return ec.marshalOListEnvironmentResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListEnvironmentResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getGitOpsDetails(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getGitOpsDetails_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string)) + return ec.resolvers.Query().GetGitOpsDetails(rctx, fc.Args["projectID"].(string)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.Authorized == nil { @@ -23827,7 +29857,7 @@ func (ec *executionContext) _Query_getGitOpsDetails(ctx context.Context, field g tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23852,32 +29882,66 @@ func (ec *executionContext) _Query_getGitOpsDetails(ctx context.Context, field g return ec.marshalNGitConfigResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGitConfigResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_listImageRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_listImageRegistry_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string)) + return ec.resolvers.Query().ListImageRegistry(rctx, fc.Args["projectID"].(string)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.Authorized == nil { @@ -23888,7 +29952,7 @@ func (ec *executionContext) _Query_listImageRegistry(ctx context.Context, field tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23910,32 +29974,66 @@ func (ec *executionContext) _Query_listImageRegistry(ctx context.Context, field return ec.marshalOImageRegistryResponse2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryResponseᚄ(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getImageRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getImageRegistry_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string)) + return ec.resolvers.Query().GetImageRegistry(rctx, fc.Args["projectID"].(string)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.Authorized == nil { @@ -23946,7 +30044,7 @@ func (ec *executionContext) _Query_getImageRegistry(ctx context.Context, field g tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -23971,32 +30069,66 @@ func (ec *executionContext) _Query_getImageRegistry(ctx context.Context, field g return ec.marshalNImageRegistryResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistryResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_listProbes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_listProbes_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["infrastructureType"].(*model.InfrastructureType), args["probeNames"].([]string), args["filter"].(*model.ProbeFilterInput)) + 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 { @@ -24007,7 +30139,7 @@ func (ec *executionContext) _Query_listProbes(ctx context.Context, field graphql tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -24032,32 +30164,80 @@ func (ec *executionContext) _Query_listProbes(ctx context.Context, field graphql 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 } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getProbe_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["projectID"].(string), args["probeName"].(string)) + 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 { @@ -24068,7 +30248,7 @@ func (ec *executionContext) _Query_getProbe(ctx context.Context, field graphql.C tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -24093,32 +30273,80 @@ func (ec *executionContext) _Query_getProbe(ctx context.Context, field graphql.C 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 } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getProbeYAML_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args 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, args["projectID"].(string), args["request"].(model.GetProbeYAMLRequest)) + 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 { @@ -24129,7 +30357,7 @@ func (ec *executionContext) _Query_getProbeYAML(ctx context.Context, field graph tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -24154,32 +30382,46 @@ func (ec *executionContext) _Query_getProbeYAML(ctx context.Context, field graph return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getProbeReference(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getProbeReference_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["probeName"].(string)) + 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 { @@ -24190,7 +30432,7 @@ func (ec *executionContext) _Query_getProbeReference(ctx context.Context, field tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -24215,32 +30457,56 @@ func (ec *executionContext) _Query_getProbeReference(ctx context.Context, field return ec.marshalNGetProbeReferenceResponse2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbeReferenceResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_getProbesInExperimentRun(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_getProbesInExperimentRun_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["experimentRunID"].(string), args["faultName"].(string)) + 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 { @@ -24251,7 +30517,7 @@ func (ec *executionContext) _Query_getProbesInExperimentRun(ctx context.Context, tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -24276,32 +30542,54 @@ func (ec *executionContext) _Query_getProbesInExperimentRun(ctx context.Context, return ec.marshalNGetProbesInExperimentRunResponse2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbesInExperimentRunResponse(ctx, field.Selections, res) } -func (ec *executionContext) _Query_validateUniqueProbe(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_validateUniqueProbe_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := 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, args["projectID"].(string), args["probeName"].(string)) + 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 { @@ -24312,7 +30600,7 @@ func (ec *executionContext) _Query_validateUniqueProbe(ctx context.Context, fiel tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -24337,31 +30625,45 @@ func (ec *executionContext) _Query_validateUniqueProbe(ctx context.Context, fiel return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query___type_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return graphql.Null } - fc.Args = args + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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(args["name"].(string)) + return ec.introspectType(fc.Args["name"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -24375,21 +30677,64 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } -func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, + 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() @@ -24406,21 +30751,45 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Query___schema(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 "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 } }() - fc := &graphql.FieldContext{ - Object: "RecentExecutions", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.FaultName, nil @@ -24440,21 +30809,31 @@ func (ec *executionContext) _RecentExecutions_faultName(ctx context.Context, fie return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RecentExecutions_faultName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RecentExecutions", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Mode, nil @@ -24474,21 +30853,31 @@ func (ec *executionContext) _RecentExecutions_mode(ctx context.Context, field gr return ec.marshalNMode2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMode(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RecentExecutions_mode(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RecentExecutions", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExecutionHistory, nil @@ -24508,21 +30897,41 @@ func (ec *executionContext) _RecentExecutions_executionHistory(ctx context.Conte return ec.marshalNExecutionHistory2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExecutionHistoryᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RecentExecutions_executionHistory(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RecentExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentRunID, nil @@ -24542,21 +30951,31 @@ func (ec *executionContext) _RecentExperimentRun_experimentRunID(ctx context.Con return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RecentExperimentRun_experimentRunID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RecentExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Phase, nil @@ -24576,21 +30995,31 @@ func (ec *executionContext) _RecentExperimentRun_phase(ctx context.Context, fiel return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RecentExperimentRun_phase(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RecentExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ResiliencyScore, nil @@ -24607,21 +31036,31 @@ func (ec *executionContext) _RecentExperimentRun_resiliencyScore(ctx context.Con return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RecentExperimentRun_resiliencyScore(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RecentExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedAt, nil @@ -24641,21 +31080,31 @@ func (ec *executionContext) _RecentExperimentRun_updatedAt(ctx context.Context, return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RecentExperimentRun_updatedAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RecentExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil @@ -24675,21 +31124,31 @@ func (ec *executionContext) _RecentExperimentRun_createdAt(ctx context.Context, return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RecentExperimentRun_createdAt(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RecentExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedBy, nil @@ -24706,21 +31165,39 @@ func (ec *executionContext) _RecentExperimentRun_createdBy(ctx context.Context, return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RecentExperimentRun_createdBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RecentExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.UpdatedBy, nil @@ -24737,21 +31214,39 @@ func (ec *executionContext) _RecentExperimentRun_updatedBy(ctx context.Context, return ec.marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RecentExperimentRun_updatedBy(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RecentExperimentRun", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.RunSequence, nil @@ -24771,21 +31266,31 @@ func (ec *executionContext) _RecentExperimentRun_runSequence(ctx context.Context return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RecentExperimentRun_runSequence(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RegisterInfraResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Token, nil @@ -24805,21 +31310,31 @@ func (ec *executionContext) _RegisterInfraResponse_token(ctx context.Context, fi return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RegisterInfraResponse_token(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RegisterInfraResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.InfraID, nil @@ -24839,21 +31354,31 @@ func (ec *executionContext) _RegisterInfraResponse_infraID(ctx context.Context, return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RegisterInfraResponse_infraID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RegisterInfraResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -24873,21 +31398,31 @@ func (ec *executionContext) _RegisterInfraResponse_name(ctx context.Context, fie return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RegisterInfraResponse_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RegisterInfraResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Manifest, nil @@ -24907,21 +31442,31 @@ func (ec *executionContext) _RegisterInfraResponse_manifest(ctx context.Context, return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RegisterInfraResponse_manifest(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ResilienceScoreCategory", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil @@ -24941,21 +31486,31 @@ func (ec *executionContext) _ResilienceScoreCategory_id(ctx context.Context, fie return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ResilienceScoreCategory_id(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ResilienceScoreCategory", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Count, nil @@ -24975,21 +31530,31 @@ func (ec *executionContext) _ResilienceScoreCategory_count(ctx context.Context, return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ResilienceScoreCategory_count(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "RunChaosExperimentResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.NotifyID, nil @@ -25009,21 +31574,31 @@ func (ec *executionContext) _RunChaosExperimentResponse_notifyID(ctx context.Con return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_RunChaosExperimentResponse_notifyID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "SSHKey", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.PublicKey, nil @@ -25043,21 +31618,31 @@ func (ec *executionContext) _SSHKey_publicKey(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_SSHKey_publicKey(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "SSHKey", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.PrivateKey, nil @@ -25077,21 +31662,31 @@ func (ec *executionContext) _SSHKey_privateKey(ctx context.Context, field graphq return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_SSHKey_privateKey(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ServerVersionResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Key, nil @@ -25111,21 +31706,31 @@ func (ec *executionContext) _ServerVersionResponse_key(ctx context.Context, fiel return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ServerVersionResponse_key(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "ServerVersionResponse", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Value, nil @@ -25145,21 +31750,31 @@ func (ec *executionContext) _ServerVersionResponse_value(ctx context.Context, fi return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_ServerVersionResponse_value(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.DisplayName, nil @@ -25179,21 +31794,31 @@ func (ec *executionContext) _Spec_displayName(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_displayName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.CategoryDescription, nil @@ -25213,21 +31838,31 @@ func (ec *executionContext) _Spec_categoryDescription(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_categoryDescription(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Keywords, nil @@ -25247,21 +31882,31 @@ func (ec *executionContext) _Spec_keywords(ctx context.Context, field graphql.Co return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_keywords(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Maturity, nil @@ -25281,21 +31926,31 @@ func (ec *executionContext) _Spec_maturity(ctx context.Context, field graphql.Co return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_maturity(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Maintainers, nil @@ -25315,21 +31970,37 @@ func (ec *executionContext) _Spec_maintainers(ctx context.Context, field graphql return ec.marshalNMaintainer2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMaintainerᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_maintainers(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.MinKubeVersion, nil @@ -25349,21 +32020,31 @@ func (ec *executionContext) _Spec_minKubeVersion(ctx context.Context, field grap return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_minKubeVersion(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Provider, nil @@ -25383,21 +32064,35 @@ func (ec *executionContext) _Spec_provider(ctx context.Context, field graphql.Co return ec.marshalNProvider2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProvider(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_provider(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Links, nil @@ -25417,21 +32112,37 @@ func (ec *executionContext) _Spec_links(ctx context.Context, field graphql.Colle return ec.marshalNLink2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐLinkᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_links(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Faults, nil @@ -25451,21 +32162,41 @@ func (ec *executionContext) _Spec_faults(ctx context.Context, field graphql.Coll return ec.marshalNFaultList2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐFaultListᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_faults(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Experiments, nil @@ -25482,21 +32213,31 @@ func (ec *executionContext) _Spec_experiments(ctx context.Context, field graphql return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_experiments(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ChaosExpCRDLink, nil @@ -25516,21 +32257,31 @@ func (ec *executionContext) _Spec_chaosExpCRDLink(ctx context.Context, field gra return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_chaosExpCRDLink(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Platforms, nil @@ -25550,21 +32301,31 @@ func (ec *executionContext) _Spec_platforms(ctx context.Context, field graphql.C return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_platforms(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Spec", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ChaosType, nil @@ -25581,21 +32342,31 @@ func (ec *executionContext) _Spec_chaosType(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Spec_chaosType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Status", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Verdict, nil @@ -25615,21 +32386,31 @@ func (ec *executionContext) _Status_verdict(ctx context.Context, field graphql.C return ec.marshalNProbeVerdict2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeVerdict(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Status_verdict(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Status", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil @@ -25646,21 +32427,31 @@ func (ec *executionContext) _Status_description(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Status_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "StopExperimentRunsRequest", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ProjectID, nil @@ -25680,21 +32471,31 @@ func (ec *executionContext) _StopExperimentRunsRequest_projectID(ctx context.Con return ec.marshalNID2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_StopExperimentRunsRequest_projectID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "StopExperimentRunsRequest", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentID, nil @@ -25714,21 +32515,31 @@ func (ec *executionContext) _StopExperimentRunsRequest_experimentID(ctx context. return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_StopExperimentRunsRequest_experimentID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "StopExperimentRunsRequest", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.ExperimentRunID, nil @@ -25745,32 +32556,35 @@ func (ec *executionContext) _StopExperimentRunsRequest_experimentRunID(ctx conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) _Subscription_getInfraEvents(ctx context.Context, field graphql.CollectedField) (ret func() graphql.Marshaler) { +func (ec *executionContext) fieldContext_StopExperimentRunsRequest_experimentRunID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Subscription", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Subscription_getInfraEvents_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return nil - } - fc.Args = args 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, args["projectID"].(string)) + return ec.resolvers.Subscription().GetInfraEvents(rctx, fc.Args["projectID"].(string)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.Authorized == nil { @@ -25781,7 +32595,7 @@ func (ec *executionContext) _Subscription_getInfraEvents(ctx context.Context, fi tmp, err := directive1(rctx) if err != nil { - return nil, err + return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil @@ -25801,46 +32615,76 @@ func (ec *executionContext) _Subscription_getInfraEvents(ctx context.Context, fi } return nil } - return func() graphql.Marshaler { - res, ok := <-resTmp.(<-chan *model.InfraEventResponse) - if !ok { + 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 } - 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{'}'}) - }) } } -func (ec *executionContext) _Subscription_infraConnect(ctx context.Context, field graphql.CollectedField) (ret func() graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Subscription", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Subscription_infraConnect_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return nil } - fc.Args = args + 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, args["request"].(model.InfraIdentity)) + return ec.resolvers.Subscription().InfraConnect(rctx, fc.Args["request"].(model.InfraIdentity)) }) if err != nil { ec.Error(ctx, err) @@ -25852,46 +32696,70 @@ func (ec *executionContext) _Subscription_infraConnect(ctx context.Context, fiel } return nil } - return func() graphql.Marshaler { - res, ok := <-resTmp.(<-chan *model.InfraActionResponse) - if !ok { + 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 } - 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{'}'}) - }) } } -func (ec *executionContext) _Subscription_getPodLog(ctx context.Context, field graphql.CollectedField) (ret func() graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Subscription", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Subscription_getPodLog_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return nil } - fc.Args = args + 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, args["request"].(model.PodLogRequest)) + return ec.resolvers.Subscription().GetPodLog(rctx, fc.Args["request"].(model.PodLogRequest)) }) if err != nil { ec.Error(ctx, err) @@ -25903,46 +32771,74 @@ func (ec *executionContext) _Subscription_getPodLog(ctx context.Context, field g } return nil } - return func() graphql.Marshaler { - res, ok := <-resTmp.(<-chan *model.PodLogResponse) - if !ok { + 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 } - 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{'}'}) - }) } } -func (ec *executionContext) _Subscription_getKubeObject(ctx context.Context, field graphql.CollectedField) (ret func() graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "Subscription", - Field: field, - Args: nil, - IsMethod: true, + 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 +} - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Subscription_getKubeObject_args(ctx, rawArgs) +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 { - ec.Error(ctx, err) return nil } - fc.Args = args + 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, args["request"].(model.KubeObjectRequest)) + return ec.resolvers.Subscription().GetKubeObject(rctx, fc.Args["request"].(model.KubeObjectRequest)) }) if err != nil { ec.Error(ctx, err) @@ -25954,36 +32850,67 @@ func (ec *executionContext) _Subscription_getKubeObject(ctx context.Context, fie } return nil } - return func() graphql.Marshaler { - res, ok := <-resTmp.(<-chan *model.KubeObjectResponse) - if !ok { + 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 } - 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{'}'}) - }) } } -func (ec *executionContext) _UserDetails_userID(ctx context.Context, field graphql.CollectedField, obj *model.UserDetails) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "UserDetails", - Field: field, - Args: nil, - IsMethod: false, + 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) _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 @@ -26003,21 +32930,31 @@ func (ec *executionContext) _UserDetails_userID(ctx context.Context, field graph return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_UserDetails_userID(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "UserDetails", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Username, nil @@ -26037,21 +32974,31 @@ func (ec *executionContext) _UserDetails_username(ctx context.Context, field gra return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_UserDetails_username(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "UserDetails", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Email, nil @@ -26071,21 +33018,31 @@ func (ec *executionContext) _UserDetails_email(ctx context.Context, field graphq return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_UserDetails_email(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Weightages", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.FaultName, nil @@ -26105,21 +33062,31 @@ func (ec *executionContext) _Weightages_faultName(ctx context.Context, field gra return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Weightages_faultName(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "Weightages", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Weightage, nil @@ -26139,21 +33106,31 @@ func (ec *executionContext) _Weightages_weightage(ctx context.Context, field gra return ec.marshalNInt2int(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext_Weightages_weightage(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Directive", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -26173,24 +33150,34 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Directive_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Directive", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Description(), nil }) if err != nil { ec.Error(ctx, err) @@ -26199,26 +33186,36 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Directive", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil @@ -26238,21 +33235,31 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Directive_locations(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Directive", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil @@ -26272,21 +33279,85 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) } -func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { +func (ec *executionContext) fieldContext___Directive_args(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - Args: nil, - IsMethod: false, + 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(ctx 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 @@ -26306,24 +33377,34 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___EnumValue_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Description(), nil }) if err != nil { ec.Error(ctx, err) @@ -26332,26 +33413,36 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___EnumValue_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil @@ -26371,21 +33462,31 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___EnumValue_isDeprecated(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil @@ -26402,21 +33503,31 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___EnumValue_deprecationReason(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Field", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -26436,24 +33547,34 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Field_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Field", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Description(), nil }) if err != nil { ec.Error(ctx, err) @@ -26462,26 +33583,36 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Field", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil @@ -26501,21 +33632,41 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Field_args(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Field", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil @@ -26535,21 +33686,53 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Field_type(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Field", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil @@ -26569,21 +33752,31 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra return ec.marshalNBoolean2bool(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Field_isDeprecated(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Field", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil @@ -26600,21 +33793,31 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Field_deprecationReason(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil @@ -26634,24 +33837,34 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq return ec.marshalNString2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___InputValue_name(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Description(), nil }) if err != nil { ec.Error(ctx, err) @@ -26660,26 +33873,36 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___InputValue_description(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil @@ -26699,21 +33922,53 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___InputValue_type(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - Args: nil, - IsMethod: false, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil @@ -26730,21 +33985,72 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { +func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Schema", - Field: field, - Args: nil, - IsMethod: true, + 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(ctx 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 @@ -26764,21 +34070,53 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Schema_types(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Schema", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil @@ -26798,21 +34136,53 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Schema_queryType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Schema", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil @@ -26829,21 +34199,53 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Schema_mutationType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Schema", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil @@ -26860,21 +34262,53 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Schema_subscriptionType(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Schema", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil @@ -26894,21 +34328,43 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Schema_directives(ctx 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 } }() - fc := &graphql.FieldContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil @@ -26928,21 +34384,31 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll return ec.marshalN__TypeKind2string(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Type_kind(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) { + 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 } }() - fc := &graphql.FieldContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil @@ -26959,21 +34425,31 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Type_name(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) { + 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 } }() - fc := &graphql.FieldContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil @@ -26985,36 +34461,39 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_description(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) { + 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 } }() - fc := &graphql.FieldContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field___Type_fields_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Fields(args["includeDeprecated"].(bool)), nil + return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) if err != nil { ec.Error(ctx, err) @@ -27028,21 +34507,56 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) } -func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, + 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 @@ -27059,21 +34573,53 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Type_interfaces(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 "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 } }() - fc := &graphql.FieldContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil @@ -27090,31 +34636,56 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Type_possibleTypes(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 "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 } }() - fc := &graphql.FieldContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field___Type_enumValues_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - fc.Args = args resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EnumValues(args["includeDeprecated"].(bool)), nil + return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) if err != nil { ec.Error(ctx, err) @@ -27128,21 +34699,52 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) } -func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { +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 { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - fc := &graphql.FieldContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, + 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 @@ -27159,21 +34761,41 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Type_inputFields(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___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 } }() - fc := &graphql.FieldContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - - ctx = graphql.WithFieldContext(ctx, fc) resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil @@ -27190,82 +34812,177 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } +func (ec *executionContext) fieldContext___Type_ofType(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 "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(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) { + 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 - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + 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": - var err error - it.ProbeTimeout, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeTimeout")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ProbeTimeout = data case "interval": - var err error - it.Interval, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Interval = data case "retry": - var err error - it.Retry, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.Attempt, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.ProbePollingInterval, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InitialDelay, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.EvaluationTimeout, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.StopOnFailure, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.Command, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("command")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Command = data case "comparator": - var err error - it.Comparator, err = ec.unmarshalNComparatorInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparatorInput(ctx, v) + 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": - var err error - it.Source, err = ec.unmarshalOString2ᚖstring(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Source = data } } @@ -27274,76 +34991,95 @@ func (ec *executionContext) unmarshalInputCMDProbeRequest(ctx context.Context, o func (ec *executionContext) unmarshalInputChaosExperimentRequest(ctx context.Context, obj interface{}) (model.ChaosExperimentRequest, error) { var it model.ChaosExperimentRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + 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": - var err error - it.ExperimentID, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.RunExperiment, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.ExperimentManifest, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentManifest")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ExperimentManifest = data case "experimentType": - var err error - it.ExperimentType, err = ec.unmarshalOExperimentType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentType(ctx, v) + 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": - var err error - it.CronSyntax, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cronSyntax")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.CronSyntax = data case "experimentName": - var err error - it.ExperimentName, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentName")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ExperimentName = data case "experimentDescription": - var err error - it.ExperimentDescription, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentDescription")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ExperimentDescription = data case "weightages": - var err error - it.Weightages, err = ec.unmarshalNWeightagesInput2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesInputᚄ(ctx, v) + 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": - var err error - it.IsCustomExperiment, err = ec.unmarshalNBoolean2bool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isCustomExperiment")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { return it, err } + it.IsCustomExperiment = data case "infraID": - var err error - it.InfraID, err = ec.unmarshalNID2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID")) + data, err := ec.unmarshalNID2string(ctx, v) if err != nil { return it, err } + it.InfraID = data case "tags": - var err error - it.Tags, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } + it.Tags = data } } @@ -27352,28 +35088,39 @@ func (ec *executionContext) unmarshalInputChaosExperimentRequest(ctx context.Con func (ec *executionContext) unmarshalInputChaosHubFilterInput(ctx context.Context, obj interface{}) (model.ChaosHubFilterInput, error) { var it model.ChaosHubFilterInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"chaosHubName", "tags", "description"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "chaosHubName": - var err error - it.ChaosHubName, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Tags, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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": - var err error - it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Description = data } } @@ -27382,70 +35129,88 @@ func (ec *executionContext) unmarshalInputChaosHubFilterInput(ctx context.Contex func (ec *executionContext) unmarshalInputCloningInput(ctx context.Context, obj interface{}) (model.CloningInput, error) { var it model.CloningInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"name", "repoBranch", "repoURL", "isPrivate", "authType", "token", "userName", "password", "sshPrivateKey", "isDefault"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "name": - var err error - it.Name, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Name = data case "repoBranch": - var err error - it.RepoBranch, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoBranch")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.RepoBranch = data case "repoURL": - var err error - it.RepoURL, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoURL")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.RepoURL = data case "isPrivate": - var err error - it.IsPrivate, err = ec.unmarshalNBoolean2bool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isPrivate")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { return it, err } + it.IsPrivate = data case "authType": - var err error - it.AuthType, err = ec.unmarshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, v) + 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": - var err error - it.Token, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.UserName, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Password, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.SSHPrivateKey, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.IsDefault, err = ec.unmarshalNBoolean2bool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isDefault")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { return it, err } + it.IsDefault = data } } @@ -27454,28 +35219,39 @@ func (ec *executionContext) unmarshalInputCloningInput(ctx context.Context, obj func (ec *executionContext) unmarshalInputComparatorInput(ctx context.Context, obj interface{}) (model.ComparatorInput, error) { var it model.ComparatorInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"type", "value", "criteria"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "type": - var err error - it.Type, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Type = data case "value": - var err error - it.Value, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Value = data case "criteria": - var err error - it.Criteria, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("criteria")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Criteria = data } } @@ -27484,82 +35260,102 @@ func (ec *executionContext) unmarshalInputComparatorInput(ctx context.Context, o func (ec *executionContext) unmarshalInputCreateChaosHubRequest(ctx context.Context, obj interface{}) (model.CreateChaosHubRequest, error) { var it model.CreateChaosHubRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"name", "tags", "description", "repoURL", "repoBranch", "isPrivate", "authType", "token", "userName", "password", "sshPrivateKey", "sshPublicKey"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "name": - var err error - it.Name, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Name = data case "tags": - var err error - it.Tags, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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": - var err error - it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.RepoURL, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoURL")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.RepoURL = data case "repoBranch": - var err error - it.RepoBranch, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoBranch")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.RepoBranch = data case "isPrivate": - var err error - it.IsPrivate, err = ec.unmarshalNBoolean2bool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isPrivate")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { return it, err } + it.IsPrivate = data case "authType": - var err error - it.AuthType, err = ec.unmarshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, v) + 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": - var err error - it.Token, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.UserName, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Password, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.SSHPrivateKey, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.SSHPublicKey, err = ec.unmarshalOString2ᚖstring(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sshPublicKey")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.SSHPublicKey = data } } @@ -27568,40 +35364,53 @@ func (ec *executionContext) unmarshalInputCreateChaosHubRequest(ctx context.Cont func (ec *executionContext) unmarshalInputCreateEnvironmentRequest(ctx context.Context, obj interface{}) (model.CreateEnvironmentRequest, error) { var it model.CreateEnvironmentRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"environmentID", "name", "type", "description", "tags"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "environmentID": - var err error - it.EnvironmentID, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environmentID")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.EnvironmentID = data case "name": - var err error - it.Name, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Name = data case "type": - var err error - it.Type, err = ec.unmarshalNEnvironmentType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx, v) + 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": - var err error - it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Tags, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } + it.Tags = data } } @@ -27610,34 +35419,46 @@ func (ec *executionContext) unmarshalInputCreateEnvironmentRequest(ctx context.C func (ec *executionContext) unmarshalInputCreateRemoteChaosHub(ctx context.Context, obj interface{}) (model.CreateRemoteChaosHub, error) { var it model.CreateRemoteChaosHub - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"name", "tags", "description", "repoURL"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "name": - var err error - it.Name, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Name = data case "tags": - var err error - it.Tags, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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": - var err error - it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.RepoURL, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoURL")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.RepoURL = data } } @@ -27646,22 +35467,32 @@ func (ec *executionContext) unmarshalInputCreateRemoteChaosHub(ctx context.Conte func (ec *executionContext) unmarshalInputDateRange(ctx context.Context, obj interface{}) (model.DateRange, error) { var it model.DateRange - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"startDate", "endDate"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "startDate": - var err error - it.StartDate, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("startDate")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.StartDate = data case "endDate": - var err error - it.EndDate, err = ec.unmarshalOString2ᚖstring(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("endDate")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.EndDate = data } } @@ -27670,34 +35501,46 @@ func (ec *executionContext) unmarshalInputDateRange(ctx context.Context, obj int func (ec *executionContext) unmarshalInputEnvironmentFilterInput(ctx context.Context, obj interface{}) (model.EnvironmentFilterInput, error) { var it model.EnvironmentFilterInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"name", "description", "type", "tags"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "name": - var err error - it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Type, err = ec.unmarshalOEnvironmentType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx, v) + 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": - var err error - it.Tags, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } + it.Tags = data } } @@ -27706,22 +35549,32 @@ func (ec *executionContext) unmarshalInputEnvironmentFilterInput(ctx context.Con func (ec *executionContext) unmarshalInputEnvironmentSortInput(ctx context.Context, obj interface{}) (model.EnvironmentSortInput, error) { var it model.EnvironmentSortInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"field", "ascending"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "field": - var err error - it.Field, err = ec.unmarshalNEnvironmentSortingField2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentSortingField(ctx, v) + 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": - var err error - it.Ascending, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ascending")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.Ascending = data } } @@ -27730,58 +35583,74 @@ func (ec *executionContext) unmarshalInputEnvironmentSortInput(ctx context.Conte func (ec *executionContext) unmarshalInputExperimentFilterInput(ctx context.Context, obj interface{}) (model.ExperimentFilterInput, error) { var it model.ExperimentFilterInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + 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": - var err error - it.ExperimentName, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InfraName, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InfraID, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InfraActive, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.ScheduleType, err = ec.unmarshalOScheduleType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐScheduleType(ctx, v) + 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": - var err error - it.Status, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.DateRange, err = ec.unmarshalODateRange2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐDateRange(ctx, v) + 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": - var err error - it.InfraTypes, err = ec.unmarshalOInfrastructureType2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, v) + 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 } } @@ -27790,28 +35659,39 @@ func (ec *executionContext) unmarshalInputExperimentFilterInput(ctx context.Cont func (ec *executionContext) unmarshalInputExperimentRequest(ctx context.Context, obj interface{}) (model.ExperimentRequest, error) { var it model.ExperimentRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"category", "experimentName", "hubID"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "category": - var err error - it.Category, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Category = data case "experimentName": - var err error - it.ExperimentName, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentName")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ExperimentName = data case "hubID": - var err error - it.HubID, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hubID")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.HubID = data } } @@ -27820,58 +35700,74 @@ func (ec *executionContext) unmarshalInputExperimentRequest(ctx context.Context, func (ec *executionContext) unmarshalInputExperimentRunFilterInput(ctx context.Context, obj interface{}) (model.ExperimentRunFilterInput, error) { var it model.ExperimentRunFilterInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + 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": - var err error - it.ExperimentName, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InfraID, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.ExperimentType, err = ec.unmarshalOScheduleType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐScheduleType(ctx, v) + 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": - var err error - it.ExperimentStatus, err = ec.unmarshalOExperimentRunStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunStatus(ctx, v) + 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": - var err error - it.DateRange, err = ec.unmarshalODateRange2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐDateRange(ctx, v) + 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": - var err error - it.ExperimentRunID, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.ExperimentRunStatus, err = ec.unmarshalOString2ᚕᚖstring(ctx, v) + 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": - var err error - it.InfraTypes, err = ec.unmarshalOInfrastructureType2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, v) + 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 } } @@ -27880,70 +35776,88 @@ func (ec *executionContext) unmarshalInputExperimentRunFilterInput(ctx context.C func (ec *executionContext) unmarshalInputExperimentRunRequest(ctx context.Context, obj interface{}) (model.ExperimentRunRequest, error) { var it model.ExperimentRunRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + 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": - var err error - it.ExperimentID, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentID")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ExperimentID = data case "notifyID": - var err error - it.NotifyID, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.ExperimentRunID, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunID")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ExperimentRunID = data case "experimentName": - var err error - it.ExperimentName, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentName")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ExperimentName = data case "executionData": - var err error - it.ExecutionData, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("executionData")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ExecutionData = data case "infraID": - var err error - it.InfraID, err = ec.unmarshalNInfraIdentity2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx, v) + 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": - var err error - it.RevisionID, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("revisionID")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.RevisionID = data case "completed": - var err error - it.Completed, err = ec.unmarshalNBoolean2bool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("completed")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { return it, err } + it.Completed = data case "isRemoved": - var err error - it.IsRemoved, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.UpdatedBy, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.UpdatedBy = data } } @@ -27952,22 +35866,32 @@ func (ec *executionContext) unmarshalInputExperimentRunRequest(ctx context.Conte func (ec *executionContext) unmarshalInputExperimentRunSortInput(ctx context.Context, obj interface{}) (model.ExperimentRunSortInput, error) { var it model.ExperimentRunSortInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"field", "ascending"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "field": - var err error - it.Field, err = ec.unmarshalNExperimentSortingField2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentSortingField(ctx, v) + 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": - var err error - it.Ascending, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ascending")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.Ascending = data } } @@ -27976,22 +35900,32 @@ func (ec *executionContext) unmarshalInputExperimentRunSortInput(ctx context.Con func (ec *executionContext) unmarshalInputExperimentSortInput(ctx context.Context, obj interface{}) (model.ExperimentSortInput, error) { var it model.ExperimentSortInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"field", "ascending"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "field": - var err error - it.Field, err = ec.unmarshalNExperimentSortingField2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentSortingField(ctx, v) + 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": - var err error - it.Ascending, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ascending")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.Ascending = data } } @@ -28000,22 +35934,32 @@ func (ec *executionContext) unmarshalInputExperimentSortInput(ctx context.Contex func (ec *executionContext) unmarshalInputGETRequest(ctx context.Context, obj interface{}) (model.GETRequest, error) { var it model.GETRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"criteria", "responseCode"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "criteria": - var err error - it.Criteria, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("criteria")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Criteria = data case "responseCode": - var err error - it.ResponseCode, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("responseCode")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ResponseCode = data } } @@ -28024,22 +35968,32 @@ func (ec *executionContext) unmarshalInputGETRequest(ctx context.Context, obj in func (ec *executionContext) unmarshalInputGetProbeYAMLRequest(ctx context.Context, obj interface{}) (model.GetProbeYAMLRequest, error) { var it model.GetProbeYAMLRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"probeName", "mode"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "probeName": - var err error - it.ProbeName, err = ec.unmarshalNID2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeName")) + data, err := ec.unmarshalNID2string(ctx, v) if err != nil { return it, err } + it.ProbeName = data case "mode": - var err error - it.Mode, err = ec.unmarshalNMode2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMode(ctx, v) + 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 } } @@ -28048,52 +36002,67 @@ func (ec *executionContext) unmarshalInputGetProbeYAMLRequest(ctx context.Contex func (ec *executionContext) unmarshalInputGitConfig(ctx context.Context, obj interface{}) (model.GitConfig, error) { var it model.GitConfig - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"branch", "repoURL", "authType", "token", "userName", "password", "sshPrivateKey"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "branch": - var err error - it.Branch, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("branch")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Branch = data case "repoURL": - var err error - it.RepoURL, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoURL")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.RepoURL = data case "authType": - var err error - it.AuthType, err = ec.unmarshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, v) + 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": - var err error - it.Token, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.UserName, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Password, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.SSHPrivateKey, err = ec.unmarshalOString2ᚖstring(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sshPrivateKey")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.SSHPrivateKey = data } } @@ -28102,76 +36071,95 @@ func (ec *executionContext) unmarshalInputGitConfig(ctx context.Context, obj int func (ec *executionContext) unmarshalInputHTTPProbeRequest(ctx context.Context, obj interface{}) (model.HTTPProbeRequest, error) { var it model.HTTPProbeRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + 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": - var err error - it.ProbeTimeout, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeTimeout")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ProbeTimeout = data case "interval": - var err error - it.Interval, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Interval = data case "retry": - var err error - it.Retry, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.Attempt, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.ProbePollingInterval, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InitialDelay, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.EvaluationTimeout, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.StopOnFailure, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.URL, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.URL = data case "method": - var err error - it.Method, err = ec.unmarshalNMethodRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMethodRequest(ctx, v) + 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": - var err error - it.InsecureSkipVerify, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("insecureSkipVerify")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.InsecureSkipVerify = data } } @@ -28180,52 +36168,67 @@ func (ec *executionContext) unmarshalInputHTTPProbeRequest(ctx context.Context, func (ec *executionContext) unmarshalInputImageRegistryInput(ctx context.Context, obj interface{}) (model.ImageRegistryInput, error) { var it model.ImageRegistryInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"isDefault", "imageRegistryName", "imageRepoName", "imageRegistryType", "secretName", "secretNamespace", "enableRegistry"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "isDefault": - var err error - it.IsDefault, err = ec.unmarshalNBoolean2bool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isDefault")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { return it, err } + it.IsDefault = data case "imageRegistryName": - var err error - it.ImageRegistryName, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imageRegistryName")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ImageRegistryName = data case "imageRepoName": - var err error - it.ImageRepoName, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imageRepoName")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ImageRepoName = data case "imageRegistryType": - var err error - it.ImageRegistryType, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imageRegistryType")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ImageRegistryType = data case "secretName": - var err error - it.SecretName, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.SecretNamespace, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.EnableRegistry, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enableRegistry")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.EnableRegistry = data } } @@ -28234,52 +36237,67 @@ func (ec *executionContext) unmarshalInputImageRegistryInput(ctx context.Context func (ec *executionContext) unmarshalInputInfraFilterInput(ctx context.Context, obj interface{}) (model.InfraFilterInput, error) { var it model.InfraFilterInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"name", "infraID", "description", "platformName", "infraScope", "isActive", "tags"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "name": - var err error - it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InfraID, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.PlatformName, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InfraScope, err = ec.unmarshalOINFRA_SCOPE2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraScope(ctx, v) + 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": - var err error - it.IsActive, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.Tags, err = ec.unmarshalOString2ᚕᚖstring(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) if err != nil { return it, err } + it.Tags = data } } @@ -28288,28 +36306,39 @@ func (ec *executionContext) unmarshalInputInfraFilterInput(ctx context.Context, func (ec *executionContext) unmarshalInputInfraIdentity(ctx context.Context, obj interface{}) (model.InfraIdentity, error) { var it model.InfraIdentity - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"infraID", "accessKey", "version"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "infraID": - var err error - it.InfraID, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.InfraID = data case "accessKey": - var err error - it.AccessKey, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("accessKey")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.AccessKey = data case "version": - var err error - it.Version, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Version = data } } @@ -28318,106 +36347,130 @@ func (ec *executionContext) unmarshalInputInfraIdentity(ctx context.Context, obj func (ec *executionContext) unmarshalInputK8SProbeRequest(ctx context.Context, obj interface{}) (model.K8SProbeRequest, error) { var it model.K8SProbeRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + 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": - var err error - it.ProbeTimeout, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeTimeout")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ProbeTimeout = data case "interval": - var err error - it.Interval, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Interval = data case "retry": - var err error - it.Retry, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.Attempt, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.ProbePollingInterval, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InitialDelay, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.EvaluationTimeout, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.StopOnFailure, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.Group, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Version, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Version = data case "resource": - var err error - it.Resource, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resource")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Resource = data case "namespace": - var err error - it.Namespace, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.ResourceNames, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.FieldSelector, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.LabelSelector, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Operation, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Operation = data } } @@ -28426,28 +36479,39 @@ func (ec *executionContext) unmarshalInputK8SProbeRequest(ctx context.Context, o func (ec *executionContext) unmarshalInputKubeGVRRequest(ctx context.Context, obj interface{}) (model.KubeGVRRequest, error) { var it model.KubeGVRRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"group", "version", "resource"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "group": - var err error - it.Group, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("group")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Group = data case "version": - var err error - it.Version, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Version = data case "resource": - var err error - it.Resource, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resource")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Resource = data } } @@ -28456,28 +36520,39 @@ func (ec *executionContext) unmarshalInputKubeGVRRequest(ctx context.Context, ob func (ec *executionContext) unmarshalInputKubeObjectData(ctx context.Context, obj interface{}) (model.KubeObjectData, error) { var it model.KubeObjectData - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"requestID", "infraID", "kubeObj"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "requestID": - var err error - it.RequestID, err = ec.unmarshalNID2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestID")) + data, err := ec.unmarshalNID2string(ctx, v) if err != nil { return it, err } + it.RequestID = data case "infraID": - var err error - it.InfraID, err = ec.unmarshalNInfraIdentity2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx, v) + 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": - var err error - it.KubeObj, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kubeObj")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.KubeObj = data } } @@ -28486,34 +36561,46 @@ func (ec *executionContext) unmarshalInputKubeObjectData(ctx context.Context, ob func (ec *executionContext) unmarshalInputKubeObjectRequest(ctx context.Context, obj interface{}) (model.KubeObjectRequest, error) { var it model.KubeObjectRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"infraID", "kubeObjRequest", "objectType", "workloads"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "infraID": - var err error - it.InfraID, err = ec.unmarshalNID2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID")) + data, err := ec.unmarshalNID2string(ctx, v) if err != nil { return it, err } + it.InfraID = data case "kubeObjRequest": - var err error - it.KubeObjRequest, err = ec.unmarshalOKubeGVRRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeGVRRequest(ctx, v) + 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 "objectType": - var err error - it.ObjectType, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("objectType")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ObjectType = data case "workloads": - var err error - it.Workloads, err = ec.unmarshalOWorkload2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWorkload(ctx, v) + 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 } } @@ -28522,76 +36609,95 @@ func (ec *executionContext) unmarshalInputKubeObjectRequest(ctx context.Context, func (ec *executionContext) unmarshalInputKubernetesCMDProbeRequest(ctx context.Context, obj interface{}) (model.KubernetesCMDProbeRequest, error) { var it model.KubernetesCMDProbeRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + 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": - var err error - it.ProbeTimeout, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeTimeout")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ProbeTimeout = data case "interval": - var err error - it.Interval, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Interval = data case "retry": - var err error - it.Retry, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.Attempt, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.ProbePollingInterval, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InitialDelay, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.EvaluationTimeout, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.StopOnFailure, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.Command, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("command")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Command = data case "comparator": - var err error - it.Comparator, err = ec.unmarshalNComparatorInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparatorInput(ctx, v) + 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": - var err error - it.Source, err = ec.unmarshalOString2ᚖstring(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Source = data } } @@ -28600,76 +36706,95 @@ func (ec *executionContext) unmarshalInputKubernetesCMDProbeRequest(ctx context. func (ec *executionContext) unmarshalInputKubernetesHTTPProbeRequest(ctx context.Context, obj interface{}) (model.KubernetesHTTPProbeRequest, error) { var it model.KubernetesHTTPProbeRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + 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": - var err error - it.ProbeTimeout, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeTimeout")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ProbeTimeout = data case "interval": - var err error - it.Interval, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Interval = data case "retry": - var err error - it.Retry, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.Attempt, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.ProbePollingInterval, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InitialDelay, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.EvaluationTimeout, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.StopOnFailure, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.URL, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.URL = data case "method": - var err error - it.Method, err = ec.unmarshalNMethodRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMethodRequest(ctx, v) + 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": - var err error - it.InsecureSkipVerify, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("insecureSkipVerify")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.InsecureSkipVerify = data } } @@ -28678,22 +36803,32 @@ func (ec *executionContext) unmarshalInputKubernetesHTTPProbeRequest(ctx context func (ec *executionContext) unmarshalInputListChaosHubRequest(ctx context.Context, obj interface{}) (model.ListChaosHubRequest, error) { var it model.ListChaosHubRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"chaosHubIDs", "filter"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "chaosHubIDs": - var err error - it.ChaosHubIDs, err = ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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": - var err error - it.Filter, err = ec.unmarshalOChaosHubFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHubFilterInput(ctx, v) + 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 } } @@ -28702,34 +36837,46 @@ func (ec *executionContext) unmarshalInputListChaosHubRequest(ctx context.Contex func (ec *executionContext) unmarshalInputListEnvironmentRequest(ctx context.Context, obj interface{}) (model.ListEnvironmentRequest, error) { var it model.ListEnvironmentRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"environmentIDs", "pagination", "filter", "sort"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "environmentIDs": - var err error - it.EnvironmentIDs, err = ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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": - var err error - it.Pagination, err = ec.unmarshalOPagination2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPagination(ctx, v) + 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": - var err error - it.Filter, err = ec.unmarshalOEnvironmentFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentFilterInput(ctx, v) + 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": - var err error - it.Sort, err = ec.unmarshalOEnvironmentSortInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentSortInput(ctx, v) + 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 } } @@ -28738,34 +36885,46 @@ func (ec *executionContext) unmarshalInputListEnvironmentRequest(ctx context.Con func (ec *executionContext) unmarshalInputListExperimentRequest(ctx context.Context, obj interface{}) (model.ListExperimentRequest, error) { var it model.ListExperimentRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"experimentIDs", "pagination", "sort", "filter"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "experimentIDs": - var err error - it.ExperimentIDs, err = ec.unmarshalOID2ᚕᚖstring(ctx, v) + 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": - var err error - it.Pagination, err = ec.unmarshalOPagination2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPagination(ctx, v) + 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": - var err error - it.Sort, err = ec.unmarshalOExperimentSortInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentSortInput(ctx, v) + 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": - var err error - it.Filter, err = ec.unmarshalOExperimentFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentFilterInput(ctx, v) + 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 } } @@ -28774,40 +36933,53 @@ func (ec *executionContext) unmarshalInputListExperimentRequest(ctx context.Cont func (ec *executionContext) unmarshalInputListExperimentRunRequest(ctx context.Context, obj interface{}) (model.ListExperimentRunRequest, error) { var it model.ListExperimentRunRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"experimentRunIDs", "experimentIDs", "pagination", "sort", "filter"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "experimentRunIDs": - var err error - it.ExperimentRunIDs, err = ec.unmarshalOID2ᚕᚖstring(ctx, v) + 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": - var err error - it.ExperimentIDs, err = ec.unmarshalOID2ᚕᚖstring(ctx, v) + 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": - var err error - it.Pagination, err = ec.unmarshalOPagination2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPagination(ctx, v) + 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": - var err error - it.Sort, err = ec.unmarshalOExperimentRunSortInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunSortInput(ctx, v) + 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": - var err error - it.Filter, err = ec.unmarshalOExperimentRunFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunFilterInput(ctx, v) + 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 } } @@ -28816,34 +36988,46 @@ func (ec *executionContext) unmarshalInputListExperimentRunRequest(ctx context.C func (ec *executionContext) unmarshalInputListInfraRequest(ctx context.Context, obj interface{}) (model.ListInfraRequest, error) { var it model.ListInfraRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"infraIDs", "environmentIDs", "pagination", "filter"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "infraIDs": - var err error - it.InfraIDs, err = ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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": - var err error - it.EnvironmentIDs, err = ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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": - var err error - it.Pagination, err = ec.unmarshalOPagination2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPagination(ctx, v) + 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": - var err error - it.Filter, err = ec.unmarshalOInfraFilterInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraFilterInput(ctx, v) + 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 } } @@ -28852,22 +37036,32 @@ func (ec *executionContext) unmarshalInputListInfraRequest(ctx context.Context, func (ec *executionContext) unmarshalInputMethodRequest(ctx context.Context, obj interface{}) (model.MethodRequest, error) { var it model.MethodRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"get", "post"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "get": - var err error - it.Get, err = ec.unmarshalOGETRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGETRequest(ctx, v) + 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": - var err error - it.Post, err = ec.unmarshalOPOSTRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPOSTRequest(ctx, v) + 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 } } @@ -28876,34 +37070,46 @@ func (ec *executionContext) unmarshalInputMethodRequest(ctx context.Context, obj func (ec *executionContext) unmarshalInputNewInfraEventRequest(ctx context.Context, obj interface{}) (model.NewInfraEventRequest, error) { var it model.NewInfraEventRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"eventName", "description", "infraID", "accessKey"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "eventName": - var err error - it.EventName, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventName")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.EventName = data case "description": - var err error - it.Description, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Description = data case "infraID": - var err error - it.InfraID, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.InfraID = data case "accessKey": - var err error - it.AccessKey, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("accessKey")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.AccessKey = data } } @@ -28912,40 +37118,53 @@ func (ec *executionContext) unmarshalInputNewInfraEventRequest(ctx context.Conte func (ec *executionContext) unmarshalInputPOSTRequest(ctx context.Context, obj interface{}) (model.POSTRequest, error) { var it model.POSTRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"contentType", "body", "bodyPath", "criteria", "responseCode"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "contentType": - var err error - it.ContentType, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Body, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.BodyPath, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Criteria, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("criteria")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Criteria = data case "responseCode": - var err error - it.ResponseCode, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("responseCode")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ResponseCode = data } } @@ -28954,82 +37173,102 @@ func (ec *executionContext) unmarshalInputPOSTRequest(ctx context.Context, obj i func (ec *executionContext) unmarshalInputPROMProbeRequest(ctx context.Context, obj interface{}) (model.PROMProbeRequest, error) { var it model.PROMProbeRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + 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": - var err error - it.ProbeTimeout, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probeTimeout")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ProbeTimeout = data case "interval": - var err error - it.Interval, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Interval = data case "retry": - var err error - it.Retry, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.Attempt, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.ProbePollingInterval, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InitialDelay, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.EvaluationTimeout, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.StopOnFailure, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.Endpoint, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("endpoint")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Endpoint = data case "query": - var err error - it.Query, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.QueryPath, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Comparator, err = ec.unmarshalNComparatorInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparatorInput(ctx, v) + 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 } } @@ -29038,22 +37277,32 @@ func (ec *executionContext) unmarshalInputPROMProbeRequest(ctx context.Context, func (ec *executionContext) unmarshalInputPagination(ctx context.Context, obj interface{}) (model.Pagination, error) { var it model.Pagination - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"page", "limit"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "page": - var err error - it.Page, err = ec.unmarshalNInt2int(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("page")) + data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { return it, err } + it.Page = data case "limit": - var err error - it.Limit, err = ec.unmarshalNInt2int(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { return it, err } + it.Limit = data } } @@ -29062,46 +37311,60 @@ func (ec *executionContext) unmarshalInputPagination(ctx context.Context, obj in func (ec *executionContext) unmarshalInputPodLog(ctx context.Context, obj interface{}) (model.PodLog, error) { var it model.PodLog - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"infraID", "requestID", "experimentRunID", "podName", "podType", "log"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "infraID": - var err error - it.InfraID, err = ec.unmarshalNInfraIdentity2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx, v) + 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": - var err error - it.RequestID, err = ec.unmarshalNID2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestID")) + data, err := ec.unmarshalNID2string(ctx, v) if err != nil { return it, err } + it.RequestID = data case "experimentRunID": - var err error - it.ExperimentRunID, err = ec.unmarshalNID2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunID")) + data, err := ec.unmarshalNID2string(ctx, v) if err != nil { return it, err } + it.ExperimentRunID = data case "podName": - var err error - it.PodName, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("podName")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.PodName = data case "podType": - var err error - it.PodType, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("podType")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.PodType = data case "log": - var err error - it.Log, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("log")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Log = data } } @@ -29110,58 +37373,74 @@ func (ec *executionContext) unmarshalInputPodLog(ctx context.Context, obj interf func (ec *executionContext) unmarshalInputPodLogRequest(ctx context.Context, obj interface{}) (model.PodLogRequest, error) { var it model.PodLogRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"infraID", "experimentRunID", "podName", "podNamespace", "podType", "expPod", "runnerPod", "chaosNamespace"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "infraID": - var err error - it.InfraID, err = ec.unmarshalNID2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID")) + data, err := ec.unmarshalNID2string(ctx, v) if err != nil { return it, err } + it.InfraID = data case "experimentRunID": - var err error - it.ExperimentRunID, err = ec.unmarshalNID2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("experimentRunID")) + data, err := ec.unmarshalNID2string(ctx, v) if err != nil { return it, err } + it.ExperimentRunID = data case "podName": - var err error - it.PodName, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("podName")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.PodName = data case "podNamespace": - var err error - it.PodNamespace, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("podNamespace")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.PodNamespace = data case "podType": - var err error - it.PodType, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("podType")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.PodType = data case "expPod": - var err error - it.ExpPod, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.RunnerPod, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.ChaosNamespace, err = ec.unmarshalOString2ᚖstring(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chaosNamespace")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.ChaosNamespace = data } } @@ -29170,28 +37449,39 @@ func (ec *executionContext) unmarshalInputPodLogRequest(ctx context.Context, obj func (ec *executionContext) unmarshalInputProbeFilterInput(ctx context.Context, obj interface{}) (model.ProbeFilterInput, error) { var it model.ProbeFilterInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"name", "dateRange", "type"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "name": - var err error - it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.DateRange, err = ec.unmarshalODateRange2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐDateRange(ctx, v) + 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": - var err error - it.Type, err = ec.unmarshalOProbeType2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx, v) + 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 } } @@ -29200,64 +37490,81 @@ func (ec *executionContext) unmarshalInputProbeFilterInput(ctx context.Context, func (ec *executionContext) unmarshalInputProbeRequest(ctx context.Context, obj interface{}) (model.ProbeRequest, error) { var it model.ProbeRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + 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": - var err error - it.Name, err = ec.unmarshalNID2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNID2string(ctx, v) if err != nil { return it, err } + it.Name = data case "description": - var err error - it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Tags, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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": - var err error - it.Type, err = ec.unmarshalNProbeType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx, v) + 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": - var err error - it.InfrastructureType, err = ec.unmarshalNInfrastructureType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, v) + 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": - var err error - it.KubernetesHTTPProperties, err = ec.unmarshalOKubernetesHTTPProbeRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesHTTPProbeRequest(ctx, v) + 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": - var err error - it.KubernetesCMDProperties, err = ec.unmarshalOKubernetesCMDProbeRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesCMDProbeRequest(ctx, v) + 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": - var err error - it.K8sProperties, err = ec.unmarshalOK8SProbeRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐK8SProbeRequest(ctx, v) + 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": - var err error - it.PromProperties, err = ec.unmarshalOPROMProbeRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPROMProbeRequest(ctx, v) + 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 } } @@ -29266,94 +37573,116 @@ func (ec *executionContext) unmarshalInputProbeRequest(ctx context.Context, obj func (ec *executionContext) unmarshalInputRegisterInfraRequest(ctx context.Context, obj interface{}) (model.RegisterInfraRequest, error) { var it model.RegisterInfraRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + 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": - var err error - it.Name, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Name = data case "environmentID": - var err error - it.EnvironmentID, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environmentID")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.EnvironmentID = data case "infrastructureType": - var err error - it.InfrastructureType, err = ec.unmarshalNInfrastructureType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, v) + 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": - var err error - it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.PlatformName, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("platformName")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.PlatformName = data case "infraNamespace": - var err error - it.InfraNamespace, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.ServiceAccount, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.InfraScope, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraScope")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.InfraScope = data case "infraNsExists": - var err error - it.InfraNsExists, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.InfraSaExists, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.SkipSsl, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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": - var err error - it.NodeSelector, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Tolerations, err = ec.unmarshalOToleration2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐToleration(ctx, v) + 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": - var err error - it.Tags, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } + it.Tags = data } } @@ -29362,52 +37691,67 @@ func (ec *executionContext) unmarshalInputRegisterInfraRequest(ctx context.Conte func (ec *executionContext) unmarshalInputSaveChaosExperimentRequest(ctx context.Context, obj interface{}) (model.SaveChaosExperimentRequest, error) { var it model.SaveChaosExperimentRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"id", "type", "name", "description", "manifest", "infraID", "tags"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "id": - var err error - it.ID, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ID = data case "type": - var err error - it.Type, err = ec.unmarshalOExperimentType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentType(ctx, v) + 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": - var err error - it.Name, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Name = data case "description": - var err error - it.Description, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Description = data case "manifest": - var err error - it.Manifest, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("manifest")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Manifest = data case "infraID": - var err error - it.InfraID, err = ec.unmarshalNID2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infraID")) + data, err := ec.unmarshalNID2string(ctx, v) if err != nil { return it, err } + it.InfraID = data case "tags": - var err error - it.Tags, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } + it.Tags = data } } @@ -29416,40 +37760,53 @@ func (ec *executionContext) unmarshalInputSaveChaosExperimentRequest(ctx context func (ec *executionContext) unmarshalInputToleration(ctx context.Context, obj interface{}) (model.Toleration, error) { var it model.Toleration - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"tolerationSeconds", "key", "operator", "effect", "value"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "tolerationSeconds": - var err error - it.TolerationSeconds, err = ec.unmarshalOInt2ᚖint(ctx, v) + 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": - var err error - it.Key, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Operator, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Effect, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Value, err = ec.unmarshalOString2ᚖstring(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Value = data } } @@ -29458,88 +37815,109 @@ func (ec *executionContext) unmarshalInputToleration(ctx context.Context, obj in func (ec *executionContext) unmarshalInputUpdateChaosHubRequest(ctx context.Context, obj interface{}) (model.UpdateChaosHubRequest, error) { var it model.UpdateChaosHubRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"id", "name", "description", "tags", "repoURL", "repoBranch", "isPrivate", "authType", "token", "userName", "password", "sshPrivateKey", "sshPublicKey"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "id": - var err error - it.ID, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.ID = data case "name": - var err error - it.Name, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Name = data case "description": - var err error - it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Tags, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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": - var err error - it.RepoURL, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoURL")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.RepoURL = data case "repoBranch": - var err error - it.RepoBranch, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoBranch")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.RepoBranch = data case "isPrivate": - var err error - it.IsPrivate, err = ec.unmarshalNBoolean2bool(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isPrivate")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { return it, err } + it.IsPrivate = data case "authType": - var err error - it.AuthType, err = ec.unmarshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, v) + 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": - var err error - it.Token, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.UserName, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Password, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.SSHPrivateKey, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.SSHPublicKey, err = ec.unmarshalOString2ᚖstring(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sshPublicKey")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.SSHPublicKey = data } } @@ -29548,40 +37926,53 @@ func (ec *executionContext) unmarshalInputUpdateChaosHubRequest(ctx context.Cont func (ec *executionContext) unmarshalInputUpdateEnvironmentRequest(ctx context.Context, obj interface{}) (model.UpdateEnvironmentRequest, error) { var it model.UpdateEnvironmentRequest - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"environmentID", "name", "description", "tags", "type"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "environmentID": - var err error - it.EnvironmentID, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environmentID")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.EnvironmentID = data case "name": - var err error - it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) + 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": - var err error - it.Tags, err = ec.unmarshalOString2ᚕᚖstring(ctx, v) + 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": - var err error - it.Type, err = ec.unmarshalOEnvironmentType2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx, v) + 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 } } @@ -29590,22 +37981,32 @@ func (ec *executionContext) unmarshalInputUpdateEnvironmentRequest(ctx context.C func (ec *executionContext) unmarshalInputWeightagesInput(ctx context.Context, obj interface{}) (model.WeightagesInput, error) { var it model.WeightagesInput - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"faultName", "weightage"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "faultName": - var err error - it.FaultName, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("faultName")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.FaultName = data case "weightage": - var err error - it.Weightage, err = ec.unmarshalNInt2int(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("weightage")) + data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { return it, err } + it.Weightage = data } } @@ -29614,28 +38015,39 @@ func (ec *executionContext) unmarshalInputWeightagesInput(ctx context.Context, o func (ec *executionContext) unmarshalInputWorkload(ctx context.Context, obj interface{}) (model.Workload, error) { var it model.Workload - var asMap = obj.(map[string]interface{}) + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } - for k, v := range asMap { + fieldsInOrder := [...]string{"name", "kind", "namespace"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } switch k { case "name": - var err error - it.Name, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Name = data case "kind": - var err error - it.Kind, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Kind = data case "namespace": - var err error - it.Namespace, err = ec.unmarshalNString2string(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Namespace = data } } @@ -29650,20 +38062,6 @@ func (ec *executionContext) _Audit(ctx context.Context, sel ast.SelectionSet, ob switch obj := (obj).(type) { case nil: return graphql.Null - 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.Experiment: return ec._Experiment(ctx, sel, &obj) case *model.Experiment: @@ -29699,13 +38097,6 @@ func (ec *executionContext) _Audit(ctx context.Context, sel ast.SelectionSet, ob return graphql.Null } return ec._Environment(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) case model.Probe: return ec._Probe(ctx, sel, &obj) case *model.Probe: @@ -29713,6 +38104,27 @@ func (ec *executionContext) _Audit(ctx context.Context, sel ast.SelectionSet, ob 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)) } @@ -29816,7 +38228,7 @@ func (ec *executionContext) _ActionPayload(ctx context.Context, sel ast.Selectio fields := graphql.CollectFields(ec.OperationContext, sel, actionPayloadImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -29824,22 +38236,22 @@ func (ec *executionContext) _ActionPayload(ctx context.Context, sel ast.Selectio case "requestID": out.Values[i] = ec._ActionPayload_requestID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "requestType": out.Values[i] = ec._ActionPayload_requestType(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "k8sManifest": out.Values[i] = ec._ActionPayload_k8sManifest(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "namespace": out.Values[i] = ec._ActionPayload_namespace(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "externalData": out.Values[i] = ec._ActionPayload_externalData(ctx, field, obj) @@ -29849,10 +38261,22 @@ func (ec *executionContext) _ActionPayload(ctx context.Context, sel ast.Selectio panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -29862,7 +38286,7 @@ func (ec *executionContext) _Annotation(ctx context.Context, sel ast.SelectionSe fields := graphql.CollectFields(ec.OperationContext, sel, annotationImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -29870,41 +38294,53 @@ func (ec *executionContext) _Annotation(ctx context.Context, sel ast.SelectionSe case "categories": out.Values[i] = ec._Annotation_categories(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "vendor": out.Values[i] = ec._Annotation_vendor(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "createdAt": out.Values[i] = ec._Annotation_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "repository": out.Values[i] = ec._Annotation_repository(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "support": out.Values[i] = ec._Annotation_support(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "chartDescription": out.Values[i] = ec._Annotation_chartDescription(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -29914,7 +38350,7 @@ func (ec *executionContext) _ChaosExperimentResponse(ctx context.Context, sel as fields := graphql.CollectFields(ec.OperationContext, sel, chaosExperimentResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -29922,32 +38358,32 @@ func (ec *executionContext) _ChaosExperimentResponse(ctx context.Context, sel as case "experimentID": out.Values[i] = ec._ChaosExperimentResponse_experimentID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "projectID": out.Values[i] = ec._ChaosExperimentResponse_projectID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "cronSyntax": out.Values[i] = ec._ChaosExperimentResponse_cronSyntax(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentName": out.Values[i] = ec._ChaosExperimentResponse_experimentName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentDescription": out.Values[i] = ec._ChaosExperimentResponse_experimentDescription(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isCustomExperiment": out.Values[i] = ec._ChaosExperimentResponse_isCustomExperiment(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "tags": out.Values[i] = ec._ChaosExperimentResponse_tags(ctx, field, obj) @@ -29955,10 +38391,22 @@ func (ec *executionContext) _ChaosExperimentResponse(ctx context.Context, sel as panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -29968,7 +38416,7 @@ func (ec *executionContext) _ChaosHub(ctx context.Context, sel ast.SelectionSet, fields := graphql.CollectFields(ec.OperationContext, sel, chaosHubImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -29976,32 +38424,32 @@ func (ec *executionContext) _ChaosHub(ctx context.Context, sel ast.SelectionSet, case "id": out.Values[i] = ec._ChaosHub_id(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "repoURL": out.Values[i] = ec._ChaosHub_repoURL(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "repoBranch": out.Values[i] = ec._ChaosHub_repoBranch(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "projectID": out.Values[i] = ec._ChaosHub_projectID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isDefault": out.Values[i] = ec._ChaosHub_isDefault(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": out.Values[i] = ec._ChaosHub_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "tags": out.Values[i] = ec._ChaosHub_tags(ctx, field, obj) @@ -30014,17 +38462,17 @@ func (ec *executionContext) _ChaosHub(ctx context.Context, sel ast.SelectionSet, case "hubType": out.Values[i] = ec._ChaosHub_hubType(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isPrivate": out.Values[i] = ec._ChaosHub_isPrivate(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "authType": out.Values[i] = ec._ChaosHub_authType(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "token": out.Values[i] = ec._ChaosHub_token(ctx, field, obj) @@ -30037,31 +38485,43 @@ func (ec *executionContext) _ChaosHub(ctx context.Context, sel ast.SelectionSet, case "isRemoved": out.Values[i] = ec._ChaosHub_isRemoved(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "createdAt": out.Values[i] = ec._ChaosHub_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "updatedAt": out.Values[i] = ec._ChaosHub_updatedAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "lastSyncedAt": out.Values[i] = ec._ChaosHub_lastSyncedAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30071,7 +38531,7 @@ func (ec *executionContext) _ChaosHubStatus(ctx context.Context, sel ast.Selecti fields := graphql.CollectFields(ec.OperationContext, sel, chaosHubStatusImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30079,52 +38539,52 @@ func (ec *executionContext) _ChaosHubStatus(ctx context.Context, sel ast.Selecti case "id": out.Values[i] = ec._ChaosHubStatus_id(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "repoURL": out.Values[i] = ec._ChaosHubStatus_repoURL(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "repoBranch": out.Values[i] = ec._ChaosHubStatus_repoBranch(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isAvailable": out.Values[i] = ec._ChaosHubStatus_isAvailable(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalFaults": out.Values[i] = ec._ChaosHubStatus_totalFaults(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalExperiments": out.Values[i] = ec._ChaosHubStatus_totalExperiments(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": out.Values[i] = ec._ChaosHubStatus_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "hubType": out.Values[i] = ec._ChaosHubStatus_hubType(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isPrivate": out.Values[i] = ec._ChaosHubStatus_isPrivate(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "authType": out.Values[i] = ec._ChaosHubStatus_authType(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "token": out.Values[i] = ec._ChaosHubStatus_token(ctx, field, obj) @@ -30135,7 +38595,7 @@ func (ec *executionContext) _ChaosHubStatus(ctx context.Context, sel ast.Selecti case "isRemoved": out.Values[i] = ec._ChaosHubStatus_isRemoved(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "sshPrivateKey": out.Values[i] = ec._ChaosHubStatus_sshPrivateKey(ctx, field, obj) @@ -30144,7 +38604,7 @@ func (ec *executionContext) _ChaosHubStatus(ctx context.Context, sel ast.Selecti case "lastSyncedAt": out.Values[i] = ec._ChaosHubStatus_lastSyncedAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "tags": out.Values[i] = ec._ChaosHubStatus_tags(ctx, field, obj) @@ -30155,28 +38615,40 @@ func (ec *executionContext) _ChaosHubStatus(ctx context.Context, sel ast.Selecti case "createdAt": out.Values[i] = ec._ChaosHubStatus_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "updatedAt": out.Values[i] = ec._ChaosHubStatus_updatedAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + 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 { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30186,7 +38658,7 @@ func (ec *executionContext) _Chart(ctx context.Context, sel ast.SelectionSet, ob fields := graphql.CollectFields(ec.OperationContext, sel, chartImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30194,36 +38666,48 @@ func (ec *executionContext) _Chart(ctx context.Context, sel ast.SelectionSet, ob case "apiVersion": out.Values[i] = ec._Chart_apiVersion(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "kind": out.Values[i] = ec._Chart_kind(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "metadata": out.Values[i] = ec._Chart_metadata(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "spec": out.Values[i] = ec._Chart_spec(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "packageInfo": out.Values[i] = ec._Chart_packageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30233,7 +38717,7 @@ func (ec *executionContext) _Comparator(ctx context.Context, sel ast.SelectionSe fields := graphql.CollectFields(ec.OperationContext, sel, comparatorImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30241,26 +38725,38 @@ func (ec *executionContext) _Comparator(ctx context.Context, sel ast.SelectionSe case "type": out.Values[i] = ec._Comparator_type(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "value": out.Values[i] = ec._Comparator_value(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "criteria": out.Values[i] = ec._Comparator_criteria(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30270,7 +38766,7 @@ func (ec *executionContext) _ConfirmInfraRegistrationResponse(ctx context.Contex fields := graphql.CollectFields(ec.OperationContext, sel, confirmInfraRegistrationResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30278,7 +38774,7 @@ func (ec *executionContext) _ConfirmInfraRegistrationResponse(ctx context.Contex case "isInfraConfirmed": out.Values[i] = ec._ConfirmInfraRegistrationResponse_isInfraConfirmed(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "newAccessKey": out.Values[i] = ec._ConfirmInfraRegistrationResponse_newAccessKey(ctx, field, obj) @@ -30288,10 +38784,22 @@ func (ec *executionContext) _ConfirmInfraRegistrationResponse(ctx context.Contex panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30301,7 +38809,7 @@ func (ec *executionContext) _Environment(ctx context.Context, sel ast.SelectionS fields := graphql.CollectFields(ec.OperationContext, sel, environmentImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30309,17 +38817,17 @@ func (ec *executionContext) _Environment(ctx context.Context, sel ast.SelectionS case "projectID": out.Values[i] = ec._Environment_projectID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "environmentID": out.Values[i] = ec._Environment_environmentID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": out.Values[i] = ec._Environment_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "description": out.Values[i] = ec._Environment_description(ctx, field, obj) @@ -30328,12 +38836,12 @@ func (ec *executionContext) _Environment(ctx context.Context, sel ast.SelectionS case "type": out.Values[i] = ec._Environment_type(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "createdAt": out.Values[i] = ec._Environment_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "createdBy": out.Values[i] = ec._Environment_createdBy(ctx, field, obj) @@ -30342,7 +38850,7 @@ func (ec *executionContext) _Environment(ctx context.Context, sel ast.SelectionS case "updatedAt": out.Values[i] = ec._Environment_updatedAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isRemoved": out.Values[i] = ec._Environment_isRemoved(ctx, field, obj) @@ -30352,10 +38860,22 @@ func (ec *executionContext) _Environment(ctx context.Context, sel ast.SelectionS panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30365,7 +38885,7 @@ func (ec *executionContext) _ExecutedByExperiment(ctx context.Context, sel ast.S fields := graphql.CollectFields(ec.OperationContext, sel, executedByExperimentImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30373,17 +38893,17 @@ func (ec *executionContext) _ExecutedByExperiment(ctx context.Context, sel ast.S case "experimentID": out.Values[i] = ec._ExecutedByExperiment_experimentID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentName": out.Values[i] = ec._ExecutedByExperiment_experimentName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "updatedAt": out.Values[i] = ec._ExecutedByExperiment_updatedAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "updatedBy": out.Values[i] = ec._ExecutedByExperiment_updatedBy(ctx, field, obj) @@ -30391,10 +38911,22 @@ func (ec *executionContext) _ExecutedByExperiment(ctx context.Context, sel ast.S panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30404,7 +38936,7 @@ func (ec *executionContext) _ExecutionHistory(ctx context.Context, sel ast.Selec fields := graphql.CollectFields(ec.OperationContext, sel, executionHistoryImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30412,31 +38944,43 @@ func (ec *executionContext) _ExecutionHistory(ctx context.Context, sel ast.Selec case "mode": out.Values[i] = ec._ExecutionHistory_mode(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "faultName": out.Values[i] = ec._ExecutionHistory_faultName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "status": out.Values[i] = ec._ExecutionHistory_status(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "executedByExperiment": out.Values[i] = ec._ExecutionHistory_executedByExperiment(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30446,7 +38990,7 @@ func (ec *executionContext) _Experiment(ctx context.Context, sel ast.SelectionSe fields := graphql.CollectFields(ec.OperationContext, sel, experimentImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30454,61 +38998,61 @@ func (ec *executionContext) _Experiment(ctx context.Context, sel ast.SelectionSe case "projectID": out.Values[i] = ec._Experiment_projectID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentID": out.Values[i] = ec._Experiment_experimentID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + 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 { - invalids++ + out.Invalids++ } case "cronSyntax": out.Values[i] = ec._Experiment_cronSyntax(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": out.Values[i] = ec._Experiment_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "description": out.Values[i] = ec._Experiment_description(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "weightages": out.Values[i] = ec._Experiment_weightages(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isCustomExperiment": out.Values[i] = ec._Experiment_isCustomExperiment(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "updatedAt": out.Values[i] = ec._Experiment_updatedAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "createdAt": out.Values[i] = ec._Experiment_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + 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 { - invalids++ + out.Invalids++ } case "tags": out.Values[i] = ec._Experiment_tags(ctx, field, obj) @@ -30522,10 +39066,22 @@ func (ec *executionContext) _Experiment(ctx context.Context, sel ast.SelectionSe panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30535,7 +39091,7 @@ func (ec *executionContext) _ExperimentDetails(ctx context.Context, sel ast.Sele fields := graphql.CollectFields(ec.OperationContext, sel, experimentDetailsImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30543,21 +39099,33 @@ func (ec *executionContext) _ExperimentDetails(ctx context.Context, sel ast.Sele case "engineDetails": out.Values[i] = ec._ExperimentDetails_engineDetails(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentDetails": out.Values[i] = ec._ExperimentDetails_experimentDetails(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30567,7 +39135,7 @@ func (ec *executionContext) _ExperimentRun(ctx context.Context, sel ast.Selectio fields := graphql.CollectFields(ec.OperationContext, sel, experimentRunImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30575,54 +39143,54 @@ func (ec *executionContext) _ExperimentRun(ctx context.Context, sel ast.Selectio case "projectID": out.Values[i] = ec._ExperimentRun_projectID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentRunID": out.Values[i] = ec._ExperimentRun_experimentRunID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + 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 { - invalids++ + out.Invalids++ } case "weightages": out.Values[i] = ec._ExperimentRun_weightages(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "updatedAt": out.Values[i] = ec._ExperimentRun_updatedAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "createdAt": out.Values[i] = ec._ExperimentRun_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "infra": out.Values[i] = ec._ExperimentRun_infra(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentName": out.Values[i] = ec._ExperimentRun_experimentName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentManifest": out.Values[i] = ec._ExperimentRun_experimentManifest(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "phase": out.Values[i] = ec._ExperimentRun_phase(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "resiliencyScore": out.Values[i] = ec._ExperimentRun_resiliencyScore(ctx, field, obj) @@ -30641,7 +39209,7 @@ func (ec *executionContext) _ExperimentRun(ctx context.Context, sel ast.Selectio case "executionData": out.Values[i] = ec._ExperimentRun_executionData(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isRemoved": out.Values[i] = ec._ExperimentRun_isRemoved(ctx, field, obj) @@ -30654,16 +39222,28 @@ func (ec *executionContext) _ExperimentRun(ctx context.Context, sel ast.Selectio case "runSequence": out.Values[i] = ec._ExperimentRun_runSequence(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30673,7 +39253,7 @@ func (ec *executionContext) _Experiments(ctx context.Context, sel ast.SelectionS fields := graphql.CollectFields(ec.OperationContext, sel, experimentsImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30681,26 +39261,38 @@ func (ec *executionContext) _Experiments(ctx context.Context, sel ast.SelectionS case "name": out.Values[i] = ec._Experiments_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "CSV": out.Values[i] = ec._Experiments_CSV(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "desc": out.Values[i] = ec._Experiments_desc(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30710,7 +39302,7 @@ func (ec *executionContext) _FaultDetails(ctx context.Context, sel ast.Selection fields := graphql.CollectFields(ec.OperationContext, sel, faultDetailsImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30718,26 +39310,38 @@ func (ec *executionContext) _FaultDetails(ctx context.Context, sel ast.Selection case "fault": out.Values[i] = ec._FaultDetails_fault(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "engine": out.Values[i] = ec._FaultDetails_engine(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "csv": out.Values[i] = ec._FaultDetails_csv(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30747,7 +39351,7 @@ func (ec *executionContext) _FaultList(ctx context.Context, sel ast.SelectionSet fields := graphql.CollectFields(ec.OperationContext, sel, faultListImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30755,17 +39359,17 @@ func (ec *executionContext) _FaultList(ctx context.Context, sel ast.SelectionSet case "name": out.Values[i] = ec._FaultList_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "displayName": out.Values[i] = ec._FaultList_displayName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "description": out.Values[i] = ec._FaultList_description(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "plan": out.Values[i] = ec._FaultList_plan(ctx, field, obj) @@ -30773,10 +39377,22 @@ func (ec *executionContext) _FaultList(ctx context.Context, sel ast.SelectionSet panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30786,7 +39402,7 @@ func (ec *executionContext) _GET(ctx context.Context, sel ast.SelectionSet, obj fields := graphql.CollectFields(ec.OperationContext, sel, gETImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30794,21 +39410,33 @@ func (ec *executionContext) _GET(ctx context.Context, sel ast.SelectionSet, obj case "criteria": out.Values[i] = ec._GET_criteria(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "responseCode": out.Values[i] = ec._GET_responseCode(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30818,7 +39446,7 @@ func (ec *executionContext) _GetChaosHubStatsResponse(ctx context.Context, sel a fields := graphql.CollectFields(ec.OperationContext, sel, getChaosHubStatsResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30826,16 +39454,28 @@ func (ec *executionContext) _GetChaosHubStatsResponse(ctx context.Context, sel a case "totalChaosHubs": out.Values[i] = ec._GetChaosHubStatsResponse_totalChaosHubs(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30845,7 +39485,7 @@ func (ec *executionContext) _GetExperimentResponse(ctx context.Context, sel ast. fields := graphql.CollectFields(ec.OperationContext, sel, getExperimentResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30853,7 +39493,7 @@ func (ec *executionContext) _GetExperimentResponse(ctx context.Context, sel ast. case "experimentDetails": out.Values[i] = ec._GetExperimentResponse_experimentDetails(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "averageResiliencyScore": out.Values[i] = ec._GetExperimentResponse_averageResiliencyScore(ctx, field, obj) @@ -30861,10 +39501,22 @@ func (ec *executionContext) _GetExperimentResponse(ctx context.Context, sel ast. panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30874,7 +39526,7 @@ func (ec *executionContext) _GetExperimentRunStatsResponse(ctx context.Context, fields := graphql.CollectFields(ec.OperationContext, sel, getExperimentRunStatsResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30882,41 +39534,53 @@ func (ec *executionContext) _GetExperimentRunStatsResponse(ctx context.Context, case "totalExperimentRuns": out.Values[i] = ec._GetExperimentRunStatsResponse_totalExperimentRuns(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalCompletedExperimentRuns": out.Values[i] = ec._GetExperimentRunStatsResponse_totalCompletedExperimentRuns(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalTerminatedExperimentRuns": out.Values[i] = ec._GetExperimentRunStatsResponse_totalTerminatedExperimentRuns(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalRunningExperimentRuns": out.Values[i] = ec._GetExperimentRunStatsResponse_totalRunningExperimentRuns(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalStoppedExperimentRuns": out.Values[i] = ec._GetExperimentRunStatsResponse_totalStoppedExperimentRuns(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalErroredExperimentRuns": out.Values[i] = ec._GetExperimentRunStatsResponse_totalErroredExperimentRuns(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30926,7 +39590,7 @@ func (ec *executionContext) _GetExperimentStatsResponse(ctx context.Context, sel fields := graphql.CollectFields(ec.OperationContext, sel, getExperimentStatsResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30934,21 +39598,33 @@ func (ec *executionContext) _GetExperimentStatsResponse(ctx context.Context, sel case "totalExperiments": out.Values[i] = ec._GetExperimentStatsResponse_totalExperiments(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalExpCategorizedByResiliencyScore": out.Values[i] = ec._GetExperimentStatsResponse_totalExpCategorizedByResiliencyScore(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -30958,7 +39634,7 @@ func (ec *executionContext) _GetInfraStatsResponse(ctx context.Context, sel ast. fields := graphql.CollectFields(ec.OperationContext, sel, getInfraStatsResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -30966,36 +39642,48 @@ func (ec *executionContext) _GetInfraStatsResponse(ctx context.Context, sel ast. case "totalInfrastructures": out.Values[i] = ec._GetInfraStatsResponse_totalInfrastructures(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalActiveInfrastructure": out.Values[i] = ec._GetInfraStatsResponse_totalActiveInfrastructure(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalInactiveInfrastructures": out.Values[i] = ec._GetInfraStatsResponse_totalInactiveInfrastructures(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalConfirmedInfrastructure": out.Values[i] = ec._GetInfraStatsResponse_totalConfirmedInfrastructure(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalNonConfirmedInfrastructures": out.Values[i] = ec._GetInfraStatsResponse_totalNonConfirmedInfrastructures(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31005,7 +39693,7 @@ func (ec *executionContext) _GetProbeReferenceResponse(ctx context.Context, sel fields := graphql.CollectFields(ec.OperationContext, sel, getProbeReferenceResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31013,31 +39701,43 @@ func (ec *executionContext) _GetProbeReferenceResponse(ctx context.Context, sel case "projectID": out.Values[i] = ec._GetProbeReferenceResponse_projectID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": out.Values[i] = ec._GetProbeReferenceResponse_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "totalRuns": out.Values[i] = ec._GetProbeReferenceResponse_totalRuns(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "recentExecutions": out.Values[i] = ec._GetProbeReferenceResponse_recentExecutions(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31047,7 +39747,7 @@ func (ec *executionContext) _GetProbesInExperimentRunResponse(ctx context.Contex fields := graphql.CollectFields(ec.OperationContext, sel, getProbesInExperimentRunResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31055,26 +39755,38 @@ func (ec *executionContext) _GetProbesInExperimentRunResponse(ctx context.Contex case "probe": out.Values[i] = ec._GetProbesInExperimentRunResponse_probe(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "mode": out.Values[i] = ec._GetProbesInExperimentRunResponse_mode(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "status": out.Values[i] = ec._GetProbesInExperimentRunResponse_status(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31084,7 +39796,7 @@ func (ec *executionContext) _GitConfigResponse(ctx context.Context, sel ast.Sele fields := graphql.CollectFields(ec.OperationContext, sel, gitConfigResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31092,12 +39804,12 @@ func (ec *executionContext) _GitConfigResponse(ctx context.Context, sel ast.Sele case "enabled": out.Values[i] = ec._GitConfigResponse_enabled(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "projectID": out.Values[i] = ec._GitConfigResponse_projectID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "branch": out.Values[i] = ec._GitConfigResponse_branch(ctx, field, obj) @@ -31117,10 +39829,22 @@ func (ec *executionContext) _GitConfigResponse(ctx context.Context, sel ast.Sele panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31130,7 +39854,7 @@ func (ec *executionContext) _ImageRegistry(ctx context.Context, sel ast.Selectio fields := graphql.CollectFields(ec.OperationContext, sel, imageRegistryImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31140,17 +39864,17 @@ func (ec *executionContext) _ImageRegistry(ctx context.Context, sel ast.Selectio case "imageRegistryName": out.Values[i] = ec._ImageRegistry_imageRegistryName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "imageRepoName": out.Values[i] = ec._ImageRegistry_imageRepoName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "imageRegistryType": out.Values[i] = ec._ImageRegistry_imageRegistryType(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "secretName": out.Values[i] = ec._ImageRegistry_secretName(ctx, field, obj) @@ -31162,10 +39886,22 @@ func (ec *executionContext) _ImageRegistry(ctx context.Context, sel ast.Selectio panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31175,7 +39911,7 @@ func (ec *executionContext) _ImageRegistryResponse(ctx context.Context, sel ast. fields := graphql.CollectFields(ec.OperationContext, sel, imageRegistryResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31183,19 +39919,19 @@ func (ec *executionContext) _ImageRegistryResponse(ctx context.Context, sel ast. case "isDefault": out.Values[i] = ec._ImageRegistryResponse_isDefault(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + 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 { - invalids++ + out.Invalids++ } case "projectID": out.Values[i] = ec._ImageRegistryResponse_projectID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "updatedAt": out.Values[i] = ec._ImageRegistryResponse_updatedAt(ctx, field, obj) @@ -31211,10 +39947,22 @@ func (ec *executionContext) _ImageRegistryResponse(ctx context.Context, sel ast. panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31224,7 +39972,7 @@ func (ec *executionContext) _Infra(ctx context.Context, sel ast.SelectionSet, ob fields := graphql.CollectFields(ec.OperationContext, sel, infraImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31232,17 +39980,17 @@ func (ec *executionContext) _Infra(ctx context.Context, sel ast.SelectionSet, ob case "projectID": out.Values[i] = ec._Infra_projectID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "infraID": out.Values[i] = ec._Infra_infraID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": out.Values[i] = ec._Infra_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "description": out.Values[i] = ec._Infra_description(ctx, field, obj) @@ -31251,37 +39999,37 @@ func (ec *executionContext) _Infra(ctx context.Context, sel ast.SelectionSet, ob case "environmentID": out.Values[i] = ec._Infra_environmentID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "platformName": out.Values[i] = ec._Infra_platformName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isActive": out.Values[i] = ec._Infra_isActive(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isInfraConfirmed": out.Values[i] = ec._Infra_isInfraConfirmed(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isRemoved": out.Values[i] = ec._Infra_isRemoved(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "updatedAt": out.Values[i] = ec._Infra_updatedAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "createdAt": out.Values[i] = ec._Infra_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "noOfExperiments": out.Values[i] = ec._Infra_noOfExperiments(ctx, field, obj) @@ -31290,7 +40038,7 @@ func (ec *executionContext) _Infra(ctx context.Context, sel ast.SelectionSet, ob case "token": out.Values[i] = ec._Infra_token(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "infraNamespace": out.Values[i] = ec._Infra_infraNamespace(ctx, field, obj) @@ -31299,7 +40047,7 @@ func (ec *executionContext) _Infra(ctx context.Context, sel ast.SelectionSet, ob case "infraScope": out.Values[i] = ec._Infra_infraScope(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "infraNsExists": out.Values[i] = ec._Infra_infraNsExists(ctx, field, obj) @@ -31310,12 +40058,12 @@ func (ec *executionContext) _Infra(ctx context.Context, sel ast.SelectionSet, ob case "startTime": out.Values[i] = ec._Infra_startTime(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "version": out.Values[i] = ec._Infra_version(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "createdBy": out.Values[i] = ec._Infra_createdBy(ctx, field, obj) @@ -31326,16 +40074,28 @@ func (ec *executionContext) _Infra(ctx context.Context, sel ast.SelectionSet, ob case "updateStatus": out.Values[i] = ec._Infra_updateStatus(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31345,7 +40105,7 @@ func (ec *executionContext) _InfraActionResponse(ctx context.Context, sel ast.Se fields := graphql.CollectFields(ec.OperationContext, sel, infraActionResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31353,21 +40113,33 @@ func (ec *executionContext) _InfraActionResponse(ctx context.Context, sel ast.Se case "projectID": out.Values[i] = ec._InfraActionResponse_projectID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "action": out.Values[i] = ec._InfraActionResponse_action(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31377,7 +40149,7 @@ func (ec *executionContext) _InfraEventResponse(ctx context.Context, sel ast.Sel fields := graphql.CollectFields(ec.OperationContext, sel, infraEventResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31385,36 +40157,48 @@ func (ec *executionContext) _InfraEventResponse(ctx context.Context, sel ast.Sel case "eventID": out.Values[i] = ec._InfraEventResponse_eventID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "eventType": out.Values[i] = ec._InfraEventResponse_eventType(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "eventName": out.Values[i] = ec._InfraEventResponse_eventName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "description": out.Values[i] = ec._InfraEventResponse_description(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "infra": out.Values[i] = ec._InfraEventResponse_infra(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31424,7 +40208,7 @@ func (ec *executionContext) _InfraVersionDetails(ctx context.Context, sel ast.Se fields := graphql.CollectFields(ec.OperationContext, sel, infraVersionDetailsImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31432,21 +40216,33 @@ func (ec *executionContext) _InfraVersionDetails(ctx context.Context, sel ast.Se case "latestVersion": out.Values[i] = ec._InfraVersionDetails_latestVersion(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "compatibleVersions": out.Values[i] = ec._InfraVersionDetails_compatibleVersions(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31456,7 +40252,7 @@ func (ec *executionContext) _K8SProbe(ctx context.Context, sel ast.SelectionSet, fields := graphql.CollectFields(ec.OperationContext, sel, k8SProbeImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31464,12 +40260,12 @@ func (ec *executionContext) _K8SProbe(ctx context.Context, sel ast.SelectionSet, case "probeTimeout": out.Values[i] = ec._K8SProbe_probeTimeout(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "interval": out.Values[i] = ec._K8SProbe_interval(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "retry": out.Values[i] = ec._K8SProbe_retry(ctx, field, obj) @@ -31488,12 +40284,12 @@ func (ec *executionContext) _K8SProbe(ctx context.Context, sel ast.SelectionSet, case "version": out.Values[i] = ec._K8SProbe_version(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "resource": out.Values[i] = ec._K8SProbe_resource(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "namespace": out.Values[i] = ec._K8SProbe_namespace(ctx, field, obj) @@ -31506,16 +40302,28 @@ func (ec *executionContext) _K8SProbe(ctx context.Context, sel ast.SelectionSet, case "operation": out.Values[i] = ec._K8SProbe_operation(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31525,7 +40333,7 @@ func (ec *executionContext) _KubeObject(ctx context.Context, sel ast.SelectionSe fields := graphql.CollectFields(ec.OperationContext, sel, kubeObjectImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31533,21 +40341,33 @@ func (ec *executionContext) _KubeObject(ctx context.Context, sel ast.SelectionSe case "namespace": out.Values[i] = ec._KubeObject_namespace(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "data": out.Values[i] = ec._KubeObject_data(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31557,7 +40377,7 @@ func (ec *executionContext) _KubeObjectResponse(ctx context.Context, sel ast.Sel fields := graphql.CollectFields(ec.OperationContext, sel, kubeObjectResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31565,21 +40385,33 @@ func (ec *executionContext) _KubeObjectResponse(ctx context.Context, sel ast.Sel case "infraID": out.Values[i] = ec._KubeObjectResponse_infraID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "kubeObj": out.Values[i] = ec._KubeObjectResponse_kubeObj(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31589,7 +40421,7 @@ func (ec *executionContext) _KubernetesCMDProbe(ctx context.Context, sel ast.Sel fields := graphql.CollectFields(ec.OperationContext, sel, kubernetesCMDProbeImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31597,12 +40429,12 @@ func (ec *executionContext) _KubernetesCMDProbe(ctx context.Context, sel ast.Sel case "probeTimeout": out.Values[i] = ec._KubernetesCMDProbe_probeTimeout(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "interval": out.Values[i] = ec._KubernetesCMDProbe_interval(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "retry": out.Values[i] = ec._KubernetesCMDProbe_retry(ctx, field, obj) @@ -31619,12 +40451,12 @@ func (ec *executionContext) _KubernetesCMDProbe(ctx context.Context, sel ast.Sel case "command": out.Values[i] = ec._KubernetesCMDProbe_command(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "comparator": out.Values[i] = ec._KubernetesCMDProbe_comparator(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "source": out.Values[i] = ec._KubernetesCMDProbe_source(ctx, field, obj) @@ -31632,10 +40464,22 @@ func (ec *executionContext) _KubernetesCMDProbe(ctx context.Context, sel ast.Sel panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31645,7 +40489,7 @@ func (ec *executionContext) _KubernetesHTTPProbe(ctx context.Context, sel ast.Se fields := graphql.CollectFields(ec.OperationContext, sel, kubernetesHTTPProbeImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31653,12 +40497,12 @@ func (ec *executionContext) _KubernetesHTTPProbe(ctx context.Context, sel ast.Se case "probeTimeout": out.Values[i] = ec._KubernetesHTTPProbe_probeTimeout(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "interval": out.Values[i] = ec._KubernetesHTTPProbe_interval(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "retry": out.Values[i] = ec._KubernetesHTTPProbe_retry(ctx, field, obj) @@ -31675,12 +40519,12 @@ func (ec *executionContext) _KubernetesHTTPProbe(ctx context.Context, sel ast.Se case "url": out.Values[i] = ec._KubernetesHTTPProbe_url(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "method": out.Values[i] = ec._KubernetesHTTPProbe_method(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "insecureSkipVerify": out.Values[i] = ec._KubernetesHTTPProbe_insecureSkipVerify(ctx, field, obj) @@ -31688,10 +40532,22 @@ func (ec *executionContext) _KubernetesHTTPProbe(ctx context.Context, sel ast.Se panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31701,7 +40557,7 @@ func (ec *executionContext) _Link(ctx context.Context, sel ast.SelectionSet, obj fields := graphql.CollectFields(ec.OperationContext, sel, linkImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31709,21 +40565,33 @@ func (ec *executionContext) _Link(ctx context.Context, sel ast.SelectionSet, obj case "name": out.Values[i] = ec._Link_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "url": out.Values[i] = ec._Link_url(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31733,7 +40601,7 @@ func (ec *executionContext) _ListEnvironmentResponse(ctx context.Context, sel as fields := graphql.CollectFields(ec.OperationContext, sel, listEnvironmentResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31741,7 +40609,7 @@ func (ec *executionContext) _ListEnvironmentResponse(ctx context.Context, sel as case "totalNoOfEnvironments": out.Values[i] = ec._ListEnvironmentResponse_totalNoOfEnvironments(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "environments": out.Values[i] = ec._ListEnvironmentResponse_environments(ctx, field, obj) @@ -31749,10 +40617,22 @@ func (ec *executionContext) _ListEnvironmentResponse(ctx context.Context, sel as panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31762,7 +40642,7 @@ func (ec *executionContext) _ListExperimentResponse(ctx context.Context, sel ast fields := graphql.CollectFields(ec.OperationContext, sel, listExperimentResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31770,21 +40650,33 @@ func (ec *executionContext) _ListExperimentResponse(ctx context.Context, sel ast case "totalNoOfExperiments": out.Values[i] = ec._ListExperimentResponse_totalNoOfExperiments(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experiments": out.Values[i] = ec._ListExperimentResponse_experiments(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31794,7 +40686,7 @@ func (ec *executionContext) _ListExperimentRunResponse(ctx context.Context, sel fields := graphql.CollectFields(ec.OperationContext, sel, listExperimentRunResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31802,21 +40694,33 @@ func (ec *executionContext) _ListExperimentRunResponse(ctx context.Context, sel case "totalNoOfExperimentRuns": out.Values[i] = ec._ListExperimentRunResponse_totalNoOfExperimentRuns(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentRuns": out.Values[i] = ec._ListExperimentRunResponse_experimentRuns(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31826,7 +40730,7 @@ func (ec *executionContext) _ListInfraResponse(ctx context.Context, sel ast.Sele fields := graphql.CollectFields(ec.OperationContext, sel, listInfraResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31834,21 +40738,33 @@ func (ec *executionContext) _ListInfraResponse(ctx context.Context, sel ast.Sele case "totalNoOfInfras": out.Values[i] = ec._ListInfraResponse_totalNoOfInfras(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "infras": out.Values[i] = ec._ListInfraResponse_infras(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31858,7 +40774,7 @@ func (ec *executionContext) _Maintainer(ctx context.Context, sel ast.SelectionSe fields := graphql.CollectFields(ec.OperationContext, sel, maintainerImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31866,21 +40782,33 @@ func (ec *executionContext) _Maintainer(ctx context.Context, sel ast.SelectionSe case "name": out.Values[i] = ec._Maintainer_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "email": out.Values[i] = ec._Maintainer_email(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31890,7 +40818,7 @@ func (ec *executionContext) _Metadata(ctx context.Context, sel ast.SelectionSet, fields := graphql.CollectFields(ec.OperationContext, sel, metadataImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31898,26 +40826,38 @@ func (ec *executionContext) _Metadata(ctx context.Context, sel ast.SelectionSet, case "name": out.Values[i] = ec._Metadata_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "version": out.Values[i] = ec._Metadata_version(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "annotations": out.Values[i] = ec._Metadata_annotations(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31927,7 +40867,7 @@ func (ec *executionContext) _Method(ctx context.Context, sel ast.SelectionSet, o fields := graphql.CollectFields(ec.OperationContext, sel, methodImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -31940,10 +40880,22 @@ func (ec *executionContext) _Method(ctx context.Context, sel ast.SelectionSet, o panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -31951,192 +40903,276 @@ 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) - var invalids uint32 + 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._Mutation_createChaosExperiment(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "saveChaosExperiment": - out.Values[i] = ec._Mutation_saveChaosExperiment(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "updateChaosExperiment": - out.Values[i] = ec._Mutation_updateChaosExperiment(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "deleteChaosExperiment": - out.Values[i] = ec._Mutation_deleteChaosExperiment(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "updateCronExperimentState": - out.Values[i] = ec._Mutation_updateCronExperimentState(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "chaosExperimentRun": - out.Values[i] = ec._Mutation_chaosExperimentRun(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "runChaosExperiment": - out.Values[i] = ec._Mutation_runChaosExperiment(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "stopExperimentRuns": - out.Values[i] = ec._Mutation_stopExperimentRuns(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "registerInfra": - out.Values[i] = ec._Mutation_registerInfra(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "confirmInfraRegistration": - out.Values[i] = ec._Mutation_confirmInfraRegistration(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "deleteInfra": - out.Values[i] = ec._Mutation_deleteInfra(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "getManifestWithInfraID": - out.Values[i] = ec._Mutation_getManifestWithInfraID(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "podLog": - out.Values[i] = ec._Mutation_podLog(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "kubeObj": - out.Values[i] = ec._Mutation_kubeObj(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "addChaosHub": - out.Values[i] = ec._Mutation_addChaosHub(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "addRemoteChaosHub": - out.Values[i] = ec._Mutation_addRemoteChaosHub(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "saveChaosHub": - out.Values[i] = ec._Mutation_saveChaosHub(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "syncChaosHub": - out.Values[i] = ec._Mutation_syncChaosHub(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "generateSSHKey": - out.Values[i] = ec._Mutation_generateSSHKey(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "updateChaosHub": - out.Values[i] = ec._Mutation_updateChaosHub(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "deleteChaosHub": - out.Values[i] = ec._Mutation_deleteChaosHub(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "createEnvironment": - out.Values[i] = ec._Mutation_createEnvironment(ctx, field) + 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._Mutation_updateEnvironment(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "deleteEnvironment": - out.Values[i] = ec._Mutation_deleteEnvironment(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "gitopsNotifier": - out.Values[i] = ec._Mutation_gitopsNotifier(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "enableGitOps": - out.Values[i] = ec._Mutation_enableGitOps(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "disableGitOps": - out.Values[i] = ec._Mutation_disableGitOps(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "updateGitOps": - out.Values[i] = ec._Mutation_updateGitOps(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "createImageRegistry": - out.Values[i] = ec._Mutation_createImageRegistry(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "updateImageRegistry": - out.Values[i] = ec._Mutation_updateImageRegistry(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "deleteImageRegistry": - out.Values[i] = ec._Mutation_deleteImageRegistry(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "addProbe": - out.Values[i] = ec._Mutation_addProbe(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "updateProbe": - out.Values[i] = ec._Mutation_updateProbe(ctx, field) + 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 { - invalids++ + out.Invalids++ } case "deleteProbe": - out.Values[i] = ec._Mutation_deleteProbe(ctx, field) + 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 { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -32146,7 +41182,7 @@ func (ec *executionContext) _ObjectData(ctx context.Context, sel ast.SelectionSe fields := graphql.CollectFields(ec.OperationContext, sel, objectDataImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -32156,16 +41192,28 @@ func (ec *executionContext) _ObjectData(ctx context.Context, sel ast.SelectionSe case "name": out.Values[i] = ec._ObjectData_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -32175,7 +41223,7 @@ func (ec *executionContext) _POST(ctx context.Context, sel ast.SelectionSet, obj fields := graphql.CollectFields(ec.OperationContext, sel, pOSTImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -32189,21 +41237,33 @@ func (ec *executionContext) _POST(ctx context.Context, sel ast.SelectionSet, obj case "criteria": out.Values[i] = ec._POST_criteria(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "responseCode": out.Values[i] = ec._POST_responseCode(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -32213,7 +41273,7 @@ func (ec *executionContext) _PROMProbe(ctx context.Context, sel ast.SelectionSet fields := graphql.CollectFields(ec.OperationContext, sel, pROMProbeImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -32221,12 +41281,12 @@ func (ec *executionContext) _PROMProbe(ctx context.Context, sel ast.SelectionSet case "probeTimeout": out.Values[i] = ec._PROMProbe_probeTimeout(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "interval": out.Values[i] = ec._PROMProbe_interval(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "retry": out.Values[i] = ec._PROMProbe_retry(ctx, field, obj) @@ -32243,7 +41303,7 @@ func (ec *executionContext) _PROMProbe(ctx context.Context, sel ast.SelectionSet case "endpoint": out.Values[i] = ec._PROMProbe_endpoint(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "query": out.Values[i] = ec._PROMProbe_query(ctx, field, obj) @@ -32252,16 +41312,28 @@ func (ec *executionContext) _PROMProbe(ctx context.Context, sel ast.SelectionSet case "comparator": out.Values[i] = ec._PROMProbe_comparator(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -32271,7 +41343,7 @@ func (ec *executionContext) _PackageInformation(ctx context.Context, sel ast.Sel fields := graphql.CollectFields(ec.OperationContext, sel, packageInformationImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -32279,21 +41351,33 @@ func (ec *executionContext) _PackageInformation(ctx context.Context, sel ast.Sel case "packageName": out.Values[i] = ec._PackageInformation_packageName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experiments": out.Values[i] = ec._PackageInformation_experiments(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -32303,7 +41387,7 @@ func (ec *executionContext) _PodLogResponse(ctx context.Context, sel ast.Selecti fields := graphql.CollectFields(ec.OperationContext, sel, podLogResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -32311,31 +41395,43 @@ func (ec *executionContext) _PodLogResponse(ctx context.Context, sel ast.Selecti case "experimentRunID": out.Values[i] = ec._PodLogResponse_experimentRunID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "podName": out.Values[i] = ec._PodLogResponse_podName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "podType": out.Values[i] = ec._PodLogResponse_podType(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "log": out.Values[i] = ec._PodLogResponse_log(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -32345,7 +41441,7 @@ func (ec *executionContext) _PredefinedExperimentList(ctx context.Context, sel a fields := graphql.CollectFields(ec.OperationContext, sel, predefinedExperimentListImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -32353,26 +41449,38 @@ func (ec *executionContext) _PredefinedExperimentList(ctx context.Context, sel a case "experimentName": out.Values[i] = ec._PredefinedExperimentList_experimentName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentCSV": out.Values[i] = ec._PredefinedExperimentList_experimentCSV(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentManifest": out.Values[i] = ec._PredefinedExperimentList_experimentManifest(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -32382,7 +41490,7 @@ func (ec *executionContext) _Probe(ctx context.Context, sel ast.SelectionSet, ob fields := graphql.CollectFields(ec.OperationContext, sel, probeImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -32390,12 +41498,12 @@ func (ec *executionContext) _Probe(ctx context.Context, sel ast.SelectionSet, ob case "projectID": out.Values[i] = ec._Probe_projectID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": out.Values[i] = ec._Probe_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "description": out.Values[i] = ec._Probe_description(ctx, field, obj) @@ -32404,12 +41512,12 @@ func (ec *executionContext) _Probe(ctx context.Context, sel ast.SelectionSet, ob case "type": out.Values[i] = ec._Probe_type(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "infrastructureType": out.Values[i] = ec._Probe_infrastructureType(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "kubernetesHTTPProperties": out.Values[i] = ec._Probe_kubernetesHTTPProperties(ctx, field, obj) @@ -32426,12 +41534,12 @@ func (ec *executionContext) _Probe(ctx context.Context, sel ast.SelectionSet, ob case "updatedAt": out.Values[i] = ec._Probe_updatedAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "createdAt": out.Values[i] = ec._Probe_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "updatedBy": out.Values[i] = ec._Probe_updatedBy(ctx, field, obj) @@ -32441,10 +41549,22 @@ func (ec *executionContext) _Probe(ctx context.Context, sel ast.SelectionSet, ob panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -32454,7 +41574,7 @@ func (ec *executionContext) _ProbeRecentExecutions(ctx context.Context, sel ast. fields := graphql.CollectFields(ec.OperationContext, sel, probeRecentExecutionsImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -32462,26 +41582,38 @@ func (ec *executionContext) _ProbeRecentExecutions(ctx context.Context, sel ast. case "faultName": out.Values[i] = ec._ProbeRecentExecutions_faultName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "status": out.Values[i] = ec._ProbeRecentExecutions_status(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "executedByExperiment": out.Values[i] = ec._ProbeRecentExecutions_executedByExperiment(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -32491,7 +41623,7 @@ func (ec *executionContext) _Provider(ctx context.Context, sel ast.SelectionSet, fields := graphql.CollectFields(ec.OperationContext, sel, providerImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -32499,16 +41631,28 @@ func (ec *executionContext) _Provider(ctx context.Context, sel ast.SelectionSet, case "name": out.Values[i] = ec._Provider_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -32516,20 +41660,25 @@ 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) - var invalids uint32 + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32537,13 +41686,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getExperiment(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32551,13 +41708,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_listExperiment(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32565,13 +41730,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getExperimentStats(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32579,13 +41752,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getExperimentRun(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32593,13 +41774,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_listExperimentRun(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32607,13 +41796,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getExperimentRunStats(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32621,13 +41818,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getInfra(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32635,13 +41840,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_listInfras(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32649,13 +41862,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getInfraDetails(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32663,13 +41884,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getInfraManifest(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32677,13 +41906,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getInfraStats(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32691,13 +41928,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getVersionDetails(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32705,13 +41950,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getServerVersion(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32719,13 +41972,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_listChaosFaults(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32733,13 +41994,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getChaosFault(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32747,13 +42016,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_listChaosHub(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32761,13 +42038,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getChaosHub(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32775,13 +42060,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_listPredefinedExperiments(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32789,13 +42082,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getPredefinedExperiment(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32803,13 +42104,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getChaosHubStats(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32817,10 +42126,18 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32828,10 +42145,18 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32839,13 +42164,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getGitOpsDetails(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32853,10 +42186,18 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32864,13 +42205,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getImageRegistry(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32878,13 +42227,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_listProbes(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32892,13 +42249,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getProbe(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32906,13 +42271,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getProbeYAML(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32920,13 +42293,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getProbeReference(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32934,13 +42315,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_getProbesInExperimentRun(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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 - out.Concurrently(i, func() (res graphql.Marshaler) { + + 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)) @@ -32948,22 +42337,45 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_validateUniqueProbe(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + 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._Query___type(ctx, field) + 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._Query___schema(ctx, field) + 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() - if invalids > 0 { + 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 } @@ -32973,7 +42385,7 @@ func (ec *executionContext) _RecentExecutions(ctx context.Context, sel ast.Selec fields := graphql.CollectFields(ec.OperationContext, sel, recentExecutionsImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -32981,26 +42393,38 @@ func (ec *executionContext) _RecentExecutions(ctx context.Context, sel ast.Selec case "faultName": out.Values[i] = ec._RecentExecutions_faultName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "mode": out.Values[i] = ec._RecentExecutions_mode(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "executionHistory": out.Values[i] = ec._RecentExecutions_executionHistory(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33010,7 +42434,7 @@ func (ec *executionContext) _RecentExperimentRun(ctx context.Context, sel ast.Se fields := graphql.CollectFields(ec.OperationContext, sel, recentExperimentRunImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33018,24 +42442,24 @@ func (ec *executionContext) _RecentExperimentRun(ctx context.Context, sel ast.Se case "experimentRunID": out.Values[i] = ec._RecentExperimentRun_experimentRunID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "phase": out.Values[i] = ec._RecentExperimentRun_phase(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + 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 { - invalids++ + out.Invalids++ } case "createdAt": out.Values[i] = ec._RecentExperimentRun_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "createdBy": out.Values[i] = ec._RecentExperimentRun_createdBy(ctx, field, obj) @@ -33044,16 +42468,28 @@ func (ec *executionContext) _RecentExperimentRun(ctx context.Context, sel ast.Se case "runSequence": out.Values[i] = ec._RecentExperimentRun_runSequence(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33063,7 +42499,7 @@ func (ec *executionContext) _RegisterInfraResponse(ctx context.Context, sel ast. fields := graphql.CollectFields(ec.OperationContext, sel, registerInfraResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33071,31 +42507,43 @@ func (ec *executionContext) _RegisterInfraResponse(ctx context.Context, sel ast. case "token": out.Values[i] = ec._RegisterInfraResponse_token(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "infraID": out.Values[i] = ec._RegisterInfraResponse_infraID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": out.Values[i] = ec._RegisterInfraResponse_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "manifest": out.Values[i] = ec._RegisterInfraResponse_manifest(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33105,7 +42553,7 @@ func (ec *executionContext) _ResilienceScoreCategory(ctx context.Context, sel as fields := graphql.CollectFields(ec.OperationContext, sel, resilienceScoreCategoryImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33113,21 +42561,33 @@ func (ec *executionContext) _ResilienceScoreCategory(ctx context.Context, sel as case "id": out.Values[i] = ec._ResilienceScoreCategory_id(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "count": out.Values[i] = ec._ResilienceScoreCategory_count(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33137,7 +42597,7 @@ func (ec *executionContext) _RunChaosExperimentResponse(ctx context.Context, sel fields := graphql.CollectFields(ec.OperationContext, sel, runChaosExperimentResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33145,16 +42605,28 @@ func (ec *executionContext) _RunChaosExperimentResponse(ctx context.Context, sel case "notifyID": out.Values[i] = ec._RunChaosExperimentResponse_notifyID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33164,7 +42636,7 @@ func (ec *executionContext) _SSHKey(ctx context.Context, sel ast.SelectionSet, o fields := graphql.CollectFields(ec.OperationContext, sel, sSHKeyImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33172,21 +42644,33 @@ func (ec *executionContext) _SSHKey(ctx context.Context, sel ast.SelectionSet, o case "publicKey": out.Values[i] = ec._SSHKey_publicKey(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "privateKey": out.Values[i] = ec._SSHKey_privateKey(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33196,7 +42680,7 @@ func (ec *executionContext) _ServerVersionResponse(ctx context.Context, sel ast. fields := graphql.CollectFields(ec.OperationContext, sel, serverVersionResponseImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33204,21 +42688,33 @@ func (ec *executionContext) _ServerVersionResponse(ctx context.Context, sel ast. case "key": out.Values[i] = ec._ServerVersionResponse_key(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "value": out.Values[i] = ec._ServerVersionResponse_value(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33228,7 +42724,7 @@ func (ec *executionContext) _Spec(ctx context.Context, sel ast.SelectionSet, obj fields := graphql.CollectFields(ec.OperationContext, sel, specImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33236,59 +42732,59 @@ func (ec *executionContext) _Spec(ctx context.Context, sel ast.SelectionSet, obj case "displayName": out.Values[i] = ec._Spec_displayName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "categoryDescription": out.Values[i] = ec._Spec_categoryDescription(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "keywords": out.Values[i] = ec._Spec_keywords(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "maturity": out.Values[i] = ec._Spec_maturity(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "maintainers": out.Values[i] = ec._Spec_maintainers(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "minKubeVersion": out.Values[i] = ec._Spec_minKubeVersion(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "provider": out.Values[i] = ec._Spec_provider(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "links": out.Values[i] = ec._Spec_links(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "faults": out.Values[i] = ec._Spec_faults(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + 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 { - invalids++ + out.Invalids++ } case "platforms": out.Values[i] = ec._Spec_platforms(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "chaosType": out.Values[i] = ec._Spec_chaosType(ctx, field, obj) @@ -33296,10 +42792,22 @@ func (ec *executionContext) _Spec(ctx context.Context, sel ast.SelectionSet, obj panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33309,7 +42817,7 @@ func (ec *executionContext) _Status(ctx context.Context, sel ast.SelectionSet, o fields := graphql.CollectFields(ec.OperationContext, sel, statusImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33317,7 +42825,7 @@ func (ec *executionContext) _Status(ctx context.Context, sel ast.SelectionSet, o case "verdict": out.Values[i] = ec._Status_verdict(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "description": out.Values[i] = ec._Status_description(ctx, field, obj) @@ -33325,10 +42833,22 @@ func (ec *executionContext) _Status(ctx context.Context, sel ast.SelectionSet, o panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33338,7 +42858,7 @@ func (ec *executionContext) _StopExperimentRunsRequest(ctx context.Context, sel fields := graphql.CollectFields(ec.OperationContext, sel, stopExperimentRunsRequestImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33346,12 +42866,12 @@ func (ec *executionContext) _StopExperimentRunsRequest(ctx context.Context, sel case "projectID": out.Values[i] = ec._StopExperimentRunsRequest_projectID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentID": out.Values[i] = ec._StopExperimentRunsRequest_experimentID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "experimentRunID": out.Values[i] = ec._StopExperimentRunsRequest_experimentRunID(ctx, field, obj) @@ -33359,16 +42879,28 @@ func (ec *executionContext) _StopExperimentRunsRequest(ctx context.Context, sel panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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() graphql.Marshaler { +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", @@ -33398,7 +42930,7 @@ func (ec *executionContext) _UserDetails(ctx context.Context, sel ast.SelectionS fields := graphql.CollectFields(ec.OperationContext, sel, userDetailsImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33406,26 +42938,38 @@ func (ec *executionContext) _UserDetails(ctx context.Context, sel ast.SelectionS case "userID": out.Values[i] = ec._UserDetails_userID(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "username": out.Values[i] = ec._UserDetails_username(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "email": out.Values[i] = ec._UserDetails_email(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33435,7 +42979,7 @@ func (ec *executionContext) _Weightages(ctx context.Context, sel ast.SelectionSe fields := graphql.CollectFields(ec.OperationContext, sel, weightagesImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33443,21 +42987,33 @@ func (ec *executionContext) _Weightages(ctx context.Context, sel ast.SelectionSe case "faultName": out.Values[i] = ec._Weightages_faultName(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "weightage": out.Values[i] = ec._Weightages_weightage(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33467,7 +43023,7 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33475,28 +43031,45 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS case "name": out.Values[i] = ec.___Directive_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + 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 { - invalids++ + out.Invalids++ } case "args": out.Values[i] = ec.___Directive_args(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + 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() - if invalids > 0 { + 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 } @@ -33506,7 +43079,7 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33514,14 +43087,14 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS case "name": out.Values[i] = ec.___EnumValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + 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 { - invalids++ + out.Invalids++ } case "deprecationReason": out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) @@ -33529,10 +43102,22 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33542,7 +43127,7 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33550,24 +43135,24 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, case "name": out.Values[i] = ec.___Field_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + 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 { - invalids++ + out.Invalids++ } case "type": out.Values[i] = ec.___Field_type(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isDeprecated": out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "deprecationReason": out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) @@ -33575,10 +43160,22 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33588,7 +43185,7 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33596,14 +43193,14 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection case "name": out.Values[i] = ec.___InputValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + 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 { - invalids++ + out.Invalids++ } case "defaultValue": out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) @@ -33611,10 +43208,22 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33624,20 +43233,22 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + 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 { - invalids++ + out.Invalids++ } case "queryType": out.Values[i] = ec.___Schema_queryType(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "mutationType": out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) @@ -33646,16 +43257,28 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, case "directives": out.Values[i] = ec.___Schema_directives(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + 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 } @@ -33665,7 +43288,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -33673,7 +43296,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o case "kind": out.Values[i] = ec.___Type_kind(ctx, field, obj) if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": out.Values[i] = ec.___Type_name(ctx, field, obj) @@ -33691,14 +43314,28 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o 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() - if invalids > 0 { + 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 } @@ -33706,28 +43343,20 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) marshalNActionPayload2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐActionPayload(ctx context.Context, sel ast.SelectionSet, v model.ActionPayload) graphql.Marshaler { - return ec._ActionPayload(ctx, sel, &v) -} - 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, "must not be null") + 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) marshalNAnnotation2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAnnotation(ctx context.Context, sel ast.SelectionSet, v model.Annotation) graphql.Marshaler { - return ec._Annotation(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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -33736,7 +43365,8 @@ func (ec *executionContext) marshalNAnnotation2ᚖgithubᚗcomᚋlitmuschaosᚋl 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 - return res, res.UnmarshalGQL(v) + 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 { @@ -33744,21 +43374,23 @@ func (ec *executionContext) marshalNAuthType2githubᚗcomᚋlitmuschaosᚋlitmus } func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - return graphql.UnmarshalBoolean(v) + 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, "must not be null") + 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) { - return ec.unmarshalInputChaosExperimentRequest(ctx, v) + 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 { @@ -33768,7 +43400,7 @@ func (ec *executionContext) marshalNChaosExperimentResponse2githubᚗcomᚋlitmu 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -33782,7 +43414,7 @@ func (ec *executionContext) marshalNChaosHub2githubᚗcomᚋlitmuschaosᚋlitmus 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -33827,23 +43459,20 @@ func (ec *executionContext) marshalNChaosHubStatus2ᚕᚖgithubᚗcomᚋlitmusch } 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, "must not be null") + 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) marshalNChart2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChart(ctx context.Context, sel ast.SelectionSet, v model.Chart) graphql.Marshaler { - return ec._Chart(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 @@ -33878,43 +43507,39 @@ func (ec *executionContext) marshalNChart2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlit } 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, "must not be null") + 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) marshalNComparator2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparator(ctx context.Context, sel ast.SelectionSet, v model.Comparator) graphql.Marshaler { - return ec._Comparator(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, "must not be null") + 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) unmarshalNComparatorInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparatorInput(ctx context.Context, v interface{}) (model.ComparatorInput, error) { - return ec.unmarshalInputComparatorInput(ctx, v) -} - func (ec *executionContext) unmarshalNComparatorInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparatorInput(ctx context.Context, v interface{}) (*model.ComparatorInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalNComparatorInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐComparatorInput(ctx, v) - return &res, err + 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 { @@ -33924,7 +43549,7 @@ func (ec *executionContext) marshalNConfirmInfraRegistrationResponse2githubᚗco 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -33932,16 +43557,19 @@ func (ec *executionContext) marshalNConfirmInfraRegistrationResponse2ᚖgithub } func (ec *executionContext) unmarshalNCreateChaosHubRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐCreateChaosHubRequest(ctx context.Context, v interface{}) (model.CreateChaosHubRequest, error) { - return ec.unmarshalInputCreateChaosHubRequest(ctx, v) + 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) { - return ec.unmarshalInputCreateRemoteChaosHub(ctx, v) + 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 - return res, res.UnmarshalGQL(v) + 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 { @@ -33950,31 +43578,24 @@ func (ec *executionContext) marshalNEnvironmentSortingField2githubᚗcomᚋlitmu 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 - return res, res.UnmarshalGQL(v) + 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) marshalNExecutedByExperiment2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExecutedByExperiment(ctx context.Context, sel ast.SelectionSet, v model.ExecutedByExperiment) graphql.Marshaler { - return ec._ExecutedByExperiment(ctx, sel, &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, "must not be null") + 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) marshalNExecutionHistory2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExecutionHistory(ctx context.Context, sel ast.SelectionSet, v model.ExecutionHistory) graphql.Marshaler { - return ec._ExecutionHistory(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 @@ -34009,23 +43630,26 @@ func (ec *executionContext) marshalNExecutionHistory2ᚕᚖgithubᚗcomᚋlitmus } 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, "must not be null") + 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) marshalNExperiment2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiment(ctx context.Context, sel ast.SelectionSet, v model.Experiment) graphql.Marshaler { - return ec._Experiment(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 @@ -34060,13 +43684,14 @@ func (ec *executionContext) marshalNExperiment2ᚕᚖgithubᚗcomᚋlitmuschaos } 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34074,7 +43699,8 @@ func (ec *executionContext) marshalNExperiment2ᚖgithubᚗcomᚋlitmuschaosᚋl } func (ec *executionContext) unmarshalNExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRequest(ctx context.Context, v interface{}) (model.ExperimentRequest, error) { - return ec.unmarshalInputExperimentRequest(ctx, v) + 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 { @@ -34115,13 +43741,14 @@ func (ec *executionContext) marshalNExperimentRun2ᚕᚖgithubᚗcomᚋlitmuscha } 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34129,12 +43756,14 @@ func (ec *executionContext) marshalNExperimentRun2ᚖgithubᚗcomᚋlitmuschaos } func (ec *executionContext) unmarshalNExperimentRunRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunRequest(ctx context.Context, v interface{}) (model.ExperimentRunRequest, error) { - return ec.unmarshalInputExperimentRunRequest(ctx, v) + 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 - return res, res.UnmarshalGQL(v) + 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 { @@ -34143,17 +43772,14 @@ func (ec *executionContext) marshalNExperimentRunStatus2githubᚗcomᚋlitmuscha 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 - return res, res.UnmarshalGQL(v) + 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) marshalNExperiments2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiments(ctx context.Context, sel ast.SelectionSet, v model.Experiments) graphql.Marshaler { - return ec._Experiments(ctx, sel, &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 @@ -34188,13 +43814,20 @@ func (ec *executionContext) marshalNExperiments2ᚕᚖgithubᚗcomᚋlitmuschaos } 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34208,17 +43841,13 @@ func (ec *executionContext) marshalNFaultDetails2githubᚗcomᚋlitmuschaosᚋli 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, "must not be null") + 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) marshalNFaultList2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐFaultList(ctx context.Context, sel ast.SelectionSet, v model.FaultList) graphql.Marshaler { - return ec._FaultList(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 @@ -34253,13 +43882,20 @@ func (ec *executionContext) marshalNFaultList2ᚕᚖgithubᚗcomᚋlitmuschaos } 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34273,7 +43909,7 @@ func (ec *executionContext) marshalNGetChaosHubStatsResponse2githubᚗcomᚋlitm 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34287,7 +43923,7 @@ func (ec *executionContext) marshalNGetExperimentResponse2githubᚗcomᚋlitmusc 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34301,7 +43937,7 @@ func (ec *executionContext) marshalNGetExperimentRunStatsResponse2githubᚗcom 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34315,7 +43951,7 @@ func (ec *executionContext) marshalNGetExperimentStatsResponse2githubᚗcomᚋli 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34329,7 +43965,7 @@ func (ec *executionContext) marshalNGetInfraStatsResponse2githubᚗcomᚋlitmusc 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34343,7 +43979,7 @@ func (ec *executionContext) marshalNGetProbeReferenceResponse2githubᚗcomᚋlit 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34351,7 +43987,8 @@ func (ec *executionContext) marshalNGetProbeReferenceResponse2ᚖgithubᚗcomᚋ } func (ec *executionContext) unmarshalNGetProbeYAMLRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbeYAMLRequest(ctx context.Context, v interface{}) (model.GetProbeYAMLRequest, error) { - return ec.unmarshalInputGetProbeYAMLRequest(ctx, v) + 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 { @@ -34388,11 +44025,13 @@ func (ec *executionContext) marshalNGetProbesInExperimentRunResponse2ᚕᚖgithu } 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) { - return ec.unmarshalInputGitConfig(ctx, v) + 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 { @@ -34402,7 +44041,7 @@ func (ec *executionContext) marshalNGitConfigResponse2githubᚗcomᚋlitmuschaos 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34411,7 +44050,8 @@ func (ec *executionContext) marshalNGitConfigResponse2ᚖgithubᚗcomᚋlitmusch 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 - return res, res.UnmarshalGQL(v) + 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 { @@ -34419,21 +44059,23 @@ func (ec *executionContext) marshalNHubType2githubᚗcomᚋlitmuschaosᚋlitmus } func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { - return graphql.UnmarshalID(v) + 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, "must not be null") + 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) { - return ec.unmarshalInputImageRegistryInput(ctx, v) + 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 { @@ -34443,7 +44085,7 @@ func (ec *executionContext) marshalNImageRegistryResponse2githubᚗcomᚋlitmusc 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34488,13 +44130,14 @@ func (ec *executionContext) marshalNInfra2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlit } 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34508,7 +44151,7 @@ func (ec *executionContext) marshalNInfraActionResponse2githubᚗcomᚋlitmuscha 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34522,7 +44165,7 @@ func (ec *executionContext) marshalNInfraEventResponse2githubᚗcomᚋlitmuschao 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34530,15 +44173,13 @@ func (ec *executionContext) marshalNInfraEventResponse2ᚖgithubᚗcomᚋlitmusc } func (ec *executionContext) unmarshalNInfraIdentity2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx context.Context, v interface{}) (model.InfraIdentity, error) { - return ec.unmarshalInputInfraIdentity(ctx, v) + 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) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalNInfraIdentity2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraIdentity(ctx, v) - return &res, err + 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 { @@ -34548,7 +44189,7 @@ func (ec *executionContext) marshalNInfraVersionDetails2githubᚗcomᚋlitmuscha 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34557,7 +44198,8 @@ func (ec *executionContext) marshalNInfraVersionDetails2ᚖgithubᚗcomᚋlitmus 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 - return res, res.UnmarshalGQL(v) + 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 { @@ -34565,14 +44207,15 @@ func (ec *executionContext) marshalNInfrastructureType2githubᚗcomᚋlitmuschao } func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { - return graphql.UnmarshalInt(v) + 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } } return res @@ -34612,15 +44255,18 @@ func (ec *executionContext) marshalNKubeObject2ᚕᚖgithubᚗcomᚋlitmuschaos } wg.Wait() + return ret } func (ec *executionContext) unmarshalNKubeObjectData2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObjectData(ctx context.Context, v interface{}) (model.KubeObjectData, error) { - return ec.unmarshalInputKubeObjectData(ctx, v) + 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) { - return ec.unmarshalInputKubeObjectRequest(ctx, v) + 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 { @@ -34630,17 +44276,13 @@ func (ec *executionContext) marshalNKubeObjectResponse2githubᚗcomᚋlitmuschao 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, "must not be null") + 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) marshalNLink2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐLink(ctx context.Context, sel ast.SelectionSet, v model.Link) graphql.Marshaler { - return ec._Link(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 @@ -34675,13 +44317,20 @@ func (ec *executionContext) marshalNLink2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlitm } 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34689,7 +44338,8 @@ func (ec *executionContext) marshalNLink2ᚖgithubᚗcomᚋlitmuschaosᚋlitmus } func (ec *executionContext) unmarshalNListExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentRequest(ctx context.Context, v interface{}) (model.ListExperimentRequest, error) { - return ec.unmarshalInputListExperimentRequest(ctx, v) + 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 { @@ -34699,7 +44349,7 @@ func (ec *executionContext) marshalNListExperimentResponse2githubᚗcomᚋlitmus 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34707,7 +44357,8 @@ func (ec *executionContext) marshalNListExperimentResponse2ᚖgithubᚗcomᚋlit } func (ec *executionContext) unmarshalNListExperimentRunRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListExperimentRunRequest(ctx context.Context, v interface{}) (model.ListExperimentRunRequest, error) { - return ec.unmarshalInputListExperimentRunRequest(ctx, v) + 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 { @@ -34717,7 +44368,7 @@ func (ec *executionContext) marshalNListExperimentRunResponse2githubᚗcomᚋlit 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34731,17 +44382,13 @@ func (ec *executionContext) marshalNListInfraResponse2githubᚗcomᚋlitmuschaos 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, "must not be null") + 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) marshalNMaintainer2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMaintainer(ctx context.Context, sel ast.SelectionSet, v model.Maintainer) graphql.Marshaler { - return ec._Maintainer(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 @@ -34776,62 +44423,55 @@ func (ec *executionContext) marshalNMaintainer2ᚕᚖgithubᚗcomᚋlitmuschaos } 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, "must not be null") + 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) marshalNMetadata2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMetadata(ctx context.Context, sel ast.SelectionSet, v model.Metadata) graphql.Marshaler { - return ec._Metadata(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, "must not be null") + 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) marshalNMethod2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMethod(ctx context.Context, sel ast.SelectionSet, v model.Method) graphql.Marshaler { - return ec._Method(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, "must not be null") + 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) unmarshalNMethodRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMethodRequest(ctx context.Context, v interface{}) (model.MethodRequest, error) { - return ec.unmarshalInputMethodRequest(ctx, v) -} - func (ec *executionContext) unmarshalNMethodRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMethodRequest(ctx context.Context, v interface{}) (*model.MethodRequest, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalNMethodRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐMethodRequest(ctx, v) - return &res, err + 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 - return res, res.UnmarshalGQL(v) + 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 { @@ -34872,17 +44512,14 @@ func (ec *executionContext) marshalNObjectData2ᚕᚖgithubᚗcomᚋlitmuschaos } wg.Wait() - return ret -} -func (ec *executionContext) marshalNPackageInformation2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPackageInformation(ctx context.Context, sel ast.SelectionSet, v model.PackageInformation) graphql.Marshaler { - return ec._PackageInformation(ctx, sel, &v) + 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -34890,11 +44527,13 @@ func (ec *executionContext) marshalNPackageInformation2ᚖgithubᚗcomᚋlitmusc } func (ec *executionContext) unmarshalNPodLog2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPodLog(ctx context.Context, v interface{}) (model.PodLog, error) { - return ec.unmarshalInputPodLog(ctx, v) + 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) { - return ec.unmarshalInputPodLogRequest(ctx, v) + 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 { @@ -34904,17 +44543,13 @@ func (ec *executionContext) marshalNPodLogResponse2githubᚗcomᚋlitmuschaosᚋ 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, "must not be null") + 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) marshalNPredefinedExperimentList2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPredefinedExperimentList(ctx context.Context, sel ast.SelectionSet, v model.PredefinedExperimentList) graphql.Marshaler { - return ec._PredefinedExperimentList(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 @@ -34949,13 +44584,20 @@ func (ec *executionContext) marshalNPredefinedExperimentList2ᚕᚖgithubᚗcom } 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -35000,27 +44642,24 @@ func (ec *executionContext) marshalNProbe2ᚕᚖgithubᚗcomᚋlitmuschaosᚋlit } 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, "must not be null") + 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) marshalNProbeRecentExecutions2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeRecentExecutions(ctx context.Context, sel ast.SelectionSet, v model.ProbeRecentExecutions) graphql.Marshaler { - return ec._ProbeRecentExecutions(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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -35028,12 +44667,14 @@ func (ec *executionContext) marshalNProbeRecentExecutions2ᚖgithubᚗcomᚋlitm } func (ec *executionContext) unmarshalNProbeRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeRequest(ctx context.Context, v interface{}) (model.ProbeRequest, error) { - return ec.unmarshalInputProbeRequest(ctx, v) + 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 - return res, res.UnmarshalGQL(v) + 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 { @@ -35042,21 +44683,18 @@ func (ec *executionContext) marshalNProbeType2githubᚗcomᚋlitmuschaosᚋlitmu 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 - return res, res.UnmarshalGQL(v) + 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) marshalNProvider2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProvider(ctx context.Context, sel ast.SelectionSet, v model.Provider) graphql.Marshaler { - return ec._Provider(ctx, sel, &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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -35097,11 +44735,13 @@ func (ec *executionContext) marshalNRecentExecutions2ᚕᚖgithubᚗcomᚋlitmus } 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) { - return ec.unmarshalInputRegisterInfraRequest(ctx, v) + 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 { @@ -35111,7 +44751,7 @@ func (ec *executionContext) marshalNRegisterInfraResponse2githubᚗcomᚋlitmusc 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -35152,6 +44792,7 @@ func (ec *executionContext) marshalNResilienceScoreCategory2ᚕᚖgithubᚗcom } wg.Wait() + return ret } @@ -35162,7 +44803,7 @@ func (ec *executionContext) marshalNRunChaosExperimentResponse2githubᚗcomᚋli 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -35176,7 +44817,7 @@ func (ec *executionContext) marshalNSSHKey2githubᚗcomᚋlitmuschaosᚋlitmus 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -35184,7 +44825,8 @@ func (ec *executionContext) marshalNSSHKey2ᚖgithubᚗcomᚋlitmuschaosᚋlitmu } func (ec *executionContext) unmarshalNSaveChaosExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐSaveChaosExperimentRequest(ctx context.Context, v interface{}) (model.SaveChaosExperimentRequest, error) { - return ec.unmarshalInputSaveChaosExperimentRequest(ctx, v) + 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 { @@ -35194,35 +44836,27 @@ func (ec *executionContext) marshalNServerVersionResponse2githubᚗcomᚋlitmusc 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, "must not be null") + 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) marshalNSpec2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐSpec(ctx context.Context, sel ast.SelectionSet, v model.Spec) graphql.Marshaler { - return ec._Spec(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, "must not be null") + 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) marshalNStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐStatus(ctx context.Context, sel ast.SelectionSet, v model.Status) graphql.Marshaler { - return ec._Status(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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -35230,14 +44864,15 @@ func (ec *executionContext) marshalNStatus2ᚖgithubᚗcomᚋlitmuschaosᚋlitmu } func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { - return graphql.UnmarshalString(v) + 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } } return res @@ -35246,15 +44881,12 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { var vSlice []interface{} if v != nil { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } + 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 @@ -35269,26 +44901,30 @@ func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel 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) { - return ec.unmarshalInputUpdateChaosHubRequest(ctx, v) + 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 - return res, res.UnmarshalGQL(v) + 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) marshalNWeightages2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightages(ctx context.Context, sel ast.SelectionSet, v model.Weightages) graphql.Marshaler { - return ec._Weightages(ctx, sel, &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 @@ -35323,35 +44959,35 @@ func (ec *executionContext) marshalNWeightages2ᚕᚖgithubᚗcomᚋlitmuschaos } 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, "must not be null") + 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) unmarshalNWeightagesInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesInput(ctx context.Context, v interface{}) (model.WeightagesInput, error) { - return ec.unmarshalInputWeightagesInput(ctx, 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 { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } + 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 @@ -35361,11 +44997,8 @@ func (ec *executionContext) unmarshalNWeightagesInput2ᚕᚖgithubᚗcomᚋlitmu } func (ec *executionContext) unmarshalNWeightagesInput2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesInput(ctx context.Context, v interface{}) (*model.WeightagesInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalNWeightagesInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWeightagesInput(ctx, v) - return &res, err + 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 { @@ -35406,18 +45039,26 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq } 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) { - return graphql.UnmarshalString(v) + 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } } return res @@ -35426,15 +45067,12 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { var vSlice []interface{} if v != nil { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } + 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 @@ -35477,6 +45115,13 @@ func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context } wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } @@ -35526,6 +45171,13 @@ func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋg } wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } @@ -35567,13 +45219,20 @@ func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen } 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } @@ -35581,34 +45240,27 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen } func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { - return graphql.UnmarshalString(v) + 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, "must not be null") + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } } return res } -func (ec *executionContext) unmarshalOAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx context.Context, v interface{}) (model.AuthType, error) { - var res model.AuthType - return res, res.UnmarshalGQL(v) -} - -func (ec *executionContext) marshalOAuthType2githubᚗ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) 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 } - res, err := ec.unmarshalOAuthType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐAuthType(ctx, v) - return &res, err + 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 { @@ -35619,54 +45271,45 @@ func (ec *executionContext) marshalOAuthType2ᚖgithubᚗcomᚋlitmuschaosᚋlit } func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - return graphql.UnmarshalBoolean(v) + 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 { - return graphql.MarshalBoolean(v) + 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 := ec.unmarshalOBoolean2bool(ctx, v) - return &res, err + 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 } - return ec.marshalOBoolean2bool(ctx, sel, *v) -} - -func (ec *executionContext) unmarshalOChaosExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentRequest(ctx context.Context, v interface{}) (model.ChaosExperimentRequest, error) { - return ec.unmarshalInputChaosExperimentRequest(ctx, v) + res := graphql.MarshalBoolean(*v) + return res } func (ec *executionContext) unmarshalOChaosExperimentRequest2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentRequest(ctx context.Context, v interface{}) (*model.ChaosExperimentRequest, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalOChaosExperimentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosExperimentRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOChaosHubFilterInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHubFilterInput(ctx context.Context, v interface{}) (model.ChaosHubFilterInput, error) { - return ec.unmarshalInputChaosHubFilterInput(ctx, v) + res, err := ec.unmarshalInputChaosExperimentRequest(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } 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.unmarshalOChaosHubFilterInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐChaosHubFilterInput(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOChaosHubStatus2githubᚗ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) + 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 { @@ -35676,32 +45319,20 @@ func (ec *executionContext) marshalOChaosHubStatus2ᚖgithubᚗcomᚋlitmuschaos return ec._ChaosHubStatus(ctx, sel, v) } -func (ec *executionContext) unmarshalOCreateEnvironmentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐCreateEnvironmentRequest(ctx context.Context, v interface{}) (model.CreateEnvironmentRequest, error) { - return ec.unmarshalInputCreateEnvironmentRequest(ctx, 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.unmarshalOCreateEnvironmentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐCreateEnvironmentRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalODateRange2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐDateRange(ctx context.Context, v interface{}) (model.DateRange, error) { - return ec.unmarshalInputDateRange(ctx, v) + 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.unmarshalODateRange2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐDateRange(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOEnvironment2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironment(ctx context.Context, sel ast.SelectionSet, v model.Environment) graphql.Marshaler { - return ec._Environment(ctx, sel, &v) + 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 { @@ -35741,6 +45372,7 @@ func (ec *executionContext) marshalOEnvironment2ᚕᚖgithubᚗcomᚋlitmuschaos } wg.Wait() + return ret } @@ -35751,45 +45383,29 @@ func (ec *executionContext) marshalOEnvironment2ᚖgithubᚗcomᚋlitmuschaosᚋ return ec._Environment(ctx, sel, v) } -func (ec *executionContext) unmarshalOEnvironmentFilterInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentFilterInput(ctx context.Context, v interface{}) (model.EnvironmentFilterInput, error) { - return ec.unmarshalInputEnvironmentFilterInput(ctx, 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.unmarshalOEnvironmentFilterInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentFilterInput(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOEnvironmentSortInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentSortInput(ctx context.Context, v interface{}) (model.EnvironmentSortInput, error) { - return ec.unmarshalInputEnvironmentSortInput(ctx, v) + 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.unmarshalOEnvironmentSortInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentSortInput(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOEnvironmentType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx context.Context, v interface{}) (model.EnvironmentType, error) { - var res model.EnvironmentType - return res, res.UnmarshalGQL(v) -} - -func (ec *executionContext) marshalOEnvironmentType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx context.Context, sel ast.SelectionSet, v model.EnvironmentType) graphql.Marshaler { - return v + 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 } - res, err := ec.unmarshalOEnvironmentType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐEnvironmentType(ctx, v) - return &res, err + 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 { @@ -35799,10 +45415,6 @@ func (ec *executionContext) marshalOEnvironmentType2ᚖgithubᚗcomᚋlitmuschao return v } -func (ec *executionContext) marshalOExperiment2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperiment(ctx context.Context, sel ast.SelectionSet, v model.Experiment) graphql.Marshaler { - return ec._Experiment(ctx, sel, &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 @@ -35810,20 +45422,12 @@ func (ec *executionContext) marshalOExperiment2ᚖgithubᚗcomᚋlitmuschaosᚋl return ec._Experiment(ctx, sel, v) } -func (ec *executionContext) unmarshalOExperimentFilterInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentFilterInput(ctx context.Context, v interface{}) (model.ExperimentFilterInput, error) { - return ec.unmarshalInputExperimentFilterInput(ctx, 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.unmarshalOExperimentFilterInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentFilterInput(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOExperimentRun2githubᚗ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) + 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 { @@ -35833,45 +45437,29 @@ func (ec *executionContext) marshalOExperimentRun2ᚖgithubᚗcomᚋlitmuschaos return ec._ExperimentRun(ctx, sel, v) } -func (ec *executionContext) unmarshalOExperimentRunFilterInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunFilterInput(ctx context.Context, v interface{}) (model.ExperimentRunFilterInput, error) { - return ec.unmarshalInputExperimentRunFilterInput(ctx, 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.unmarshalOExperimentRunFilterInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunFilterInput(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOExperimentRunSortInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunSortInput(ctx context.Context, v interface{}) (model.ExperimentRunSortInput, error) { - return ec.unmarshalInputExperimentRunSortInput(ctx, v) + 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.unmarshalOExperimentRunSortInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunSortInput(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOExperimentRunStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunStatus(ctx context.Context, v interface{}) (model.ExperimentRunStatus, error) { - var res model.ExperimentRunStatus - return res, res.UnmarshalGQL(v) -} - -func (ec *executionContext) marshalOExperimentRunStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunStatus(ctx context.Context, sel ast.SelectionSet, v model.ExperimentRunStatus) graphql.Marshaler { - return v + 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 } - res, err := ec.unmarshalOExperimentRunStatus2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentRunStatus(ctx, v) - return &res, err + 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 { @@ -35881,33 +45469,21 @@ func (ec *executionContext) marshalOExperimentRunStatus2ᚖgithubᚗcomᚋlitmus return v } -func (ec *executionContext) unmarshalOExperimentSortInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentSortInput(ctx context.Context, v interface{}) (model.ExperimentSortInput, error) { - return ec.unmarshalInputExperimentSortInput(ctx, 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.unmarshalOExperimentSortInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentSortInput(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOExperimentType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentType(ctx context.Context, v interface{}) (model.ExperimentType, error) { - var res model.ExperimentType - return res, res.UnmarshalGQL(v) -} - -func (ec *executionContext) marshalOExperimentType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentType(ctx context.Context, sel ast.SelectionSet, v model.ExperimentType) graphql.Marshaler { - return v + 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 } - res, err := ec.unmarshalOExperimentType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐExperimentType(ctx, v) - return &res, err + 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 { @@ -35917,31 +45493,20 @@ func (ec *executionContext) marshalOExperimentType2ᚖgithubᚗcomᚋlitmuschaos return v } -func (ec *executionContext) unmarshalOFloat2float64(ctx context.Context, v interface{}) (float64, error) { - return graphql.UnmarshalFloat(v) -} - -func (ec *executionContext) marshalOFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler { - return graphql.MarshalFloat(v) -} - func (ec *executionContext) unmarshalOFloat2ᚖfloat64(ctx context.Context, v interface{}) (*float64, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalOFloat2float64(ctx, v) - return &res, err + 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 } - return ec.marshalOFloat2float64(ctx, sel, *v) -} - -func (ec *executionContext) marshalOGET2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGet(ctx context.Context, sel ast.SelectionSet, v model.Get) graphql.Marshaler { - return ec._GET(ctx, sel, &v) + 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 { @@ -35951,20 +45516,12 @@ func (ec *executionContext) marshalOGET2ᚖgithubᚗcomᚋlitmuschaosᚋlitmus return ec._GET(ctx, sel, v) } -func (ec *executionContext) unmarshalOGETRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGETRequest(ctx context.Context, v interface{}) (model.GETRequest, error) { - return ec.unmarshalInputGETRequest(ctx, 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.unmarshalOGETRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGETRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOGetProbesInExperimentRunResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐGetProbesInExperimentRunResponse(ctx context.Context, sel ast.SelectionSet, v model.GetProbesInExperimentRunResponse) graphql.Marshaler { - return ec._GetProbesInExperimentRunResponse(ctx, sel, &v) + 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 { @@ -35974,26 +45531,18 @@ func (ec *executionContext) marshalOGetProbesInExperimentRunResponse2ᚖgithub return ec._GetProbesInExperimentRunResponse(ctx, sel, v) } -func (ec *executionContext) unmarshalOID2string(ctx context.Context, v interface{}) (string, error) { - return graphql.UnmarshalID(v) -} - -func (ec *executionContext) marshalOID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - return graphql.MarshalID(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 { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } + 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 @@ -36011,21 +45560,27 @@ func (ec *executionContext) marshalOID2ᚕstringᚄ(ctx context.Context, sel ast 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 { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } + 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 @@ -36050,32 +45605,25 @@ func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interf if v == nil { return nil, nil } - res, err := ec.unmarshalOID2string(ctx, v) - return &res, err + 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 } - return ec.marshalOID2string(ctx, sel, *v) -} - -func (ec *executionContext) unmarshalOINFRA_SCOPE2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraScope(ctx context.Context, v interface{}) (model.InfraScope, error) { - var res model.InfraScope - return res, res.UnmarshalGQL(v) -} - -func (ec *executionContext) marshalOINFRA_SCOPE2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraScope(ctx context.Context, sel ast.SelectionSet, v model.InfraScope) graphql.Marshaler { - return v + 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 } - res, err := ec.unmarshalOINFRA_SCOPE2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraScope(ctx, v) - return &res, err + 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 { @@ -36085,10 +45633,6 @@ func (ec *executionContext) marshalOINFRA_SCOPE2ᚖgithubᚗcomᚋlitmuschaosᚋ return v } -func (ec *executionContext) marshalOImageRegistry2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐImageRegistry(ctx context.Context, sel ast.SelectionSet, v model.ImageRegistry) graphql.Marshaler { - return ec._ImageRegistry(ctx, sel, &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 @@ -36133,11 +45677,14 @@ func (ec *executionContext) marshalOImageRegistryResponse2ᚕᚖgithubᚗcomᚋl } wg.Wait() - return ret -} -func (ec *executionContext) marshalOInfra2githubᚗ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) + 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 { @@ -36147,39 +45694,26 @@ func (ec *executionContext) marshalOInfra2ᚖgithubᚗcomᚋlitmuschaosᚋlitmus return ec._Infra(ctx, sel, v) } -func (ec *executionContext) unmarshalOInfraFilterInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraFilterInput(ctx context.Context, v interface{}) (model.InfraFilterInput, error) { - return ec.unmarshalInputInfraFilterInput(ctx, 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.unmarshalOInfraFilterInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfraFilterInput(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOInfrastructureType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx context.Context, v interface{}) (model.InfrastructureType, error) { - var res model.InfrastructureType - return res, res.UnmarshalGQL(v) -} - -func (ec *executionContext) marshalOInfrastructureType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx context.Context, sel ast.SelectionSet, v model.InfrastructureType) graphql.Marshaler { - return v + res, err := ec.unmarshalInputInfraFilterInput(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 { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } + 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 @@ -36225,6 +45759,7 @@ func (ec *executionContext) marshalOInfrastructureType2ᚕᚖgithubᚗcomᚋlitm } wg.Wait() + return ret } @@ -36232,8 +45767,9 @@ func (ec *executionContext) unmarshalOInfrastructureType2ᚖgithubᚗcomᚋlitmu if v == nil { return nil, nil } - res, err := ec.unmarshalOInfrastructureType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐInfrastructureType(ctx, v) - return &res, err + 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 { @@ -36243,31 +45779,20 @@ func (ec *executionContext) marshalOInfrastructureType2ᚖgithubᚗcomᚋlitmusc return v } -func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { - return graphql.UnmarshalInt(v) -} - -func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { - return graphql.MarshalInt(v) -} - func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalOInt2int(ctx, v) - return &res, err + 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 } - return ec.marshalOInt2int(ctx, sel, *v) -} - -func (ec *executionContext) marshalOK8SProbe2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐK8SProbe(ctx context.Context, sel ast.SelectionSet, v model.K8SProbe) graphql.Marshaler { - return ec._K8SProbe(ctx, sel, &v) + 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 { @@ -36277,32 +45802,20 @@ func (ec *executionContext) marshalOK8SProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlit return ec._K8SProbe(ctx, sel, v) } -func (ec *executionContext) unmarshalOK8SProbeRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐK8SProbeRequest(ctx context.Context, v interface{}) (model.K8SProbeRequest, error) { - return ec.unmarshalInputK8SProbeRequest(ctx, 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.unmarshalOK8SProbeRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐK8SProbeRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOKubeGVRRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeGVRRequest(ctx context.Context, v interface{}) (model.KubeGVRRequest, error) { - return ec.unmarshalInputKubeGVRRequest(ctx, v) + 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.unmarshalOKubeGVRRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeGVRRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOKubeObject2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObject(ctx context.Context, sel ast.SelectionSet, v model.KubeObject) graphql.Marshaler { - return ec._KubeObject(ctx, sel, &v) + res, err := ec.unmarshalInputKubeGVRRequest(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } func (ec *executionContext) marshalOKubeObject2ᚖgithubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubeObject(ctx context.Context, sel ast.SelectionSet, v *model.KubeObject) graphql.Marshaler { @@ -36312,10 +45825,6 @@ func (ec *executionContext) marshalOKubeObject2ᚖgithubᚗcomᚋlitmuschaosᚋl return ec._KubeObject(ctx, sel, v) } -func (ec *executionContext) marshalOKubernetesCMDProbe2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesCMDProbe(ctx context.Context, sel ast.SelectionSet, v model.KubernetesCMDProbe) graphql.Marshaler { - return ec._KubernetesCMDProbe(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 @@ -36323,20 +45832,12 @@ func (ec *executionContext) marshalOKubernetesCMDProbe2ᚖgithubᚗcomᚋlitmusc return ec._KubernetesCMDProbe(ctx, sel, v) } -func (ec *executionContext) unmarshalOKubernetesCMDProbeRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesCMDProbeRequest(ctx context.Context, v interface{}) (model.KubernetesCMDProbeRequest, error) { - return ec.unmarshalInputKubernetesCMDProbeRequest(ctx, 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.unmarshalOKubernetesCMDProbeRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesCMDProbeRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOKubernetesHTTPProbe2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesHTTPProbe(ctx context.Context, sel ast.SelectionSet, v model.KubernetesHTTPProbe) graphql.Marshaler { - return ec._KubernetesHTTPProbe(ctx, sel, &v) + 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 { @@ -36346,44 +45847,28 @@ func (ec *executionContext) marshalOKubernetesHTTPProbe2ᚖgithubᚗcomᚋlitmus return ec._KubernetesHTTPProbe(ctx, sel, v) } -func (ec *executionContext) unmarshalOKubernetesHTTPProbeRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesHTTPProbeRequest(ctx context.Context, v interface{}) (model.KubernetesHTTPProbeRequest, error) { - return ec.unmarshalInputKubernetesHTTPProbeRequest(ctx, 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.unmarshalOKubernetesHTTPProbeRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐKubernetesHTTPProbeRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOListChaosHubRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListChaosHubRequest(ctx context.Context, v interface{}) (model.ListChaosHubRequest, error) { - return ec.unmarshalInputListChaosHubRequest(ctx, v) + 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.unmarshalOListChaosHubRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListChaosHubRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOListEnvironmentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListEnvironmentRequest(ctx context.Context, v interface{}) (model.ListEnvironmentRequest, error) { - return ec.unmarshalInputListEnvironmentRequest(ctx, v) + 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.unmarshalOListEnvironmentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListEnvironmentRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOListEnvironmentResponse2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListEnvironmentResponse(ctx context.Context, sel ast.SelectionSet, v model.ListEnvironmentResponse) graphql.Marshaler { - return ec._ListEnvironmentResponse(ctx, sel, &v) + 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 { @@ -36393,20 +45878,12 @@ func (ec *executionContext) marshalOListEnvironmentResponse2ᚖgithubᚗcomᚋli return ec._ListEnvironmentResponse(ctx, sel, v) } -func (ec *executionContext) unmarshalOListInfraRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListInfraRequest(ctx context.Context, v interface{}) (model.ListInfraRequest, error) { - return ec.unmarshalInputListInfraRequest(ctx, 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.unmarshalOListInfraRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐListInfraRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOObjectData2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐObjectData(ctx context.Context, sel ast.SelectionSet, v model.ObjectData) graphql.Marshaler { - return ec._ObjectData(ctx, sel, &v) + 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 { @@ -36416,10 +45893,6 @@ func (ec *executionContext) marshalOObjectData2ᚖgithubᚗcomᚋlitmuschaosᚋl return ec._ObjectData(ctx, sel, v) } -func (ec *executionContext) marshalOPOST2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPost(ctx context.Context, sel ast.SelectionSet, v model.Post) graphql.Marshaler { - return ec._POST(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 @@ -36427,20 +45900,12 @@ func (ec *executionContext) marshalOPOST2ᚖgithubᚗcomᚋlitmuschaosᚋlitmus return ec._POST(ctx, sel, v) } -func (ec *executionContext) unmarshalOPOSTRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPOSTRequest(ctx context.Context, v interface{}) (model.POSTRequest, error) { - return ec.unmarshalInputPOSTRequest(ctx, 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.unmarshalOPOSTRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPOSTRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOPROMProbe2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPROMProbe(ctx context.Context, sel ast.SelectionSet, v model.PROMProbe) graphql.Marshaler { - return ec._PROMProbe(ctx, sel, &v) + 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 { @@ -36450,32 +45915,20 @@ func (ec *executionContext) marshalOPROMProbe2ᚖgithubᚗcomᚋlitmuschaosᚋli return ec._PROMProbe(ctx, sel, v) } -func (ec *executionContext) unmarshalOPROMProbeRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPROMProbeRequest(ctx context.Context, v interface{}) (model.PROMProbeRequest, error) { - return ec.unmarshalInputPROMProbeRequest(ctx, 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.unmarshalOPROMProbeRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPROMProbeRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOPagination2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPagination(ctx context.Context, v interface{}) (model.Pagination, error) { - return ec.unmarshalInputPagination(ctx, v) + 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.unmarshalOPagination2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐPagination(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOProbe2githubᚗ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) + 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 { @@ -36485,16 +45938,12 @@ func (ec *executionContext) marshalOProbe2ᚖgithubᚗcomᚋlitmuschaosᚋlitmus return ec._Probe(ctx, sel, v) } -func (ec *executionContext) unmarshalOProbeFilterInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeFilterInput(ctx context.Context, v interface{}) (model.ProbeFilterInput, error) { - return ec.unmarshalInputProbeFilterInput(ctx, 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.unmarshalOProbeFilterInput2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeFilterInput(ctx, v) - return &res, err + 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 { @@ -36534,30 +45983,28 @@ func (ec *executionContext) marshalOProbeRecentExecutions2ᚕᚖgithubᚗcomᚋl } wg.Wait() - return ret -} -func (ec *executionContext) unmarshalOProbeType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx context.Context, v interface{}) (model.ProbeType, error) { - var res model.ProbeType - return res, res.UnmarshalGQL(v) -} + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } -func (ec *executionContext) marshalOProbeType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx context.Context, sel ast.SelectionSet, v model.ProbeType) graphql.Marshaler { - return v + 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 { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } + 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 @@ -36603,6 +46050,7 @@ func (ec *executionContext) marshalOProbeType2ᚕᚖgithubᚗcomᚋlitmuschaos } wg.Wait() + return ret } @@ -36610,8 +46058,9 @@ func (ec *executionContext) unmarshalOProbeType2ᚖgithubᚗcomᚋlitmuschaosᚋ if v == nil { return nil, nil } - res, err := ec.unmarshalOProbeType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐProbeType(ctx, v) - return &res, err + 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 { @@ -36621,10 +46070,6 @@ func (ec *executionContext) marshalOProbeType2ᚖgithubᚗcomᚋlitmuschaosᚋli return v } -func (ec *executionContext) marshalORecentExecutions2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRecentExecutions(ctx context.Context, sel ast.SelectionSet, v model.RecentExecutions) graphql.Marshaler { - return ec._RecentExecutions(ctx, sel, &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 @@ -36632,10 +46077,6 @@ func (ec *executionContext) marshalORecentExecutions2ᚖgithubᚗcomᚋlitmuscha return ec._RecentExecutions(ctx, sel, v) } -func (ec *executionContext) marshalORecentExperimentRun2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐRecentExperimentRun(ctx context.Context, sel ast.SelectionSet, v model.RecentExperimentRun) graphql.Marshaler { - return ec._RecentExperimentRun(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 @@ -36673,6 +46114,7 @@ func (ec *executionContext) marshalORecentExperimentRun2ᚕᚖgithubᚗcomᚋlit } wg.Wait() + return ret } @@ -36683,10 +46125,6 @@ func (ec *executionContext) marshalORecentExperimentRun2ᚖgithubᚗcomᚋlitmus return ec._RecentExperimentRun(ctx, sel, v) } -func (ec *executionContext) marshalOResilienceScoreCategory2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐResilienceScoreCategory(ctx context.Context, sel ast.SelectionSet, v model.ResilienceScoreCategory) graphql.Marshaler { - return ec._ResilienceScoreCategory(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 @@ -36694,21 +46132,13 @@ func (ec *executionContext) marshalOResilienceScoreCategory2ᚖgithubᚗcomᚋli return ec._ResilienceScoreCategory(ctx, sel, v) } -func (ec *executionContext) unmarshalOScheduleType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐScheduleType(ctx context.Context, v interface{}) (model.ScheduleType, error) { - var res model.ScheduleType - return res, res.UnmarshalGQL(v) -} - -func (ec *executionContext) marshalOScheduleType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐScheduleType(ctx context.Context, sel ast.SelectionSet, v model.ScheduleType) graphql.Marshaler { - return 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 } - res, err := ec.unmarshalOScheduleType2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐScheduleType(ctx, v) - return &res, err + 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 { @@ -36718,26 +46148,18 @@ func (ec *executionContext) marshalOScheduleType2ᚖgithubᚗcomᚋlitmuschaos return v } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { - return graphql.UnmarshalString(v) -} - -func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - return graphql.MarshalString(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 { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } + 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 @@ -36755,21 +46177,27 @@ func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel 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 { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } + 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 @@ -36794,33 +46222,30 @@ func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v in if v == nil { return nil, nil } - res, err := ec.unmarshalOString2string(ctx, v) - return &res, err + 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 } - return ec.marshalOString2string(ctx, sel, *v) -} - -func (ec *executionContext) unmarshalOToleration2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐToleration(ctx context.Context, v interface{}) (model.Toleration, error) { - return ec.unmarshalInputToleration(ctx, v) + 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 { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } + 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 @@ -36833,24 +46258,16 @@ func (ec *executionContext) unmarshalOToleration2ᚖgithubᚗcomᚋlitmuschaos if v == nil { return nil, nil } - res, err := ec.unmarshalOToleration2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐToleration(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOUpdateEnvironmentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUpdateEnvironmentRequest(ctx context.Context, v interface{}) (model.UpdateEnvironmentRequest, error) { - return ec.unmarshalInputUpdateEnvironmentRequest(ctx, v) + 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.unmarshalOUpdateEnvironmentRequest2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUpdateEnvironmentRequest(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOUserDetails2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐUserDetails(ctx context.Context, sel ast.SelectionSet, v model.UserDetails) graphql.Marshaler { - return ec._UserDetails(ctx, sel, &v) + 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 { @@ -36860,22 +46277,18 @@ func (ec *executionContext) marshalOUserDetails2ᚖgithubᚗcomᚋlitmuschaosᚋ return ec._UserDetails(ctx, sel, v) } -func (ec *executionContext) unmarshalOWorkload2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWorkload(ctx context.Context, v interface{}) (model.Workload, error) { - return ec.unmarshalInputWorkload(ctx, 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 { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } + 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 @@ -36888,8 +46301,8 @@ func (ec *executionContext) unmarshalOWorkload2ᚖgithubᚗcomᚋlitmuschaosᚋl if v == nil { return nil, nil } - res, err := ec.unmarshalOWorkload2githubᚗcomᚋlitmuschaosᚋlitmusᚋchaoscenterᚋgraphqlᚋserverᚋgraphᚋmodelᚐWorkload(ctx, v) - return &res, err + 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 { @@ -36929,6 +46342,13 @@ func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgq } wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } @@ -36969,6 +46389,13 @@ func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgen } wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } @@ -37009,11 +46436,14 @@ func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋg } wg.Wait() - return ret -} -func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v introspection.Schema) graphql.Marshaler { - return ec.___Schema(ctx, sel, &v) + 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 { @@ -37023,10 +46453,6 @@ func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlge return ec.___Schema(ctx, sel, v) } -func (ec *executionContext) marshalO__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) 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 @@ -37064,6 +46490,13 @@ func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen } wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } diff --git a/chaoscenter/graphql/server/graph/gitops.resolvers.go b/chaoscenter/graphql/server/graph/gitops.resolvers.go index 99a022084f4..b6f1b19547f 100644 --- a/chaoscenter/graphql/server/graph/gitops.resolvers.go +++ b/chaoscenter/graphql/server/graph/gitops.resolvers.go @@ -2,6 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. +// Code generated by github.com/99designs/gqlgen version v0.17.42 import ( "context" @@ -11,6 +12,7 @@ import ( "github.com/sirupsen/logrus" ) +// GitopsNotifier is the resolver for the gitopsNotifier field. func (r *mutationResolver) GitopsNotifier(ctx context.Context, clusterInfo model.InfraIdentity, experimentID string) (string, error) { infra, err := r.chaosInfrastructureService.VerifyInfra(clusterInfo) if err != nil { @@ -20,6 +22,7 @@ func (r *mutationResolver) GitopsNotifier(ctx context.Context, clusterInfo model return r.gitopsService.GitOpsNotificationHandler(ctx, *infra, experimentID) } +// EnableGitOps is the resolver for the enableGitOps field. func (r *mutationResolver) EnableGitOps(ctx context.Context, projectID string, configurations model.GitConfig) (bool, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.EnableGitOps], @@ -30,6 +33,7 @@ func (r *mutationResolver) EnableGitOps(ctx context.Context, projectID string, c return r.gitopsService.EnableGitOpsHandler(ctx, projectID, configurations) } +// DisableGitOps is the resolver for the disableGitOps field. func (r *mutationResolver) DisableGitOps(ctx context.Context, projectID string) (bool, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.DisableGitOps], @@ -40,6 +44,7 @@ func (r *mutationResolver) DisableGitOps(ctx context.Context, projectID string) return r.gitopsService.DisableGitOpsHandler(ctx, projectID) } +// UpdateGitOps is the resolver for the updateGitOps field. func (r *mutationResolver) UpdateGitOps(ctx context.Context, projectID string, configurations model.GitConfig) (bool, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.UpdateGitOps], @@ -50,6 +55,7 @@ func (r *mutationResolver) UpdateGitOps(ctx context.Context, projectID string, c return r.gitopsService.UpdateGitOpsDetailsHandler(ctx, projectID, configurations) } +// GetGitOpsDetails is the resolver for the getGitOpsDetails field. func (r *queryResolver) GetGitOpsDetails(ctx context.Context, projectID string) (*model.GitConfigResponse, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.GetGitOpsDetails], diff --git a/chaoscenter/graphql/server/graph/image_registry.resolvers.go b/chaoscenter/graphql/server/graph/image_registry.resolvers.go index 087edff37e9..aa85df1385b 100644 --- a/chaoscenter/graphql/server/graph/image_registry.resolvers.go +++ b/chaoscenter/graphql/server/graph/image_registry.resolvers.go @@ -2,6 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. +// Code generated by github.com/99designs/gqlgen version v0.17.42 import ( "context" @@ -11,6 +12,7 @@ import ( "github.com/sirupsen/logrus" ) +// CreateImageRegistry is the resolver for the createImageRegistry field. func (r *mutationResolver) CreateImageRegistry(ctx context.Context, projectID string, imageRegistryInfo model.ImageRegistryInput) (*model.ImageRegistryResponse, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.CreateImageRegistry], @@ -26,6 +28,7 @@ func (r *mutationResolver) CreateImageRegistry(ctx context.Context, projectID st return ciResponse, err } +// UpdateImageRegistry is the resolver for the updateImageRegistry field. func (r *mutationResolver) UpdateImageRegistry(ctx context.Context, imageRegistryID string, projectID string, imageRegistryInfo model.ImageRegistryInput) (*model.ImageRegistryResponse, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.UpdateImageRegistry], @@ -42,6 +45,7 @@ func (r *mutationResolver) UpdateImageRegistry(ctx context.Context, imageRegistr return uiRegistry, err } +// DeleteImageRegistry is the resolver for the deleteImageRegistry field. func (r *mutationResolver) DeleteImageRegistry(ctx context.Context, imageRegistryID string, projectID string) (string, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.DeleteImageRegistry], @@ -58,6 +62,7 @@ func (r *mutationResolver) DeleteImageRegistry(ctx context.Context, imageRegistr return diRegistry, err } +// ListImageRegistry is the resolver for the listImageRegistry field. func (r *queryResolver) ListImageRegistry(ctx context.Context, projectID string) ([]*model.ImageRegistryResponse, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.ListImageRegistry], @@ -74,6 +79,7 @@ func (r *queryResolver) ListImageRegistry(ctx context.Context, projectID string) return imageRegistries, err } +// GetImageRegistry is the resolver for the getImageRegistry field. func (r *queryResolver) GetImageRegistry(ctx context.Context, projectID string) (*model.ImageRegistryResponse, error) { err := authorization.ValidateRole(ctx, projectID, authorization.MutationRbacRules[authorization.GetImageRegistry], diff --git a/chaoscenter/graphql/server/graph/model/models_gen.go b/chaoscenter/graphql/server/graph/model/models_gen.go index 34abefccfc0..25a25681efd 100644 --- a/chaoscenter/graphql/server/graph/model/models_gen.go +++ b/chaoscenter/graphql/server/graph/model/models_gen.go @@ -10,15 +10,38 @@ import ( type Audit interface { IsAudit() + GetUpdatedAt() *string + GetCreatedAt() *string + GetUpdatedBy() *UserDetails + GetCreatedBy() *UserDetails } // Defines the common probe properties shared across different ProbeTypes type CommonProbeProperties interface { IsCommonProbeProperties() + // Timeout of the Probe + GetProbeTimeout() string + // Interval of the Probe + GetInterval() string + // Retry interval of the Probe + GetRetry() *int + // Attempt contains the total attempt count for the probe + GetAttempt() *int + // Polling interval of the Probe + GetProbePollingInterval() *string + // Initial delay interval of the Probe in seconds + GetInitialDelay() *string + // EvaluationTimeout is the timeout window in which the SLO metrics + GetEvaluationTimeout() *string + // Is stop on failure enabled in the Probe + GetStopOnFailure() *bool } type ResourceDetails interface { IsResourceDetails() + GetName() string + GetDescription() *string + GetTags() []string } type ActionPayload struct { @@ -26,8 +49,8 @@ type ActionPayload struct { RequestType string `json:"requestType"` K8sManifest string `json:"k8sManifest"` Namespace string `json:"namespace"` - ExternalData *string `json:"externalData"` - Username *string `json:"username"` + ExternalData *string `json:"externalData,omitempty"` + Username *string `json:"username,omitempty"` } type Annotation struct { @@ -46,35 +69,35 @@ type CMDProbeRequest struct { // Interval of the Probe Interval string `json:"interval"` // Retry interval of the Probe - Retry *int `json:"retry"` + Retry *int `json:"retry,omitempty"` // Attempt contains the total attempt count for the probe - Attempt *int `json:"attempt"` + Attempt *int `json:"attempt,omitempty"` // Polling interval of the Probe - ProbePollingInterval *string `json:"probePollingInterval"` + ProbePollingInterval *string `json:"probePollingInterval,omitempty"` // Initial delay interval of the Probe in seconds - InitialDelay *string `json:"initialDelay"` + InitialDelay *string `json:"initialDelay,omitempty"` // EvaluationTimeout is the timeout window in which the SLO metrics - EvaluationTimeout *string `json:"evaluationTimeout"` + EvaluationTimeout *string `json:"evaluationTimeout,omitempty"` // Is stop on failure enabled in the Probe - StopOnFailure *bool `json:"stopOnFailure"` + StopOnFailure *bool `json:"stopOnFailure,omitempty"` // Command of the Probe Command string `json:"command"` // Comparator of the Probe Comparator *ComparatorInput `json:"comparator"` // Source of the Probe - Source *string `json:"source"` + Source *string `json:"source,omitempty"` } // Defines the details for a chaos experiment type ChaosExperimentRequest struct { // ID of the experiment - ExperimentID *string `json:"experimentID"` + ExperimentID *string `json:"experimentID,omitempty"` // Boolean check indicating if the created scenario will be executed or not - RunExperiment *bool `json:"runExperiment"` + RunExperiment *bool `json:"runExperiment,omitempty"` // Manifest of the experiment ExperimentManifest string `json:"experimentManifest"` // Type of the experiment - ExperimentType *ExperimentType `json:"experimentType"` + ExperimentType *ExperimentType `json:"experimentType,omitempty"` // Cron syntax of the experiment schedule CronSyntax string `json:"cronSyntax"` // Name of the experiment @@ -88,7 +111,7 @@ type ChaosExperimentRequest struct { // ID of the target infra in which the experiment will run InfraID string `json:"infraID"` // Tags of the infra - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` } // Defines the response received for querying the details of chaos experiment @@ -105,7 +128,7 @@ type ChaosExperimentResponse struct { // Bool value indicating whether the experiment is a custom experiment or not IsCustomExperiment bool `json:"isCustomExperiment"` // Tags of the infra - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` } type ChaosHub struct { @@ -122,13 +145,13 @@ type ChaosHub struct { // Name of the chaos hub Name string `json:"name"` // Tags of the ChaosHub - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` // User who created the ChaosHub - CreatedBy *UserDetails `json:"createdBy"` + CreatedBy *UserDetails `json:"createdBy,omitempty"` // User who has updated the ChaosHub - UpdatedBy *UserDetails `json:"updatedBy"` + UpdatedBy *UserDetails `json:"updatedBy,omitempty"` // Description of ChaosHub - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Type of ChaosHub HubType HubType `json:"hubType"` // Bool value indicating whether the hub is private or not. @@ -136,13 +159,13 @@ type ChaosHub struct { // Type of authentication used: BASIC, SSH, TOKEN AuthType AuthType `json:"authType"` // Token for authentication of private chaos hub - Token *string `json:"token"` + Token *string `json:"token,omitempty"` // Git username - UserName *string `json:"userName"` + UserName *string `json:"userName,omitempty"` // Git password - Password *string `json:"password"` + Password *string `json:"password,omitempty"` // Private SSH key for authenticating into private chaos hub - SSHPrivateKey *string `json:"sshPrivateKey"` + SSHPrivateKey *string `json:"sshPrivateKey,omitempty"` // Bool value indicating if the chaos hub is removed IsRemoved bool `json:"isRemoved"` // Timestamp when the chaos hub was created @@ -153,17 +176,34 @@ type ChaosHub struct { LastSyncedAt string `json:"lastSyncedAt"` } -func (ChaosHub) IsResourceDetails() {} -func (ChaosHub) IsAudit() {} +func (ChaosHub) IsResourceDetails() {} +func (this ChaosHub) GetName() string { return this.Name } +func (this ChaosHub) GetDescription() *string { return this.Description } +func (this ChaosHub) GetTags() []string { + if this.Tags == nil { + return nil + } + interfaceSlice := make([]string, 0, len(this.Tags)) + for _, concrete := range this.Tags { + interfaceSlice = append(interfaceSlice, concrete) + } + return interfaceSlice +} + +func (ChaosHub) IsAudit() {} +func (this ChaosHub) GetUpdatedAt() *string { return &this.UpdatedAt } +func (this ChaosHub) GetCreatedAt() *string { return &this.CreatedAt } +func (this ChaosHub) GetUpdatedBy() *UserDetails { return this.UpdatedBy } +func (this ChaosHub) GetCreatedBy() *UserDetails { return this.CreatedBy } // Defines filter options for ChaosHub type ChaosHubFilterInput struct { // Name of the ChaosHub - ChaosHubName *string `json:"chaosHubName"` + ChaosHubName *string `json:"chaosHubName,omitempty"` // Tags of a chaos hub - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` // Description of a chaos hub - Description *string `json:"description"` + Description *string `json:"description,omitempty"` } type ChaosHubStatus struct { @@ -188,37 +228,54 @@ type ChaosHubStatus struct { // Type of authentication used: BASIC, SSH, TOKEN AuthType AuthType `json:"authType"` // Token for authentication of private chaos hub - Token *string `json:"token"` + Token *string `json:"token,omitempty"` // Git username - UserName *string `json:"userName"` + UserName *string `json:"userName,omitempty"` // Git password - Password *string `json:"password"` + Password *string `json:"password,omitempty"` // Bool value indicating whether the hub is private or not. IsRemoved bool `json:"isRemoved"` // Private SSH key for authenticating into private chaos hub - SSHPrivateKey *string `json:"sshPrivateKey"` + SSHPrivateKey *string `json:"sshPrivateKey,omitempty"` // Public SSH key for authenticating into private chaos hub - SSHPublicKey *string `json:"sshPublicKey"` + SSHPublicKey *string `json:"sshPublicKey,omitempty"` // Timestamp when the chaos hub was last synced LastSyncedAt string `json:"lastSyncedAt"` // Tags of the ChaosHub - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` // User who created the ChaosHub - CreatedBy *UserDetails `json:"createdBy"` + CreatedBy *UserDetails `json:"createdBy,omitempty"` // User who has updated the ChaosHub - UpdatedBy *UserDetails `json:"updatedBy"` + UpdatedBy *UserDetails `json:"updatedBy,omitempty"` // Created at timestamp CreatedAt string `json:"createdAt"` // Updated at timestamp UpdatedAt string `json:"updatedAt"` // Description of ChaosHub - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Default Hub Identifier IsDefault bool `json:"isDefault"` } -func (ChaosHubStatus) IsResourceDetails() {} -func (ChaosHubStatus) IsAudit() {} +func (ChaosHubStatus) IsResourceDetails() {} +func (this ChaosHubStatus) GetName() string { return this.Name } +func (this ChaosHubStatus) GetDescription() *string { return this.Description } +func (this ChaosHubStatus) GetTags() []string { + if this.Tags == nil { + return nil + } + interfaceSlice := make([]string, 0, len(this.Tags)) + for _, concrete := range this.Tags { + interfaceSlice = append(interfaceSlice, concrete) + } + return interfaceSlice +} + +func (ChaosHubStatus) IsAudit() {} +func (this ChaosHubStatus) GetUpdatedAt() *string { return &this.UpdatedAt } +func (this ChaosHubStatus) GetCreatedAt() *string { return &this.CreatedAt } +func (this ChaosHubStatus) GetUpdatedBy() *UserDetails { return this.UpdatedBy } +func (this ChaosHubStatus) GetCreatedBy() *UserDetails { return this.CreatedBy } type Chart struct { APIVersion string `json:"apiVersion"` @@ -240,12 +297,12 @@ type CloningInput struct { // Type of authentication used: BASIC, SSH, TOKEN AuthType AuthType `json:"authType"` // Token for authentication of private chaos hub - Token *string `json:"token"` + Token *string `json:"token,omitempty"` // Git username - UserName *string `json:"userName"` + UserName *string `json:"userName,omitempty"` // Git password - Password *string `json:"password"` - SSHPrivateKey *string `json:"sshPrivateKey"` + Password *string `json:"password,omitempty"` + SSHPrivateKey *string `json:"sshPrivateKey,omitempty"` IsDefault bool `json:"isDefault"` } @@ -271,8 +328,8 @@ type ComparatorInput struct { type ConfirmInfraRegistrationResponse struct { IsInfraConfirmed bool `json:"isInfraConfirmed"` - NewAccessKey *string `json:"newAccessKey"` - InfraID *string `json:"infraID"` + NewAccessKey *string `json:"newAccessKey,omitempty"` + InfraID *string `json:"infraID,omitempty"` } // Defines the details required for creating a chaos hub @@ -280,9 +337,9 @@ type CreateChaosHubRequest struct { // Name of the chaos hub Name string `json:"name"` // Tags of the ChaosHub - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` // Description of ChaosHub - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // URL of the git repository RepoURL string `json:"repoURL"` // Branch of the git repository @@ -292,32 +349,32 @@ type CreateChaosHubRequest struct { // Type of authentication used: BASIC, SSH, TOKEN AuthType AuthType `json:"authType"` // Token for authentication of private chaos hub - Token *string `json:"token"` + Token *string `json:"token,omitempty"` // Git username - UserName *string `json:"userName"` + UserName *string `json:"userName,omitempty"` // Git password - Password *string `json:"password"` + Password *string `json:"password,omitempty"` // Private SSH key for authenticating into private chaos hub - SSHPrivateKey *string `json:"sshPrivateKey"` + SSHPrivateKey *string `json:"sshPrivateKey,omitempty"` // Public SSH key for authenticating into private chaos hub - SSHPublicKey *string `json:"sshPublicKey"` + SSHPublicKey *string `json:"sshPublicKey,omitempty"` } type CreateEnvironmentRequest struct { EnvironmentID string `json:"environmentID"` Name string `json:"name"` Type EnvironmentType `json:"type"` - Description *string `json:"description"` - Tags []string `json:"tags"` + Description *string `json:"description,omitempty"` + Tags []string `json:"tags,omitempty"` } type CreateRemoteChaosHub struct { // Name of the chaos hub Name string `json:"name"` // Tags of the ChaosHub - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` // Description of ChaosHub - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // URL of the git repository RepoURL string `json:"repoURL"` } @@ -327,37 +384,54 @@ type DateRange struct { // Start date StartDate string `json:"startDate"` // End date - EndDate *string `json:"endDate"` + EndDate *string `json:"endDate,omitempty"` } type Environment struct { ProjectID string `json:"projectID"` EnvironmentID string `json:"environmentID"` Name string `json:"name"` - Description *string `json:"description"` - Tags []string `json:"tags"` + Description *string `json:"description,omitempty"` + Tags []string `json:"tags,omitempty"` Type EnvironmentType `json:"type"` CreatedAt string `json:"createdAt"` - CreatedBy *UserDetails `json:"createdBy"` - UpdatedBy *UserDetails `json:"updatedBy"` + CreatedBy *UserDetails `json:"createdBy,omitempty"` + UpdatedBy *UserDetails `json:"updatedBy,omitempty"` UpdatedAt string `json:"updatedAt"` - IsRemoved *bool `json:"isRemoved"` - InfraIDs []string `json:"infraIDs"` + IsRemoved *bool `json:"isRemoved,omitempty"` + InfraIDs []string `json:"infraIDs,omitempty"` +} + +func (Environment) IsResourceDetails() {} +func (this Environment) GetName() string { return this.Name } +func (this Environment) GetDescription() *string { return this.Description } +func (this Environment) GetTags() []string { + if this.Tags == nil { + return nil + } + interfaceSlice := make([]string, 0, len(this.Tags)) + for _, concrete := range this.Tags { + interfaceSlice = append(interfaceSlice, concrete) + } + return interfaceSlice } -func (Environment) IsResourceDetails() {} -func (Environment) IsAudit() {} +func (Environment) IsAudit() {} +func (this Environment) GetUpdatedAt() *string { return &this.UpdatedAt } +func (this Environment) GetCreatedAt() *string { return &this.CreatedAt } +func (this Environment) GetUpdatedBy() *UserDetails { return this.UpdatedBy } +func (this Environment) GetCreatedBy() *UserDetails { return this.CreatedBy } // Defines filter options for infras type EnvironmentFilterInput struct { // Name of the environment - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // ID of the environment - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Type name of environment - Type *EnvironmentType `json:"type"` + Type *EnvironmentType `json:"type,omitempty"` // Tags of an environment - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` } // Defines sorting options for experiment @@ -365,7 +439,7 @@ type EnvironmentSortInput struct { // Field in which sorting will be done Field EnvironmentSortingField `json:"field"` // Bool value indicating whether the sorting will be done in ascending order - Ascending *bool `json:"ascending"` + Ascending *bool `json:"ascending,omitempty"` } // Defines the Executed by which experiment details for Probes @@ -377,7 +451,7 @@ type ExecutedByExperiment struct { // Timestamp at which the experiment was last updated UpdatedAt int `json:"updatedAt"` // User who has updated the experiment - UpdatedBy *UserDetails `json:"updatedBy"` + UpdatedBy *UserDetails `json:"updatedBy,omitempty"` } // Defines the Execution History of experiment referenced by the Probe @@ -398,7 +472,7 @@ type Experiment struct { // ID of the experiment ExperimentID string `json:"experimentID"` // Type of the experiment - ExperimentType *string `json:"experimentType"` + ExperimentType *string `json:"experimentType,omitempty"` // Manifest of the experiment ExperimentManifest string `json:"experimentManifest"` // Cron syntax of the experiment schedule @@ -416,21 +490,38 @@ type Experiment struct { // Timestamp when the experiment was created CreatedAt string `json:"createdAt"` // Target infra in which the experiment will run - Infra *Infra `json:"infra"` + Infra *Infra `json:"infra,omitempty"` // Bool value indicating if the experiment has removed IsRemoved bool `json:"isRemoved"` // Tags of the experiment - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` // User who created the experiment - CreatedBy *UserDetails `json:"createdBy"` + CreatedBy *UserDetails `json:"createdBy,omitempty"` // Array of object containing details of recent experiment runs - RecentExperimentRunDetails []*RecentExperimentRun `json:"recentExperimentRunDetails"` + RecentExperimentRunDetails []*RecentExperimentRun `json:"recentExperimentRunDetails,omitempty"` // Details of the user who updated the experiment - UpdatedBy *UserDetails `json:"updatedBy"` + UpdatedBy *UserDetails `json:"updatedBy,omitempty"` } -func (Experiment) IsResourceDetails() {} -func (Experiment) IsAudit() {} +func (Experiment) IsResourceDetails() {} +func (this Experiment) GetName() string { return this.Name } +func (this Experiment) GetDescription() *string { return &this.Description } +func (this Experiment) GetTags() []string { + if this.Tags == nil { + return nil + } + interfaceSlice := make([]string, 0, len(this.Tags)) + for _, concrete := range this.Tags { + interfaceSlice = append(interfaceSlice, concrete) + } + return interfaceSlice +} + +func (Experiment) IsAudit() {} +func (this Experiment) GetUpdatedAt() *string { return &this.UpdatedAt } +func (this Experiment) GetCreatedAt() *string { return &this.CreatedAt } +func (this Experiment) GetUpdatedBy() *UserDetails { return this.UpdatedBy } +func (this Experiment) GetCreatedBy() *UserDetails { return this.CreatedBy } type ExperimentDetails struct { // Engine Manifest @@ -442,21 +533,21 @@ type ExperimentDetails struct { // Defines filter options for experiments type ExperimentFilterInput struct { // Name of the experiment - ExperimentName *string `json:"experimentName"` + ExperimentName *string `json:"experimentName,omitempty"` // Name of the infra in which the experiment is running - InfraName *string `json:"infraName"` + InfraName *string `json:"infraName,omitempty"` // ID of the infra in which the experiment is running - InfraID *string `json:"infraID"` + InfraID *string `json:"infraID,omitempty"` // Bool value indicating if Chaos Infrastructure is active - InfraActive *bool `json:"infraActive"` + InfraActive *bool `json:"infraActive,omitempty"` // Scenario type of the experiment i.e. CRON or NON_CRON - ScheduleType *ScheduleType `json:"scheduleType"` + ScheduleType *ScheduleType `json:"scheduleType,omitempty"` // Status of the latest experiment run - Status *string `json:"status"` + Status *string `json:"status,omitempty"` // Date range for filtering purpose - DateRange *DateRange `json:"dateRange"` + DateRange *DateRange `json:"dateRange,omitempty"` // Type of infras - InfraTypes []*InfrastructureType `json:"infraTypes"` + InfraTypes []*InfrastructureType `json:"infraTypes,omitempty"` } type ExperimentRequest struct { @@ -474,7 +565,7 @@ type ExperimentRun struct { // ID of the experiment run which is to be queried ExperimentRunID string `json:"experimentRunID"` // Type of the experiment - ExperimentType *string `json:"experimentType"` + ExperimentType *string `json:"experimentType,omitempty"` // ID of the experiment ExperimentID string `json:"experimentID"` // Array containing weightage and name of each chaos fault in the experiment @@ -492,53 +583,57 @@ type ExperimentRun struct { // Phase of the experiment run Phase ExperimentRunStatus `json:"phase"` // Resiliency score of the experiment - ResiliencyScore *float64 `json:"resiliencyScore"` + ResiliencyScore *float64 `json:"resiliencyScore,omitempty"` // Number of faults passed - FaultsPassed *int `json:"faultsPassed"` + FaultsPassed *int `json:"faultsPassed,omitempty"` // Number of faults failed - FaultsFailed *int `json:"faultsFailed"` + FaultsFailed *int `json:"faultsFailed,omitempty"` // Number of faults awaited - FaultsAwaited *int `json:"faultsAwaited"` + FaultsAwaited *int `json:"faultsAwaited,omitempty"` // Number of faults stopped - FaultsStopped *int `json:"faultsStopped"` + FaultsStopped *int `json:"faultsStopped,omitempty"` // Number of faults which are not available - FaultsNa *int `json:"faultsNa"` + FaultsNa *int `json:"faultsNa,omitempty"` // Total number of faults - TotalFaults *int `json:"totalFaults"` + TotalFaults *int `json:"totalFaults,omitempty"` // Stores all the experiment run details related to the nodes of DAG graph and chaos results of the faults ExecutionData string `json:"executionData"` // Bool value indicating if the experiment run has removed - IsRemoved *bool `json:"isRemoved"` + IsRemoved *bool `json:"isRemoved,omitempty"` // User who has updated the experiment - UpdatedBy *UserDetails `json:"updatedBy"` + UpdatedBy *UserDetails `json:"updatedBy,omitempty"` // User who has created the experiment run - CreatedBy *UserDetails `json:"createdBy"` + CreatedBy *UserDetails `json:"createdBy,omitempty"` // Notify ID of the experiment run - NotifyID *string `json:"notifyID"` + NotifyID *string `json:"notifyID,omitempty"` // runSequence is the sequence number of experiment run RunSequence int `json:"runSequence"` } -func (ExperimentRun) IsAudit() {} +func (ExperimentRun) IsAudit() {} +func (this ExperimentRun) GetUpdatedAt() *string { return &this.UpdatedAt } +func (this ExperimentRun) GetCreatedAt() *string { return &this.CreatedAt } +func (this ExperimentRun) GetUpdatedBy() *UserDetails { return this.UpdatedBy } +func (this ExperimentRun) GetCreatedBy() *UserDetails { return this.CreatedBy } // Defines input type for experiment run filter type ExperimentRunFilterInput struct { // Name of the experiment - ExperimentName *string `json:"experimentName"` + ExperimentName *string `json:"experimentName,omitempty"` // Name of the infra infra - InfraID *string `json:"infraID"` + InfraID *string `json:"infraID,omitempty"` // Type of the experiment - ExperimentType *ScheduleType `json:"experimentType"` + ExperimentType *ScheduleType `json:"experimentType,omitempty"` // Status of the experiment run - ExperimentStatus *ExperimentRunStatus `json:"experimentStatus"` + ExperimentStatus *ExperimentRunStatus `json:"experimentStatus,omitempty"` // Date range for filtering purpose - DateRange *DateRange `json:"dateRange"` + DateRange *DateRange `json:"dateRange,omitempty"` // ID of experiment run - ExperimentRunID *string `json:"experimentRunID"` + ExperimentRunID *string `json:"experimentRunID,omitempty"` // Array of experiment run status - ExperimentRunStatus []*string `json:"experimentRunStatus"` + ExperimentRunStatus []*string `json:"experimentRunStatus,omitempty"` // Type of infras - InfraTypes []*InfrastructureType `json:"infraTypes"` + InfraTypes []*InfrastructureType `json:"infraTypes,omitempty"` } // Defines the details for a experiment run @@ -546,7 +641,7 @@ type ExperimentRunRequest struct { // ID of the experiment ExperimentID string `json:"experimentID"` // notifyID is required to give an ack for non cron experiment execution - NotifyID *string `json:"notifyID"` + NotifyID *string `json:"notifyID,omitempty"` // ID of the experiment run which is to be queried ExperimentRunID string `json:"experimentRunID"` // Name of the experiment @@ -560,7 +655,7 @@ type ExperimentRunRequest struct { // Bool value indicating if the experiment run has completed Completed bool `json:"completed"` // Bool value indicating if the experiment run has removed - IsRemoved *bool `json:"isRemoved"` + IsRemoved *bool `json:"isRemoved,omitempty"` // User who has updated the experiment UpdatedBy string `json:"updatedBy"` } @@ -570,7 +665,7 @@ type ExperimentRunSortInput struct { // Field in which sorting will be done Field ExperimentSortingField `json:"field"` // Bool value indicating whether the sorting will be done in ascending order - Ascending *bool `json:"ascending"` + Ascending *bool `json:"ascending,omitempty"` } // Defines sorting options for experiment @@ -578,12 +673,12 @@ type ExperimentSortInput struct { // Field in which sorting will be done Field ExperimentSortingField `json:"field"` // Bool value indicating whether the sorting will be done in ascending order - Ascending *bool `json:"ascending"` + Ascending *bool `json:"ascending,omitempty"` } type Experiments struct { Name string `json:"name"` - Csv string `json:"CSV"` + CSV string `json:"CSV"` Desc string `json:"desc"` } @@ -594,14 +689,14 @@ type FaultDetails struct { // engine consists engine.yaml Engine string `json:"engine"` // csv consists chartserviceversion.yaml - Csv string `json:"csv"` + CSV string `json:"csv"` } type FaultList struct { Name string `json:"name"` DisplayName string `json:"displayName"` Description string `json:"description"` - Plan []string `json:"plan"` + Plan []string `json:"plan,omitempty"` } // Details of GET request @@ -630,7 +725,7 @@ type GetExperimentResponse struct { // Details of experiment ExperimentDetails *Experiment `json:"experimentDetails"` // Average resiliency score of the experiment - AverageResiliencyScore *float64 `json:"averageResiliencyScore"` + AverageResiliencyScore *float64 `json:"averageResiliencyScore,omitempty"` } type GetExperimentRunStatsResponse struct { @@ -707,13 +802,13 @@ type GitConfig struct { // Type of authentication used: BASIC, SSH, TOKEN AuthType AuthType `json:"authType"` // Token used for private repository - Token *string `json:"token"` + Token *string `json:"token,omitempty"` // Git username - UserName *string `json:"userName"` + UserName *string `json:"userName,omitempty"` // Git password - Password *string `json:"password"` + Password *string `json:"password,omitempty"` // Private SSH key authenticating into git repository - SSHPrivateKey *string `json:"sshPrivateKey"` + SSHPrivateKey *string `json:"sshPrivateKey,omitempty"` } // Response received after configuring GitOps @@ -723,19 +818,19 @@ type GitConfigResponse struct { // ID of the project where GitOps is configured ProjectID string `json:"projectID"` // Git branch where the chaos charts will be pushed and synced - Branch *string `json:"branch"` + Branch *string `json:"branch,omitempty"` // URL of the Git repository - RepoURL *string `json:"repoURL"` + RepoURL *string `json:"repoURL,omitempty"` // Type of authentication used: BASIC, SSH, TOKEN - AuthType *AuthType `json:"authType"` + AuthType *AuthType `json:"authType,omitempty"` // Token used for private repository - Token *string `json:"token"` + Token *string `json:"token,omitempty"` // Git username - UserName *string `json:"userName"` + UserName *string `json:"userName,omitempty"` // Git password - Password *string `json:"password"` + Password *string `json:"password,omitempty"` // Private SSH key authenticating into git repository - SSHPrivateKey *string `json:"sshPrivateKey"` + SSHPrivateKey *string `json:"sshPrivateKey,omitempty"` } // Defines the input for HTTP probe properties @@ -745,29 +840,29 @@ type HTTPProbeRequest struct { // Interval of the Probe Interval string `json:"interval"` // Retry interval of the Probe - Retry *int `json:"retry"` + Retry *int `json:"retry,omitempty"` // Attempt contains the total attempt count for the probe - Attempt *int `json:"attempt"` + Attempt *int `json:"attempt,omitempty"` // Polling interval of the Probe - ProbePollingInterval *string `json:"probePollingInterval"` + ProbePollingInterval *string `json:"probePollingInterval,omitempty"` // Initial delay interval of the Probe in seconds - InitialDelay *string `json:"initialDelay"` + InitialDelay *string `json:"initialDelay,omitempty"` // EvaluationTimeout is the timeout window in which the SLO metrics - EvaluationTimeout *string `json:"evaluationTimeout"` + EvaluationTimeout *string `json:"evaluationTimeout,omitempty"` // Is stop on failure enabled in the Probe - StopOnFailure *bool `json:"stopOnFailure"` + StopOnFailure *bool `json:"stopOnFailure,omitempty"` // URL of the Probe URL string `json:"url"` // HTTP method of the Probe Method *MethodRequest `json:"method"` // If Insecure HTTP verification should be skipped - InsecureSkipVerify *bool `json:"insecureSkipVerify"` + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` } // Defines details for image registry type ImageRegistry struct { // Bool value indicating if the image registry is default or not; by default workflow uses LitmusChaos registry - IsDefault *bool `json:"isDefault"` + IsDefault *bool `json:"isDefault,omitempty"` // Name of Image Registry ImageRegistryName string `json:"imageRegistryName"` // Name of image repository @@ -775,11 +870,11 @@ type ImageRegistry struct { // Type of the image registry: public/private ImageRegistryType string `json:"imageRegistryType"` // Secret which is used for private registry - SecretName *string `json:"secretName"` + SecretName *string `json:"secretName,omitempty"` // Namespace where the secret is available - SecretNamespace *string `json:"secretNamespace"` + SecretNamespace *string `json:"secretNamespace,omitempty"` // Bool value indicating if image registry is enabled or not - EnableRegistry *bool `json:"enableRegistry"` + EnableRegistry *bool `json:"enableRegistry,omitempty"` } // Defines input data for querying the details of an image registry @@ -793,11 +888,11 @@ type ImageRegistryInput struct { // Type of the image registry: public/private ImageRegistryType string `json:"imageRegistryType"` // Secret which is used for private registry - SecretName *string `json:"secretName"` + SecretName *string `json:"secretName,omitempty"` // Namespace where the secret is available - SecretNamespace *string `json:"secretNamespace"` + SecretNamespace *string `json:"secretNamespace,omitempty"` // Bool value indicating if image registry is enabled or not - EnableRegistry *bool `json:"enableRegistry"` + EnableRegistry *bool `json:"enableRegistry,omitempty"` } // Defines response data for image registry @@ -805,24 +900,28 @@ type ImageRegistryResponse struct { // Bool value indicating if the image registry is default or not; by default workflow uses LitmusChaos registry IsDefault bool `json:"isDefault"` // Information Image Registry - ImageRegistryInfo *ImageRegistry `json:"imageRegistryInfo"` + ImageRegistryInfo *ImageRegistry `json:"imageRegistryInfo,omitempty"` // ID of the image registry ImageRegistryID string `json:"imageRegistryID"` // ID of the project in which image registry is created ProjectID string `json:"projectID"` // Timestamp when the image registry was last updated - UpdatedAt *string `json:"updatedAt"` + UpdatedAt *string `json:"updatedAt,omitempty"` // Timestamp when the image registry was created - CreatedAt *string `json:"createdAt"` + CreatedAt *string `json:"createdAt,omitempty"` // User who created the infra - CreatedBy *UserDetails `json:"createdBy"` + CreatedBy *UserDetails `json:"createdBy,omitempty"` // User who has updated the infra - UpdatedBy *UserDetails `json:"updatedBy"` + UpdatedBy *UserDetails `json:"updatedBy,omitempty"` // Bool value indicating if the image registry has been removed - IsRemoved *bool `json:"isRemoved"` + IsRemoved *bool `json:"isRemoved,omitempty"` } -func (ImageRegistryResponse) IsAudit() {} +func (ImageRegistryResponse) IsAudit() {} +func (this ImageRegistryResponse) GetUpdatedAt() *string { return this.UpdatedAt } +func (this ImageRegistryResponse) GetCreatedAt() *string { return this.CreatedAt } +func (this ImageRegistryResponse) GetUpdatedBy() *UserDetails { return this.UpdatedBy } +func (this ImageRegistryResponse) GetCreatedBy() *UserDetails { return this.CreatedBy } // Defines the details for a infra type Infra struct { @@ -832,9 +931,9 @@ type Infra struct { // Name of the infra Name string `json:"name"` // Description of the infra - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Tags of the infra - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` // Environment ID for the infra EnvironmentID string `json:"environmentID"` // Infra Platform Name eg. GKE,AWS, Others @@ -850,39 +949,56 @@ type Infra struct { // Timestamp when the infra was created CreatedAt string `json:"createdAt"` // Number of schedules created in the infra - NoOfExperiments *int `json:"noOfExperiments"` + NoOfExperiments *int `json:"noOfExperiments,omitempty"` // Number of experiments run in the infra - NoOfExperimentRuns *int `json:"noOfExperimentRuns"` + NoOfExperimentRuns *int `json:"noOfExperimentRuns,omitempty"` // Token used to verify and retrieve the infra manifest Token string `json:"token"` // Namespace where the infra is being installed - InfraNamespace *string `json:"infraNamespace"` + InfraNamespace *string `json:"infraNamespace,omitempty"` // Name of service account used by infra - ServiceAccount *string `json:"serviceAccount"` + ServiceAccount *string `json:"serviceAccount,omitempty"` // Scope of the infra : ns or cluster InfraScope string `json:"infraScope"` // Bool value indicating whether infra ns used already exists on infra or not - InfraNsExists *bool `json:"infraNsExists"` + InfraNsExists *bool `json:"infraNsExists,omitempty"` // Bool value indicating whether service account used already exists on infra or not - InfraSaExists *bool `json:"infraSaExists"` + InfraSaExists *bool `json:"infraSaExists,omitempty"` // Timestamp of the last experiment run in the infra - LastExperimentTimestamp *string `json:"lastExperimentTimestamp"` + LastExperimentTimestamp *string `json:"lastExperimentTimestamp,omitempty"` // Timestamp when the infra got connected StartTime string `json:"startTime"` // Version of the infra Version string `json:"version"` // User who created the infra - CreatedBy *UserDetails `json:"createdBy"` + CreatedBy *UserDetails `json:"createdBy,omitempty"` // User who has updated the infra - UpdatedBy *UserDetails `json:"updatedBy"` + UpdatedBy *UserDetails `json:"updatedBy,omitempty"` // Type of the infrastructure - InfraType *InfrastructureType `json:"infraType"` + InfraType *InfrastructureType `json:"infraType,omitempty"` // update status of infra UpdateStatus UpdateStatus `json:"updateStatus"` } -func (Infra) IsResourceDetails() {} -func (Infra) IsAudit() {} +func (Infra) IsResourceDetails() {} +func (this Infra) GetName() string { return this.Name } +func (this Infra) GetDescription() *string { return this.Description } +func (this Infra) GetTags() []string { + if this.Tags == nil { + return nil + } + interfaceSlice := make([]string, 0, len(this.Tags)) + for _, concrete := range this.Tags { + interfaceSlice = append(interfaceSlice, concrete) + } + return interfaceSlice +} + +func (Infra) IsAudit() {} +func (this Infra) GetUpdatedAt() *string { return &this.UpdatedAt } +func (this Infra) GetCreatedAt() *string { return &this.CreatedAt } +func (this Infra) GetUpdatedBy() *UserDetails { return this.UpdatedBy } +func (this Infra) GetCreatedBy() *UserDetails { return this.CreatedBy } type InfraActionResponse struct { ProjectID string `json:"projectID"` @@ -900,19 +1016,19 @@ type InfraEventResponse struct { // Defines filter options for infras type InfraFilterInput struct { // Name of the infra - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // ID of the infra - InfraID *string `json:"infraID"` + InfraID *string `json:"infraID,omitempty"` // ID of the infra - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Platform name of infra - PlatformName *string `json:"platformName"` + PlatformName *string `json:"platformName,omitempty"` // Scope of infra - InfraScope *InfraScope `json:"infraScope"` + InfraScope *InfraScope `json:"infraScope,omitempty"` // Status of infra - IsActive *bool `json:"isActive"` + IsActive *bool `json:"isActive,omitempty"` // Tags of an infra - Tags []*string `json:"tags"` + Tags []*string `json:"tags,omitempty"` } type InfraIdentity struct { @@ -936,37 +1052,61 @@ type K8SProbe struct { // Interval of the Probe Interval string `json:"interval"` // Retry interval of the Probe - Retry *int `json:"retry"` + Retry *int `json:"retry,omitempty"` // Attempt contains the total attempt count for the probe - Attempt *int `json:"attempt"` + Attempt *int `json:"attempt,omitempty"` // Polling interval of the Probe - ProbePollingInterval *string `json:"probePollingInterval"` + ProbePollingInterval *string `json:"probePollingInterval,omitempty"` // Initial delay interval of the Probe in seconds - InitialDelay *string `json:"initialDelay"` + InitialDelay *string `json:"initialDelay,omitempty"` // EvaluationTimeout is the timeout window in which the SLO metrics - EvaluationTimeout *string `json:"evaluationTimeout"` + EvaluationTimeout *string `json:"evaluationTimeout,omitempty"` // Is stop on failure enabled in the Probe - StopOnFailure *bool `json:"stopOnFailure"` + StopOnFailure *bool `json:"stopOnFailure,omitempty"` // Group of the Probe - Group *string `json:"group"` + Group *string `json:"group,omitempty"` // Version of the Probe Version string `json:"version"` // Resource of the Probe Resource string `json:"resource"` // Namespace of the Probe - Namespace *string `json:"namespace"` + Namespace *string `json:"namespace,omitempty"` // Resource Names of the Probe - ResourceNames *string `json:"resourceNames"` + ResourceNames *string `json:"resourceNames,omitempty"` // Field Selector of the Probe - FieldSelector *string `json:"fieldSelector"` + FieldSelector *string `json:"fieldSelector,omitempty"` // Label Selector of the Probe - LabelSelector *string `json:"labelSelector"` + LabelSelector *string `json:"labelSelector,omitempty"` // Operation of the Probe Operation string `json:"operation"` } func (K8SProbe) IsCommonProbeProperties() {} +// Timeout of the Probe +func (this K8SProbe) GetProbeTimeout() string { return this.ProbeTimeout } + +// Interval of the Probe +func (this K8SProbe) GetInterval() string { return this.Interval } + +// Retry interval of the Probe +func (this K8SProbe) GetRetry() *int { return this.Retry } + +// Attempt contains the total attempt count for the probe +func (this K8SProbe) GetAttempt() *int { return this.Attempt } + +// Polling interval of the Probe +func (this K8SProbe) GetProbePollingInterval() *string { return this.ProbePollingInterval } + +// Initial delay interval of the Probe in seconds +func (this K8SProbe) GetInitialDelay() *string { return this.InitialDelay } + +// EvaluationTimeout is the timeout window in which the SLO metrics +func (this K8SProbe) GetEvaluationTimeout() *string { return this.EvaluationTimeout } + +// Is stop on failure enabled in the Probe +func (this K8SProbe) GetStopOnFailure() *bool { return this.StopOnFailure } + // Defines the input for K8S probe properties type K8SProbeRequest struct { // Timeout of the Probe @@ -974,31 +1114,31 @@ type K8SProbeRequest struct { // Interval of the Probe Interval string `json:"interval"` // Retry interval of the Probe - Retry *int `json:"retry"` + Retry *int `json:"retry,omitempty"` // Attempt contains the total attempt count for the probe - Attempt *int `json:"attempt"` + Attempt *int `json:"attempt,omitempty"` // Polling interval of the Probe - ProbePollingInterval *string `json:"probePollingInterval"` + ProbePollingInterval *string `json:"probePollingInterval,omitempty"` // Initial delay interval of the Probe in seconds - InitialDelay *string `json:"initialDelay"` + InitialDelay *string `json:"initialDelay,omitempty"` // EvaluationTimeout is the timeout window in which the SLO metrics - EvaluationTimeout *string `json:"evaluationTimeout"` + EvaluationTimeout *string `json:"evaluationTimeout,omitempty"` // Is stop on failure enabled in the Probe - StopOnFailure *bool `json:"stopOnFailure"` + StopOnFailure *bool `json:"stopOnFailure,omitempty"` // Group of the Probe - Group *string `json:"group"` + Group *string `json:"group,omitempty"` // Version of the Probe Version string `json:"version"` // Resource of the Probe Resource string `json:"resource"` // Namespace of the Probe - Namespace *string `json:"namespace"` + Namespace *string `json:"namespace,omitempty"` // Resource Names of the Probe - ResourceNames *string `json:"resourceNames"` + ResourceNames *string `json:"resourceNames,omitempty"` // Field Selector of the Probe - FieldSelector *string `json:"fieldSelector"` + FieldSelector *string `json:"fieldSelector,omitempty"` // Label Selector of the Probe - LabelSelector *string `json:"labelSelector"` + LabelSelector *string `json:"labelSelector,omitempty"` // Operation of the Probe Operation string `json:"operation"` } @@ -1032,9 +1172,9 @@ type KubeObjectRequest struct { // ID of the infra in which the Kubernetes object is present InfraID string `json:"infraID"` // GVR Request - KubeObjRequest *KubeGVRRequest `json:"kubeObjRequest"` + KubeObjRequest *KubeGVRRequest `json:"kubeObjRequest,omitempty"` ObjectType string `json:"objectType"` - Workloads []*Workload `json:"workloads"` + Workloads []*Workload `json:"workloads,omitempty"` } // Response received for querying Kubernetes Object @@ -1052,27 +1192,51 @@ type KubernetesCMDProbe struct { // Interval of the Probe Interval string `json:"interval"` // Retry interval of the Probe - Retry *int `json:"retry"` + Retry *int `json:"retry,omitempty"` // Attempt contains the total attempt count for the probe - Attempt *int `json:"attempt"` + Attempt *int `json:"attempt,omitempty"` // Polling interval of the Probe - ProbePollingInterval *string `json:"probePollingInterval"` + ProbePollingInterval *string `json:"probePollingInterval,omitempty"` // Initial delay interval of the Probe in seconds - InitialDelay *string `json:"initialDelay"` + InitialDelay *string `json:"initialDelay,omitempty"` // EvaluationTimeout is the timeout window in which the SLO metrics - EvaluationTimeout *string `json:"evaluationTimeout"` + EvaluationTimeout *string `json:"evaluationTimeout,omitempty"` // Is stop on failure enabled in the Probe - StopOnFailure *bool `json:"stopOnFailure"` + StopOnFailure *bool `json:"stopOnFailure,omitempty"` // Command of the Probe Command string `json:"command"` // Comparator of the Probe Comparator *Comparator `json:"comparator"` // Source of the Probe - Source *string `json:"source"` + Source *string `json:"source,omitempty"` } func (KubernetesCMDProbe) IsCommonProbeProperties() {} +// Timeout of the Probe +func (this KubernetesCMDProbe) GetProbeTimeout() string { return this.ProbeTimeout } + +// Interval of the Probe +func (this KubernetesCMDProbe) GetInterval() string { return this.Interval } + +// Retry interval of the Probe +func (this KubernetesCMDProbe) GetRetry() *int { return this.Retry } + +// Attempt contains the total attempt count for the probe +func (this KubernetesCMDProbe) GetAttempt() *int { return this.Attempt } + +// Polling interval of the Probe +func (this KubernetesCMDProbe) GetProbePollingInterval() *string { return this.ProbePollingInterval } + +// Initial delay interval of the Probe in seconds +func (this KubernetesCMDProbe) GetInitialDelay() *string { return this.InitialDelay } + +// EvaluationTimeout is the timeout window in which the SLO metrics +func (this KubernetesCMDProbe) GetEvaluationTimeout() *string { return this.EvaluationTimeout } + +// Is stop on failure enabled in the Probe +func (this KubernetesCMDProbe) GetStopOnFailure() *bool { return this.StopOnFailure } + // Defines the input for Kubernetes CMD probe properties type KubernetesCMDProbeRequest struct { // Timeout of the Probe @@ -1080,23 +1244,23 @@ type KubernetesCMDProbeRequest struct { // Interval of the Probe Interval string `json:"interval"` // Retry interval of the Probe - Retry *int `json:"retry"` + Retry *int `json:"retry,omitempty"` // Attempt contains the total attempt count for the probe - Attempt *int `json:"attempt"` + Attempt *int `json:"attempt,omitempty"` // Polling interval of the Probe - ProbePollingInterval *string `json:"probePollingInterval"` + ProbePollingInterval *string `json:"probePollingInterval,omitempty"` // Initial delay interval of the Probe in seconds - InitialDelay *string `json:"initialDelay"` + InitialDelay *string `json:"initialDelay,omitempty"` // EvaluationTimeout is the timeout window in which the SLO metrics - EvaluationTimeout *string `json:"evaluationTimeout"` + EvaluationTimeout *string `json:"evaluationTimeout,omitempty"` // Is stop on failure enabled in the Probe - StopOnFailure *bool `json:"stopOnFailure"` + StopOnFailure *bool `json:"stopOnFailure,omitempty"` // Command of the Probe Command string `json:"command"` // Comparator of the Probe Comparator *ComparatorInput `json:"comparator"` // Source of the Probe - Source *string `json:"source"` + Source *string `json:"source,omitempty"` } // Defines the Kubernetes HTTP probe properties @@ -1106,27 +1270,51 @@ type KubernetesHTTPProbe struct { // Interval of the Probe Interval string `json:"interval"` // Retry interval of the Probe - Retry *int `json:"retry"` + Retry *int `json:"retry,omitempty"` // Attempt contains the total attempt count for the probe - Attempt *int `json:"attempt"` + Attempt *int `json:"attempt,omitempty"` // Polling interval of the Probe - ProbePollingInterval *string `json:"probePollingInterval"` + ProbePollingInterval *string `json:"probePollingInterval,omitempty"` // Initial delay interval of the Probe in seconds - InitialDelay *string `json:"initialDelay"` + InitialDelay *string `json:"initialDelay,omitempty"` // EvaluationTimeout is the timeout window in which the SLO metrics - EvaluationTimeout *string `json:"evaluationTimeout"` + EvaluationTimeout *string `json:"evaluationTimeout,omitempty"` // Is stop on failure enabled in the Probe - StopOnFailure *bool `json:"stopOnFailure"` + StopOnFailure *bool `json:"stopOnFailure,omitempty"` // URL of the Probe URL string `json:"url"` // HTTP method of the Probe Method *Method `json:"method"` // If Insecure HTTP verification should be skipped - InsecureSkipVerify *bool `json:"insecureSkipVerify"` + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` } func (KubernetesHTTPProbe) IsCommonProbeProperties() {} +// Timeout of the Probe +func (this KubernetesHTTPProbe) GetProbeTimeout() string { return this.ProbeTimeout } + +// Interval of the Probe +func (this KubernetesHTTPProbe) GetInterval() string { return this.Interval } + +// Retry interval of the Probe +func (this KubernetesHTTPProbe) GetRetry() *int { return this.Retry } + +// Attempt contains the total attempt count for the probe +func (this KubernetesHTTPProbe) GetAttempt() *int { return this.Attempt } + +// Polling interval of the Probe +func (this KubernetesHTTPProbe) GetProbePollingInterval() *string { return this.ProbePollingInterval } + +// Initial delay interval of the Probe in seconds +func (this KubernetesHTTPProbe) GetInitialDelay() *string { return this.InitialDelay } + +// EvaluationTimeout is the timeout window in which the SLO metrics +func (this KubernetesHTTPProbe) GetEvaluationTimeout() *string { return this.EvaluationTimeout } + +// Is stop on failure enabled in the Probe +func (this KubernetesHTTPProbe) GetStopOnFailure() *bool { return this.StopOnFailure } + // Defines the input for Kubernetes HTTP probe properties type KubernetesHTTPProbeRequest struct { // Timeout of the Probe @@ -1134,23 +1322,23 @@ type KubernetesHTTPProbeRequest struct { // Interval of the Probe Interval string `json:"interval"` // Retry interval of the Probe - Retry *int `json:"retry"` + Retry *int `json:"retry,omitempty"` // Attempt contains the total attempt count for the probe - Attempt *int `json:"attempt"` + Attempt *int `json:"attempt,omitempty"` // Polling interval of the Probe - ProbePollingInterval *string `json:"probePollingInterval"` + ProbePollingInterval *string `json:"probePollingInterval,omitempty"` // Initial delay interval of the Probe in seconds - InitialDelay *string `json:"initialDelay"` + InitialDelay *string `json:"initialDelay,omitempty"` // EvaluationTimeout is the timeout window in which the SLO metrics - EvaluationTimeout *string `json:"evaluationTimeout"` + EvaluationTimeout *string `json:"evaluationTimeout,omitempty"` // Is stop on failure enabled in the Probe - StopOnFailure *bool `json:"stopOnFailure"` + StopOnFailure *bool `json:"stopOnFailure,omitempty"` // URL of the Probe URL string `json:"url"` // HTTP method of the Probe Method *MethodRequest `json:"method"` // If Insecure HTTP verification should be skipped - InsecureSkipVerify *bool `json:"insecureSkipVerify"` + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` } type Link struct { @@ -1160,38 +1348,38 @@ type Link struct { type ListChaosHubRequest struct { // Array of ChaosHub IDs for which details will be fetched - ChaosHubIDs []string `json:"chaosHubIDs"` + ChaosHubIDs []string `json:"chaosHubIDs,omitempty"` // Details for fetching filtered data - Filter *ChaosHubFilterInput `json:"filter"` + Filter *ChaosHubFilterInput `json:"filter,omitempty"` } type ListEnvironmentRequest struct { // Environment ID - EnvironmentIDs []string `json:"environmentIDs"` + EnvironmentIDs []string `json:"environmentIDs,omitempty"` // Details for fetching paginated data - Pagination *Pagination `json:"pagination"` + Pagination *Pagination `json:"pagination,omitempty"` // Details for fetching filtered data - Filter *EnvironmentFilterInput `json:"filter"` + Filter *EnvironmentFilterInput `json:"filter,omitempty"` // Details for fetching sorted data - Sort *EnvironmentSortInput `json:"sort"` + Sort *EnvironmentSortInput `json:"sort,omitempty"` } type ListEnvironmentResponse struct { // Total number of environment TotalNoOfEnvironments int `json:"totalNoOfEnvironments"` - Environments []*Environment `json:"environments"` + Environments []*Environment `json:"environments,omitempty"` } // Defines the details for a experiment type ListExperimentRequest struct { // Array of experiment IDs for which details will be fetched - ExperimentIDs []*string `json:"experimentIDs"` + ExperimentIDs []*string `json:"experimentIDs,omitempty"` // Details for fetching paginated data - Pagination *Pagination `json:"pagination"` + Pagination *Pagination `json:"pagination,omitempty"` // Details for fetching sorted data - Sort *ExperimentSortInput `json:"sort"` + Sort *ExperimentSortInput `json:"sort,omitempty"` // Details for fetching filtered data - Filter *ExperimentFilterInput `json:"filter"` + Filter *ExperimentFilterInput `json:"filter,omitempty"` } // Defines the details for a experiment with total experiment count @@ -1205,15 +1393,15 @@ type ListExperimentResponse struct { // Defines the details for experiment runs type ListExperimentRunRequest struct { // Array of experiment run IDs for which details will be fetched - ExperimentRunIDs []*string `json:"experimentRunIDs"` + ExperimentRunIDs []*string `json:"experimentRunIDs,omitempty"` // Array of experiment IDs for which details will be fetched - ExperimentIDs []*string `json:"experimentIDs"` + ExperimentIDs []*string `json:"experimentIDs,omitempty"` // Details for fetching paginated data - Pagination *Pagination `json:"pagination"` + Pagination *Pagination `json:"pagination,omitempty"` // Details for fetching sorted data - Sort *ExperimentRunSortInput `json:"sort"` + Sort *ExperimentRunSortInput `json:"sort,omitempty"` // Details for fetching filtered data - Filter *ExperimentRunFilterInput `json:"filter"` + Filter *ExperimentRunFilterInput `json:"filter,omitempty"` } // Defines the details of a experiment to sent as response @@ -1227,13 +1415,13 @@ type ListExperimentRunResponse struct { // Defines the details for a infra type ListInfraRequest struct { // Array of infra IDs for which details will be fetched - InfraIDs []string `json:"infraIDs"` + InfraIDs []string `json:"infraIDs,omitempty"` // Environment ID - EnvironmentIDs []string `json:"environmentIDs"` + EnvironmentIDs []string `json:"environmentIDs,omitempty"` // Details for fetching paginated data - Pagination *Pagination `json:"pagination"` + Pagination *Pagination `json:"pagination,omitempty"` // Details for fetching filtered data - Filter *InfraFilterInput `json:"filter"` + Filter *InfraFilterInput `json:"filter,omitempty"` } // Defines the details for a infras with total infras count @@ -1261,17 +1449,20 @@ type Metadata struct { // Defines the methods of the probe properties type Method struct { // A GET request - Get *Get `json:"get"` + Get *Get `json:"get,omitempty"` // A POST request - Post *Post `json:"post"` + Post *Post `json:"post,omitempty"` } // Defines the input for methods of the probe properties type MethodRequest struct { // A GET request - Get *GETRequest `json:"get"` + Get *GETRequest `json:"get,omitempty"` // A POST request - Post *POSTRequest `json:"post"` + Post *POSTRequest `json:"post,omitempty"` +} + +type Mutation struct { } type NewInfraEventRequest struct { @@ -1283,7 +1474,7 @@ type NewInfraEventRequest struct { type ObjectData struct { // Labels present in the resource - Labels []string `json:"labels"` + Labels []string `json:"labels,omitempty"` // Name of the resource Name string `json:"name"` } @@ -1291,11 +1482,11 @@ type ObjectData struct { // Details of POST request type Post struct { // Content Type of the request - ContentType *string `json:"contentType"` + ContentType *string `json:"contentType,omitempty"` // Body of the request - Body *string `json:"body"` + Body *string `json:"body,omitempty"` // Body Path of the HTTP body required for the http post request - BodyPath *string `json:"bodyPath"` + BodyPath *string `json:"bodyPath,omitempty"` // Criteria of the request Criteria string `json:"criteria"` // Response Code of the request @@ -1305,11 +1496,11 @@ type Post struct { // Details for input of the POST request type POSTRequest struct { // Content Type of the request - ContentType *string `json:"contentType"` + ContentType *string `json:"contentType,omitempty"` // Body of the request - Body *string `json:"body"` + Body *string `json:"body,omitempty"` // Body Path of the request for Body - BodyPath *string `json:"bodyPath"` + BodyPath *string `json:"bodyPath,omitempty"` // Criteria of the request Criteria string `json:"criteria"` // Response Code of the request @@ -1323,29 +1514,53 @@ type PROMProbe struct { // Interval of the Probe Interval string `json:"interval"` // Retry interval of the Probe - Retry *int `json:"retry"` + Retry *int `json:"retry,omitempty"` // Attempt contains the total attempt count for the probe - Attempt *int `json:"attempt"` + Attempt *int `json:"attempt,omitempty"` // Polling interval of the Probe - ProbePollingInterval *string `json:"probePollingInterval"` + ProbePollingInterval *string `json:"probePollingInterval,omitempty"` // Initial delay interval of the Probe in seconds - InitialDelay *string `json:"initialDelay"` + InitialDelay *string `json:"initialDelay,omitempty"` // EvaluationTimeout is the timeout window in which the SLO metrics - EvaluationTimeout *string `json:"evaluationTimeout"` + EvaluationTimeout *string `json:"evaluationTimeout,omitempty"` // Is stop on failure enabled in the Probe - StopOnFailure *bool `json:"stopOnFailure"` + StopOnFailure *bool `json:"stopOnFailure,omitempty"` // Endpoint of the Probe Endpoint string `json:"endpoint"` // Query of the Probe - Query *string `json:"query"` + Query *string `json:"query,omitempty"` // Query path of the Probe - QueryPath *string `json:"queryPath"` + QueryPath *string `json:"queryPath,omitempty"` // Comparator of the Probe Comparator *Comparator `json:"comparator"` } func (PROMProbe) IsCommonProbeProperties() {} +// Timeout of the Probe +func (this PROMProbe) GetProbeTimeout() string { return this.ProbeTimeout } + +// Interval of the Probe +func (this PROMProbe) GetInterval() string { return this.Interval } + +// Retry interval of the Probe +func (this PROMProbe) GetRetry() *int { return this.Retry } + +// Attempt contains the total attempt count for the probe +func (this PROMProbe) GetAttempt() *int { return this.Attempt } + +// Polling interval of the Probe +func (this PROMProbe) GetProbePollingInterval() *string { return this.ProbePollingInterval } + +// Initial delay interval of the Probe in seconds +func (this PROMProbe) GetInitialDelay() *string { return this.InitialDelay } + +// EvaluationTimeout is the timeout window in which the SLO metrics +func (this PROMProbe) GetEvaluationTimeout() *string { return this.EvaluationTimeout } + +// Is stop on failure enabled in the Probe +func (this PROMProbe) GetStopOnFailure() *bool { return this.StopOnFailure } + // Defines the input for PROM probe properties type PROMProbeRequest struct { // Timeout of the Probe @@ -1353,23 +1568,23 @@ type PROMProbeRequest struct { // Interval of the Probe Interval string `json:"interval"` // Retry interval of the Probe - Retry *int `json:"retry"` + Retry *int `json:"retry,omitempty"` // Attempt contains the total attempt count for the probe - Attempt *int `json:"attempt"` + Attempt *int `json:"attempt,omitempty"` // Polling interval of the Probe - ProbePollingInterval *string `json:"probePollingInterval"` + ProbePollingInterval *string `json:"probePollingInterval,omitempty"` // Initial delay interval of the Probe in seconds - InitialDelay *string `json:"initialDelay"` + InitialDelay *string `json:"initialDelay,omitempty"` // EvaluationTimeout is the timeout window in which the SLO metrics - EvaluationTimeout *string `json:"evaluationTimeout"` + EvaluationTimeout *string `json:"evaluationTimeout,omitempty"` // Is stop on failure enabled in the Probe - StopOnFailure *bool `json:"stopOnFailure"` + StopOnFailure *bool `json:"stopOnFailure,omitempty"` // Endpoint of the Probe Endpoint string `json:"endpoint"` // Query of the Probe - Query *string `json:"query"` + Query *string `json:"query,omitempty"` // Query path of the Probe - QueryPath *string `json:"queryPath"` + QueryPath *string `json:"queryPath,omitempty"` // Comparator of the Probe Comparator *ComparatorInput `json:"comparator"` } @@ -1416,11 +1631,11 @@ type PodLogRequest struct { // Type of the pod: chaosEngine or not pod PodType string `json:"podType"` // Name of the experiment pod fetched from execution data - ExpPod *string `json:"expPod"` + ExpPod *string `json:"expPod,omitempty"` // Name of the runner pod fetched from execution data - RunnerPod *string `json:"runnerPod"` + RunnerPod *string `json:"runnerPod,omitempty"` // Namespace where the experiment is executing - ChaosNamespace *string `json:"chaosNamespace"` + ChaosNamespace *string `json:"chaosNamespace,omitempty"` } // Defines the response received for querying querying the pod logs @@ -1439,7 +1654,7 @@ type PredefinedExperimentList struct { // Name of the experiment ExperimentName string `json:"experimentName"` // Experiment CSV - ExperimentCsv string `json:"experimentCSV"` + ExperimentCSV string `json:"experimentCSV"` // Experiment Manifest ExperimentManifest string `json:"experimentManifest"` } @@ -1451,46 +1666,63 @@ type Probe struct { // Name of the Probe Name string `json:"name"` // Description of the Probe - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Tags of the Probe - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` // Type of the Probe [From list of ProbeType enum] Type ProbeType `json:"type"` // Infrastructure type of the Probe InfrastructureType InfrastructureType `json:"infrastructureType"` // Kubernetes HTTP Properties of the specific type of the Probe - KubernetesHTTPProperties *KubernetesHTTPProbe `json:"kubernetesHTTPProperties"` + KubernetesHTTPProperties *KubernetesHTTPProbe `json:"kubernetesHTTPProperties,omitempty"` // Kubernetes CMD Properties of the specific type of the Probe - KubernetesCMDProperties *KubernetesCMDProbe `json:"kubernetesCMDProperties"` + KubernetesCMDProperties *KubernetesCMDProbe `json:"kubernetesCMDProperties,omitempty"` // K8S Properties of the specific type of the Probe - K8sProperties *K8SProbe `json:"k8sProperties"` + K8sProperties *K8SProbe `json:"k8sProperties,omitempty"` // PROM Properties of the specific type of the Probe - PromProperties *PROMProbe `json:"promProperties"` + PromProperties *PROMProbe `json:"promProperties,omitempty"` // All execution histories of the probe - RecentExecutions []*ProbeRecentExecutions `json:"recentExecutions"` + RecentExecutions []*ProbeRecentExecutions `json:"recentExecutions,omitempty"` // Referenced by how many faults - ReferencedBy *int `json:"referencedBy"` + ReferencedBy *int `json:"referencedBy,omitempty"` // Timestamp at which the Probe was last updated UpdatedAt string `json:"updatedAt"` // Timestamp at which the Probe was created CreatedAt string `json:"createdAt"` // User who has updated the Probe - UpdatedBy *UserDetails `json:"updatedBy"` + UpdatedBy *UserDetails `json:"updatedBy,omitempty"` // User who has created the Probe - CreatedBy *UserDetails `json:"createdBy"` + CreatedBy *UserDetails `json:"createdBy,omitempty"` } -func (Probe) IsResourceDetails() {} -func (Probe) IsAudit() {} +func (Probe) IsResourceDetails() {} +func (this Probe) GetName() string { return this.Name } +func (this Probe) GetDescription() *string { return this.Description } +func (this Probe) GetTags() []string { + if this.Tags == nil { + return nil + } + interfaceSlice := make([]string, 0, len(this.Tags)) + for _, concrete := range this.Tags { + interfaceSlice = append(interfaceSlice, concrete) + } + return interfaceSlice +} + +func (Probe) IsAudit() {} +func (this Probe) GetUpdatedAt() *string { return &this.UpdatedAt } +func (this Probe) GetCreatedAt() *string { return &this.CreatedAt } +func (this Probe) GetUpdatedBy() *UserDetails { return this.UpdatedBy } +func (this Probe) GetCreatedBy() *UserDetails { return this.CreatedBy } // Defines the input for Probe filter type ProbeFilterInput struct { // Name of the Probe - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // Date range for filtering purpose - DateRange *DateRange `json:"dateRange"` + DateRange *DateRange `json:"dateRange,omitempty"` // Type of the Probe [From list of ProbeType enum] - Type []*ProbeType `json:"type"` + Type []*ProbeType `json:"type,omitempty"` } // Defines the Recent Executions of global probe in ListProbe API with different fault and execution history each time @@ -1508,27 +1740,30 @@ type ProbeRequest struct { // Name of the Probe Name string `json:"name"` // Description of the Probe - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Tags of the Probe - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` // Type of the Probe [From list of ProbeType enum] Type ProbeType `json:"type"` // Infrastructure type of the Probe InfrastructureType InfrastructureType `json:"infrastructureType"` // HTTP Properties of the specific type of the Probe - KubernetesHTTPProperties *KubernetesHTTPProbeRequest `json:"kubernetesHTTPProperties"` + KubernetesHTTPProperties *KubernetesHTTPProbeRequest `json:"kubernetesHTTPProperties,omitempty"` // CMD Properties of the specific type of the Probe - KubernetesCMDProperties *KubernetesCMDProbeRequest `json:"kubernetesCMDProperties"` + KubernetesCMDProperties *KubernetesCMDProbeRequest `json:"kubernetesCMDProperties,omitempty"` // K8S Properties of the specific type of the Probe - K8sProperties *K8SProbeRequest `json:"k8sProperties"` + K8sProperties *K8SProbeRequest `json:"k8sProperties,omitempty"` // PROM Properties of the specific type of the Probe - PromProperties *PROMProbeRequest `json:"promProperties"` + PromProperties *PROMProbeRequest `json:"promProperties,omitempty"` } type Provider struct { Name string `json:"name"` } +type Query struct { +} + // Defines the Recent Executions of experiment referenced by the Probe type RecentExecutions struct { // Fault name @@ -1545,20 +1780,24 @@ type RecentExperimentRun struct { // Phase of the experiment run Phase string `json:"phase"` // Resiliency score of the experiment - ResiliencyScore *float64 `json:"resiliencyScore"` + ResiliencyScore *float64 `json:"resiliencyScore,omitempty"` // Timestamp when the experiment was last updated UpdatedAt string `json:"updatedAt"` // Timestamp when the experiment was created CreatedAt string `json:"createdAt"` // User who created the experiment run - CreatedBy *UserDetails `json:"createdBy"` + CreatedBy *UserDetails `json:"createdBy,omitempty"` // User who updated the experiment run - UpdatedBy *UserDetails `json:"updatedBy"` + UpdatedBy *UserDetails `json:"updatedBy,omitempty"` // runSequence is the sequence number of experiment run RunSequence int `json:"runSequence"` } -func (RecentExperimentRun) IsAudit() {} +func (RecentExperimentRun) IsAudit() {} +func (this RecentExperimentRun) GetUpdatedAt() *string { return &this.UpdatedAt } +func (this RecentExperimentRun) GetCreatedAt() *string { return &this.CreatedAt } +func (this RecentExperimentRun) GetUpdatedBy() *UserDetails { return this.UpdatedBy } +func (this RecentExperimentRun) GetCreatedBy() *UserDetails { return this.CreatedBy } // Defines the details for the new infra being connected type RegisterInfraRequest struct { @@ -1569,27 +1808,27 @@ type RegisterInfraRequest struct { // Type of Infra : internal/external InfrastructureType InfrastructureType `json:"infrastructureType"` // Description of the infra - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Infra Platform Name eg. GKE,AWS, Others PlatformName string `json:"platformName"` // Namespace where the infra is being installed - InfraNamespace *string `json:"infraNamespace"` + InfraNamespace *string `json:"infraNamespace,omitempty"` // Name of service account used by infra - ServiceAccount *string `json:"serviceAccount"` + ServiceAccount *string `json:"serviceAccount,omitempty"` // Scope of the infra : ns or infra InfraScope string `json:"infraScope"` // Bool value indicating whether infra ns used already exists on infra or not - InfraNsExists *bool `json:"infraNsExists"` + InfraNsExists *bool `json:"infraNsExists,omitempty"` // Bool value indicating whether service account used already exists on infra or not - InfraSaExists *bool `json:"infraSaExists"` + InfraSaExists *bool `json:"infraSaExists,omitempty"` // Bool value indicating whether infra will skip ssl checks or not - SkipSsl *bool `json:"skipSsl"` + SkipSsl *bool `json:"skipSsl,omitempty"` // Node selectors used by infra - NodeSelector *string `json:"nodeSelector"` + NodeSelector *string `json:"nodeSelector,omitempty"` // Node tolerations used by infra - Tolerations []*Toleration `json:"tolerations"` + Tolerations []*Toleration `json:"tolerations,omitempty"` // Tags of the infra - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` } // Response received for registering a new infra @@ -1628,7 +1867,7 @@ type SaveChaosExperimentRequest struct { // ID of the experiment ID string `json:"id"` // Type of the experiment - Type *ExperimentType `json:"type"` + Type *ExperimentType `json:"type,omitempty"` // Name of the experiment Name string `json:"name"` // Description of the experiment @@ -1638,7 +1877,7 @@ type SaveChaosExperimentRequest struct { // ID of the target infrastructure in which the experiment will run InfraID string `json:"infraID"` // Tags of the infrastructure - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` } // Response received for fetching GQL server version @@ -1659,10 +1898,10 @@ type Spec struct { Provider *Provider `json:"provider"` Links []*Link `json:"links"` Faults []*FaultList `json:"faults"` - Experiments []string `json:"experiments"` + Experiments []string `json:"experiments,omitempty"` ChaosExpCRDLink string `json:"chaosExpCRDLink"` Platforms []string `json:"platforms"` - ChaosType *string `json:"chaosType"` + ChaosType *string `json:"chaosType,omitempty"` } // Status defines whether a probe is pass or fail @@ -1670,7 +1909,7 @@ type Status struct { // Verdict defines the verdict of the probe, range: Passed, Failed, N/A Verdict ProbeVerdict `json:"verdict"` // Description defines the description of probe status - Description *string `json:"description"` + Description *string `json:"description,omitempty"` } // Defines the request for stopping a experiment @@ -1679,15 +1918,18 @@ type StopExperimentRunsRequest struct { // ID of the experiment to be stopped ExperimentID string `json:"experimentID"` // ID of the experiment run to be stopped - ExperimentRunID *string `json:"experimentRunID"` + ExperimentRunID *string `json:"experimentRunID,omitempty"` +} + +type Subscription struct { } type Toleration struct { - TolerationSeconds *int `json:"tolerationSeconds"` - Key *string `json:"key"` - Operator *string `json:"operator"` - Effect *string `json:"effect"` - Value *string `json:"value"` + TolerationSeconds *int `json:"tolerationSeconds,omitempty"` + Key *string `json:"key,omitempty"` + Operator *string `json:"operator,omitempty"` + Effect *string `json:"effect,omitempty"` + Value *string `json:"value,omitempty"` } type UpdateChaosHubRequest struct { @@ -1696,9 +1938,9 @@ type UpdateChaosHubRequest struct { // Name of the chaos hub Name string `json:"name"` // Description of the infra - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Tags of the infra - Tags []string `json:"tags"` + Tags []string `json:"tags,omitempty"` // URL of the git repository RepoURL string `json:"repoURL"` // Branch of the git repository @@ -1708,23 +1950,23 @@ type UpdateChaosHubRequest struct { // Type of authentication used: BASIC, SSH, TOKEN AuthType AuthType `json:"authType"` // Token for authentication of private chaos hub - Token *string `json:"token"` + Token *string `json:"token,omitempty"` // Git username - UserName *string `json:"userName"` + UserName *string `json:"userName,omitempty"` // Git password - Password *string `json:"password"` + Password *string `json:"password,omitempty"` // Private SSH key for authenticating into private chaos hub - SSHPrivateKey *string `json:"sshPrivateKey"` + SSHPrivateKey *string `json:"sshPrivateKey,omitempty"` // Public SSH key for authenticating into private chaos hub - SSHPublicKey *string `json:"sshPublicKey"` + SSHPublicKey *string `json:"sshPublicKey,omitempty"` } type UpdateEnvironmentRequest struct { EnvironmentID string `json:"environmentID"` - Name *string `json:"name"` - Description *string `json:"description"` - Tags []*string `json:"tags"` - Type *EnvironmentType `json:"type"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Tags []*string `json:"tags,omitempty"` + Type *EnvironmentType `json:"type,omitempty"` } type UserDetails struct { @@ -2031,19 +2273,19 @@ const ( FileTypeExperiment FileType = "EXPERIMENT" FileTypeEngine FileType = "ENGINE" FileTypeWorkflow FileType = "WORKFLOW" - FileTypeCsv FileType = "CSV" + FileTypeCSV FileType = "CSV" ) var AllFileType = []FileType{ FileTypeExperiment, FileTypeEngine, FileTypeWorkflow, - FileTypeCsv, + FileTypeCSV, } func (e FileType) IsValid() bool { switch e { - case FileTypeExperiment, FileTypeEngine, FileTypeWorkflow, FileTypeCsv: + case FileTypeExperiment, FileTypeEngine, FileTypeWorkflow, FileTypeCSV: return true } return false diff --git a/chaoscenter/graphql/server/graph/probe.resolvers.go b/chaoscenter/graphql/server/graph/probe.resolvers.go index 8ce59a758b9..71b7291e024 100644 --- a/chaoscenter/graphql/server/graph/probe.resolvers.go +++ b/chaoscenter/graphql/server/graph/probe.resolvers.go @@ -2,6 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. +// Code generated by github.com/99designs/gqlgen version v0.17.42 import ( "context" @@ -12,6 +13,7 @@ import ( "github.com/sirupsen/logrus" ) +// AddProbe is the resolver for the addProbe field. func (r *mutationResolver) AddProbe(ctx context.Context, request model.ProbeRequest, projectID string) (*model.Probe, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -61,6 +63,7 @@ func (r *mutationResolver) AddProbe(ctx context.Context, request model.ProbeRequ return response, err } +// UpdateProbe is the resolver for the updateProbe field. func (r *mutationResolver) UpdateProbe(ctx context.Context, request model.ProbeRequest, projectID string) (string, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -85,6 +88,7 @@ func (r *mutationResolver) UpdateProbe(ctx context.Context, request model.ProbeR return response, err } +// DeleteProbe is the resolver for the deleteProbe field. func (r *mutationResolver) DeleteProbe(ctx context.Context, probeName string, projectID string) (bool, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -109,6 +113,7 @@ func (r *mutationResolver) DeleteProbe(ctx context.Context, probeName string, pr return response, err } +// ListProbes is the resolver for the listProbes field. func (r *queryResolver) ListProbes(ctx context.Context, projectID string, infrastructureType *model.InfrastructureType, probeNames []string, filter *model.ProbeFilterInput) ([]*model.Probe, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -132,6 +137,7 @@ func (r *queryResolver) ListProbes(ctx context.Context, projectID string, infras return response, err } +// GetProbe is the resolver for the getProbe field. func (r *queryResolver) GetProbe(ctx context.Context, projectID string, probeName string) (*model.Probe, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -156,6 +162,7 @@ func (r *queryResolver) GetProbe(ctx context.Context, projectID string, probeNam return response, err } +// GetProbeYaml is the resolver for the getProbeYAML field. func (r *queryResolver) GetProbeYaml(ctx context.Context, projectID string, request model.GetProbeYAMLRequest) (string, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -180,6 +187,7 @@ func (r *queryResolver) GetProbeYaml(ctx context.Context, projectID string, requ return response, err } +// GetProbeReference is the resolver for the getProbeReference field. func (r *queryResolver) GetProbeReference(ctx context.Context, projectID string, probeName string) (*model.GetProbeReferenceResponse, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -204,6 +212,7 @@ func (r *queryResolver) GetProbeReference(ctx context.Context, projectID string, return response, err } +// GetProbesInExperimentRun is the resolver for the getProbesInExperimentRun field. func (r *queryResolver) GetProbesInExperimentRun(ctx context.Context, projectID string, experimentRunID string, faultName string) ([]*model.GetProbesInExperimentRunResponse, error) { logFields := logrus.Fields{ "projectId": projectID, @@ -228,6 +237,7 @@ func (r *queryResolver) GetProbesInExperimentRun(ctx context.Context, projectID return response, err } +// ValidateUniqueProbe is the resolver for the validateUniqueProbe field. func (r *queryResolver) ValidateUniqueProbe(ctx context.Context, projectID string, probeName string) (bool, error) { logFields := logrus.Fields{ "projectId": projectID, diff --git a/chaoscenter/graphql/server/pkg/chaoshub/handler/handler.go b/chaoscenter/graphql/server/pkg/chaoshub/handler/handler.go index aba7fc45d48..a9af8cf6f97 100644 --- a/chaoscenter/graphql/server/pkg/chaoshub/handler/handler.go +++ b/chaoscenter/graphql/server/pkg/chaoshub/handler/handler.go @@ -134,7 +134,7 @@ func ListPredefinedWorkflowDetails(name string, projectID string) ([]*model.Pred preDefinedWorkflow := &model.PredefinedExperimentList{ ExperimentName: file.Name(), ExperimentManifest: workflowManifest, - ExperimentCsv: csvManifest, + ExperimentCSV: csvManifest, } predefinedWorkflows = append(predefinedWorkflows, preDefinedWorkflow) } diff --git a/chaoscenter/graphql/server/pkg/chaoshub/service.go b/chaoscenter/graphql/server/pkg/chaoshub/service.go index 62239175d8f..278b14dec41 100644 --- a/chaoscenter/graphql/server/pkg/chaoshub/service.go +++ b/chaoscenter/graphql/server/pkg/chaoshub/service.go @@ -501,7 +501,7 @@ func (c *chaosHubService) GetChaosFault(ctx context.Context, request model.Exper } return &model.FaultDetails{ - Csv: string(csvYaml), + CSV: string(csvYaml), Engine: string(engineYaml), Fault: string(faultYaml), }, nil @@ -738,7 +738,7 @@ func (c *chaosHubService) ListPredefinedExperiments(ctx context.Context, hubID s for _, file := range files { if file.Name() != "icons" { preDefinedWorkflow := c.getPredefinedExperimentDetails(hubPath, file.Name()) - if preDefinedWorkflow.ExperimentCsv != "" { + if preDefinedWorkflow.ExperimentCSV != "" { predefinedWorkflows = append(predefinedWorkflows, preDefinedWorkflow) } } @@ -791,7 +791,7 @@ func (c *chaosHubService) GetPredefinedExperiment(ctx context.Context, hubID str for _, experiment := range experiments { preDefinedWorkflow := c.getPredefinedExperimentDetails(hubPath, experiment) - if preDefinedWorkflow.ExperimentCsv != "" { + if preDefinedWorkflow.ExperimentCSV != "" { predefinedWorkflows = append(predefinedWorkflows, preDefinedWorkflow) } } @@ -830,7 +830,7 @@ func (c *chaosHubService) getPredefinedExperimentDetails(experimentsPath string, preDefinedWorkflow = &model.PredefinedExperimentList{ ExperimentName: experiment, ExperimentManifest: workflowManifest, - ExperimentCsv: csvManifest, + ExperimentCSV: csvManifest, } } diff --git a/chaoscenter/web/src/views/ProjectMembers/ActiveMembersTable.tsx b/chaoscenter/web/src/views/ProjectMembers/ActiveMembersTable.tsx index c910047994f..86e2401b955 100644 --- a/chaoscenter/web/src/views/ProjectMembers/ActiveMembersTable.tsx +++ b/chaoscenter/web/src/views/ProjectMembers/ActiveMembersTable.tsx @@ -57,15 +57,10 @@ export default function ActiveMembersTableView({ Cell: ({ row: { original: data } }: { row: Row }) => { const { open: openDeleteModal, isOpen: isDeleteModalOpen, close: hideDeleteModal } = useToggleOpen(); // const { open: openEditModal, isOpen: isEditOpen, close: hideEditModal } = useToggleOpen(); - + if (data.role === 'Owner') return <>; return ( - +