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

Method handleEnterpriseEvent

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

Source from the content-addressed store, hash-verified

374}
375
376func (w *Worker) handleEnterpriseEvent(event common.ChangePayload) {
377 enterprise, ok := event.Payload.(params.Enterprise)
378 if !ok {
379 slog.DebugContext(w.ctx, "invalid payload type for enterprise event", "payload", event.Payload)
380 return
381 }
382 w.handleEntityEvent(enterprise, event.Operation)
383}
384
385func (w *Worker) handlePoolEvent(event common.ChangePayload) {
386 pool, ok := event.Payload.(params.Pool)

Callers 1

handleEventMethod · 0.95

Calls 1

handleEntityEventMethod · 0.95

Tested by

no test coverage detected