Event creates the lifecycle event for an action on an image.
(image string, projectName string, requestor *api.EventLifecycleRequestor, ctx map[string]any)
| 20 | |
| 21 | // Event creates the lifecycle event for an action on an image. |
| 22 | func (a ImageAction) Event(image string, projectName string, requestor *api.EventLifecycleRequestor, ctx map[string]any) api.EventLifecycle { |
| 23 | u := api.NewURL().Path(version.APIVersion, "images", image).Project(projectName) |
| 24 | |
| 25 | return api.EventLifecycle{ |
| 26 | Action: string(a), |
| 27 | Source: u.String(), |
| 28 | Context: ctx, |
| 29 | Requestor: requestor, |
| 30 | } |
| 31 | } |
no test coverage detected