MCPcopy Create free account
hub / github.com/cloudbase/garm / handleOrgEvent

Method handleOrgEvent

workers/cache/cache.go:367–374  ·  view source on GitHub ↗
(event common.ChangePayload)

Source from the content-addressed store, hash-verified

365}
366
367func (w *Worker) handleOrgEvent(event common.ChangePayload) {
368 org, ok := event.Payload.(params.Organization)
369 if !ok {
370 slog.DebugContext(w.ctx, "invalid payload type for org event", "payload", event.Payload)
371 return
372 }
373 w.handleEntityEvent(org, event.Operation)
374}
375
376func (w *Worker) handleEnterpriseEvent(event common.ChangePayload) {
377 enterprise, ok := event.Payload.(params.Enterprise)

Callers 1

handleEventMethod · 0.95

Calls 1

handleEntityEventMethod · 0.95

Tested by

no test coverage detected