MCPcopy
hub / github.com/cilium/cilium / UpdateIdentities

Method UpdateIdentities

pkg/identity/cache/allocation_test.go:148–163  ·  view source on GitHub ↗
(added, deleted identity.IdentityMap)

Source from the content-addressed store, hash-verified

146}
147
148func (d *dummyOwner) UpdateIdentities(added, deleted identity.IdentityMap) <-chan struct{} {
149 d.mutex.Lock()
150 d.logger.Debug(fmt.Sprintf("Dummy UpdateIdentities(added: %v, deleted: %v)", added, deleted))
151 for id, lbls := range added {
152 d.cache[id] = lbls
153 d.updated <- id
154 }
155 for id := range deleted {
156 delete(d.cache, id)
157 d.updated <- id
158 }
159 d.mutex.Unlock()
160 out := make(chan struct{})
161 close(out)
162 return out
163}
164
165func (d *dummyOwner) GetIdentity(id identity.NumericIdentity) labels.LabelArray {
166 d.mutex.Lock()

Callers

nothing calls this directly

Calls 3

LockMethod · 0.65
DebugMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected