MCPcopy
hub / github.com/cilium/cilium / DeleteID

Method DeleteID

pkg/allocator/allocator_test.go:56–61  ·  view source on GitHub ↗
(ctx context.Context, id idpool.ID)

Source from the content-addressed store, hash-verified

54}
55
56func (d *dummyBackend) DeleteID(ctx context.Context, id idpool.ID) error {
57 d.mutex.Lock()
58 defer d.mutex.Unlock()
59 delete(d.slaveKeys, id)
60 return nil
61}
62
63func (d *dummyBackend) AllocateID(ctx context.Context, id idpool.ID, key AllocatorKey) (AllocatorKey, error) {
64 d.mutex.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected