MCPcopy
hub / github.com/lxc/incus / Event

Method Event

internal/server/lifecycle/image.go:22–31  ·  view source on GitHub ↗

Event creates the lifecycle event for an action on an image.

(image string, projectName string, requestor *api.EventLifecycleRequestor, ctx map[string]any)

Source from the content-addressed store, hash-verified

20
21// Event creates the lifecycle event for an action on an image.
22func (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}

Callers 15

UpdateInstanceMethod · 0.45
DeleteImageMethod · 0.45
CreateCustomVolumeMethod · 0.45
RenameCustomVolumeMethod · 0.45
UpdateCustomVolumeMethod · 0.45
DeleteCustomVolumeMethod · 0.45
RebuildCustomVolumeMethod · 0.45

Calls 4

NewURLFunction · 0.92
ProjectMethod · 0.65
PathMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected