MCPcopy
hub / github.com/cilium/cilium / ListIDs

Method ListIDs

pkg/allocator/allocator_test.go:199–204  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

197}
198
199func (d *dummyBackend) ListIDs(ctx context.Context) (identityIDs []idpool.ID, err error) {
200 d.mutex.Lock()
201 defer d.mutex.Unlock()
202
203 return slices.Collect(maps.Keys(d.masterKeys)), nil
204}
205
206func (d *dummyBackend) ListAndWatch(ctx context.Context, handler CacheMutations) {
207 d.mutex.Lock()

Callers

nothing calls this directly

Calls 4

KeysMethod · 0.80
LockMethod · 0.65
UnlockMethod · 0.65
CollectMethod · 0.45

Tested by

no test coverage detected