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

Method handleRepositoryEvent

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

Source from the content-addressed store, hash-verified

356}
357
358func (w *Worker) handleRepositoryEvent(event common.ChangePayload) {
359 repo, ok := event.Payload.(params.Repository)
360 if !ok {
361 slog.DebugContext(w.ctx, "invalid payload type for repository event", "payload", event.Payload)
362 return
363 }
364 w.handleEntityEvent(repo, event.Operation)
365}
366
367func (w *Worker) handleOrgEvent(event common.ChangePayload) {
368 org, ok := event.Payload.(params.Organization)

Callers 1

handleEventMethod · 0.95

Calls 1

handleEntityEventMethod · 0.95

Tested by

no test coverage detected