MCPcopy
hub / github.com/yusing/godoxy / setNapping

Method setNapping

internal/idlewatcher/state.go:46–54  ·  view source on GitHub ↗
(status idlewatcher.ContainerStatus)

Source from the content-addressed store, hash-verified

44}
45
46func (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
56func (w *Watcher) setError(err error) {
57 w.sendEvent(WakeEventError, "Container error", err)

Callers 1

watchUntilDestroyMethod · 0.95

Calls 1

clearEventHistoryMethod · 0.95

Tested by

no test coverage detected