newEvent new event
(id string, status api.EventStatus, text string, reason ...string)
| 113 | |
| 114 | // newEvent new event |
| 115 | func 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 | |
| 127 | type ignore struct{} |
| 128 |
no outgoing calls
no test coverage detected