(status idlewatcher.ContainerStatus)
| 44 | } |
| 45 | |
| 46 | func (w *Watcher) setNapping(status idlewatcher.ContainerStatus) { |
| 47 | w.clearEventHistory() // Clear events on stop/pause |
| 48 | w.state.Store(&containerState{ |
| 49 | status: status, |
| 50 | ready: false, |
| 51 | startedAt: time.Time{}, |
| 52 | healthTries: 0, |
| 53 | }) |
| 54 | } |
| 55 | |
| 56 | func (w *Watcher) setError(err error) { |
| 57 | w.sendEvent(WakeEventError, "Container error", err) |
no test coverage detected