MCPcopy
hub / github.com/nektos/act / WithJobErrorContainer

Function WithJobErrorContainer

pkg/common/job_error.go:31–34  ·  view source on GitHub ↗

WithJobErrorContainer adds a value to the context as a container for an error

(ctx context.Context)

Source from the content-addressed store, hash-verified

29
30// WithJobErrorContainer adds a value to the context as a container for an error
31func WithJobErrorContainer(ctx context.Context) context.Context {
32 container := map[string]error{}
33 return context.WithValue(ctx, jobErrorContextKeyVal, container)
34}
35
36func WithJobCancelContext(ctx context.Context, cancelContext context.Context) context.Context {
37 return context.WithValue(ctx, JobCancelCtxVal, cancelContext)

Callers 3

TestNewJobExecutorFunction · 0.92
NewPlanExecutorMethod · 0.92
compositeExecutorMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestNewJobExecutorFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…