MCPcopy
hub / github.com/cilium/cilium / UpdateKey

Method UpdateKey

pkg/allocator/allocator.go:252–252  ·  view source on GitHub ↗

UpdateKey refreshes the record that this node is using this key -> id mapping. When reliablyMissing is set it will also recreate missing master or slave keys.

(ctx context.Context, id idpool.ID, key AllocatorKey, reliablyMissing bool)

Source from the content-addressed store, hash-verified

250 // mapping. When reliablyMissing is set it will also recreate missing master or
251 // slave keys.
252 UpdateKey(ctx context.Context, id idpool.ID, key AllocatorKey, reliablyMissing bool) error
253
254 // UpdateKeyIfLocked behaves like UpdateKey but when lock is non-nil the operation proceeds only if it is still valid.
255 UpdateKeyIfLocked(ctx context.Context, id idpool.ID, key AllocatorKey, reliablyMissing bool, lock kvstore.KVLocker) error

Callers 3

onDeleteLockedMethod · 0.65
syncLocalKeyMethod · 0.65
UpdateKeyMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected