WithEventProcessor configure component to get notified on Compose operation and progress events. Typically used to configure a progress UI
(bus api.EventProcessor)
| 192 | // WithEventProcessor configure component to get notified on Compose operation and progress events. |
| 193 | // Typically used to configure a progress UI |
| 194 | func WithEventProcessor(bus api.EventProcessor) Option { |
| 195 | return func(s *composeService) error { |
| 196 | s.events = bus |
| 197 | return nil |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | type composeService struct { |
| 202 | dockerCli command.Cli |
no outgoing calls