MCPcopy Create free account
hub / github.com/encoder-run/operator / _StorageDeployment

Method _StorageDeployment

pkg/graph/generated.go:8151–8196  ·  view source on GitHub ↗
(ctx context.Context, sel ast.SelectionSet, obj *model.StorageDeployment)

Source from the content-addressed store, hash-verified

8149var storageDeploymentImplementors = []string{"StorageDeployment"}
8150
8151func (ec *executionContext) _StorageDeployment(ctx context.Context, sel ast.SelectionSet, obj *model.StorageDeployment) graphql.Marshaler {
8152 fields := graphql.CollectFields(ec.OperationContext, sel, storageDeploymentImplementors)
8153
8154 out := graphql.NewFieldSet(fields)
8155 deferred := make(map[string]*graphql.FieldSet)
8156 for i, field := range fields {
8157 switch field.Name {
8158 case "__typename":
8159 out.Values[i] = graphql.MarshalString("StorageDeployment")
8160 case "enabled":
8161 out.Values[i] = ec._StorageDeployment_enabled(ctx, field, obj)
8162 if out.Values[i] == graphql.Null {
8163 out.Invalids++
8164 }
8165 case "cpu":
8166 out.Values[i] = ec._StorageDeployment_cpu(ctx, field, obj)
8167 if out.Values[i] == graphql.Null {
8168 out.Invalids++
8169 }
8170 case "memory":
8171 out.Values[i] = ec._StorageDeployment_memory(ctx, field, obj)
8172 if out.Values[i] == graphql.Null {
8173 out.Invalids++
8174 }
8175 default:
8176 panic("unknown field " + strconv.Quote(field.Name))
8177 }
8178 }
8179 out.Dispatch(ctx)
8180 if out.Invalids > 0 {
8181 return graphql.Null
8182 }
8183
8184 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8185
8186 for label, dfs := range deferred {
8187 ec.processDeferredGroup(graphql.DeferredGroup{
8188 Label: label,
8189 Path: graphql.GetPath(ctx),
8190 FieldSet: dfs,
8191 Context: ctx,
8192 })
8193 }
8194
8195 return out
8196}
8197
8198var __DirectiveImplementors = []string{"__Directive"}
8199

Calls 4

processDeferredGroupMethod · 0.95

Tested by

no test coverage detected