MCPcopy
hub / github.com/docker/compose / newEvent

Function newEvent

pkg/compose/progress.go:115–125  ·  pkg/compose/progress.go::newEvent

newEvent new event

(id string, status api.EventStatus, text string, reason ...string)

Source from the content-addressed store, hash-verified

113
114// newEvent new event
115func newEvent(id string, status api.EventStatus, text string, reason ...string) api.Resource {
116 r := api.Resource{
117 ID: id,
118 Status: status,
119 Text: text,
120 }
121 if len(reason) > 0 {
122 r.Details = reason[0]
123 }
124 return r
125}
126
127type ignore struct{}
128

Callers 15

pushMethod · 0.85
UpMethod · 0.85
restartMethod · 0.85
pullServiceImageMethod · 0.85
creatingEventFunction · 0.85
createdEventFunction · 0.85
stoppingEventFunction · 0.85
stoppedEventFunction · 0.85
removingEventFunction · 0.85
removedEventFunction · 0.85
buildingEventFunction · 0.85
builtEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected