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

Method SendLifecycle

internal/server/events/events.go:112–114  ·  view source on GitHub ↗

SendLifecycle broadcasts a lifecycle event.

(projectName string, event api.EventLifecycle)

Source from the content-addressed store, hash-verified

110
111// SendLifecycle broadcasts a lifecycle event.
112func (s *Server) SendLifecycle(projectName string, event api.EventLifecycle) {
113 _ = s.Send(projectName, api.EventTypeLifecycle, event)
114}
115
116// Send broadcasts a custom event.
117func (s *Server) Send(projectName string, eventType string, eventMessage any) error {

Callers 15

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

Implementers 3

ProtocolSimpleStreamsclient/simplestreams.go
ProtocolIncusclient/incus.go
ProtocolOCIclient/oci.go

Calls 1

SendMethod · 0.95

Tested by

no test coverage detected