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

Method _PipelineExecution_status

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

Source from the content-addressed store, hash-verified

2904}
2905
2906func (ec *executionContext) _PipelineExecution_status(ctx context.Context, field graphql.CollectedField, obj *model.PipelineExecution) (ret graphql.Marshaler) {
2907 fc, err := ec.fieldContext_PipelineExecution_status(ctx, field)
2908 if err != nil {
2909 return graphql.Null
2910 }
2911 ctx = graphql.WithFieldContext(ctx, fc)
2912 defer func() {
2913 if r := recover(); r != nil {
2914 ec.Error(ctx, ec.Recover(ctx, r))
2915 ret = graphql.Null
2916 }
2917 }()
2918 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2919 ctx = rctx // use context from middleware stack in children
2920 return obj.Status, nil
2921 })
2922 if err != nil {
2923 ec.Error(ctx, err)
2924 return graphql.Null
2925 }
2926 if resTmp == nil {
2927 if !graphql.HasFieldError(ctx, fc) {
2928 ec.Errorf(ctx, "must not be null")
2929 }
2930 return graphql.Null
2931 }
2932 res := resTmp.(model.PipelineExecutionStatus)
2933 fc.Result = res
2934 return ec.marshalNPipelineExecutionStatus2githubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐPipelineExecutionStatus(ctx, field.Selections, res)
2935}
2936
2937func (ec *executionContext) fieldContext_PipelineExecution_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2938 fc = &graphql.FieldContext{

Callers 1

_PipelineExecutionMethod · 0.95

Tested by

no test coverage detected