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

Method _StorageDeployment_memory

pkg/graph/generated.go:4916–4945  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField, obj *model.StorageDeployment)

Source from the content-addressed store, hash-verified

4914}
4915
4916func (ec *executionContext) _StorageDeployment_memory(ctx context.Context, field graphql.CollectedField, obj *model.StorageDeployment) (ret graphql.Marshaler) {
4917 fc, err := ec.fieldContext_StorageDeployment_memory(ctx, field)
4918 if err != nil {
4919 return graphql.Null
4920 }
4921 ctx = graphql.WithFieldContext(ctx, fc)
4922 defer func() {
4923 if r := recover(); r != nil {
4924 ec.Error(ctx, ec.Recover(ctx, r))
4925 ret = graphql.Null
4926 }
4927 }()
4928 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4929 ctx = rctx // use context from middleware stack in children
4930 return obj.Memory, nil
4931 })
4932 if err != nil {
4933 ec.Error(ctx, err)
4934 return graphql.Null
4935 }
4936 if resTmp == nil {
4937 if !graphql.HasFieldError(ctx, fc) {
4938 ec.Errorf(ctx, "must not be null")
4939 }
4940 return graphql.Null
4941 }
4942 res := resTmp.(string)
4943 fc.Result = res
4944 return ec.marshalNString2string(ctx, field.Selections, res)
4945}
4946
4947func (ec *executionContext) fieldContext_StorageDeployment_memory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4948 fc = &graphql.FieldContext{

Callers 1

_StorageDeploymentMethod · 0.95

Tested by

no test coverage detected