MCPcopy
hub / github.com/cilium/cilium / sendEvent

Method sendEvent

pkg/allocator/cache.go:108–112  ·  view source on GitHub ↗
(typ AllocatorChangeKind, id idpool.ID, key AllocatorKey)

Source from the content-addressed store, hash-verified

106}
107
108func (c *cache) sendEvent(typ AllocatorChangeKind, id idpool.ID, key AllocatorKey) {
109 if events := c.allocator.events; events != nil {
110 events <- AllocatorEvent{Typ: typ, ID: id, Key: key}
111 }
112}
113
114func (c *cache) OnListDone() {
115 c.mutex.Lock()

Callers 2

OnUpsertMethod · 0.95
onDeleteLockedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected