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

Method _Storage

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

Source from the content-addressed store, hash-verified

8093var storageImplementors = []string{"Storage"}
8094
8095func (ec *executionContext) _Storage(ctx context.Context, sel ast.SelectionSet, obj *model.Storage) graphql.Marshaler {
8096 fields := graphql.CollectFields(ec.OperationContext, sel, storageImplementors)
8097
8098 out := graphql.NewFieldSet(fields)
8099 deferred := make(map[string]*graphql.FieldSet)
8100 for i, field := range fields {
8101 switch field.Name {
8102 case "__typename":
8103 out.Values[i] = graphql.MarshalString("Storage")
8104 case "id":
8105 out.Values[i] = ec._Storage_id(ctx, field, obj)
8106 if out.Values[i] == graphql.Null {
8107 out.Invalids++
8108 }
8109 case "name":
8110 out.Values[i] = ec._Storage_name(ctx, field, obj)
8111 if out.Values[i] == graphql.Null {
8112 out.Invalids++
8113 }
8114 case "type":
8115 out.Values[i] = ec._Storage_type(ctx, field, obj)
8116 if out.Values[i] == graphql.Null {
8117 out.Invalids++
8118 }
8119 case "status":
8120 out.Values[i] = ec._Storage_status(ctx, field, obj)
8121 if out.Values[i] == graphql.Null {
8122 out.Invalids++
8123 }
8124 case "deployment":
8125 out.Values[i] = ec._Storage_deployment(ctx, field, obj)
8126 default:
8127 panic("unknown field " + strconv.Quote(field.Name))
8128 }
8129 }
8130 out.Dispatch(ctx)
8131 if out.Invalids > 0 {
8132 return graphql.Null
8133 }
8134
8135 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8136
8137 for label, dfs := range deferred {
8138 ec.processDeferredGroup(graphql.DeferredGroup{
8139 Label: label,
8140 Path: graphql.GetPath(ctx),
8141 FieldSet: dfs,
8142 Context: ctx,
8143 })
8144 }
8145
8146 return out
8147}
8148
8149var storageDeploymentImplementors = []string{"StorageDeployment"}
8150

Calls 6

_Storage_idMethod · 0.95
_Storage_nameMethod · 0.95
_Storage_typeMethod · 0.95
_Storage_statusMethod · 0.95
_Storage_deploymentMethod · 0.95
processDeferredGroupMethod · 0.95

Tested by

no test coverage detected