(ctx context.Context)
| 71 | } |
| 72 | |
| 73 | func (rg *Static) RunContext(ctx context.Context) Output { |
| 74 | rg.broadcast(NewEventStart(ctx, TypeRun)) |
| 75 | |
| 76 | out := NewOutput(TypeRun) |
| 77 | if rg.Resources == nil { |
| 78 | out.Error = errors.New("no resources available") |
| 79 | } |
| 80 | |
| 81 | out.Resources = rg.Resources |
| 82 | |
| 83 | rg.broadcast(NewEventEnd(ctx, out)) |
| 84 | |
| 85 | return out |
| 86 | } |
| 87 | |
| 88 | func (rg *Static) RunOnEvent() { |
| 89 | // No events to watch for in static resources. |
no test coverage detected