MCPcopy
hub / github.com/cloudfoundry/cli / FillInEvents

Function FillInEvents

command/v7/push_command_test.go:39–51  ·  view source on GitHub ↗
(steps []Step)

Source from the content-addressed store, hash-verified

37}
38
39func FillInEvents(steps []Step) <-chan *v7pushaction.PushEvent {
40 eventStream := make(chan *v7pushaction.PushEvent)
41
42 go func() {
43 defer close(eventStream)
44
45 for _, step := range steps {
46 eventStream <- &v7pushaction.PushEvent{Plan: step.Plan, Warnings: step.Warnings, Err: step.Error, Event: step.Event}
47 }
48 }()
49
50 return eventStream
51}
52
53type LogEvent struct {
54 Log *sharedaction.LogMessage

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected