MCPcopy Index your code
hub / github.com/kubernetes-client/python / _put

Method _put

kubernetes/informer/cache.py:59–62  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

57 # --- mutation helpers (called by SharedInformer) ---
58
59 def _put(self, obj):
60 key = self._key_func(obj)
61 with self._rlock:
62 self._objects[key] = obj
63
64 def _remove(self, obj):
65 key = self._key_func(obj)

Callers 7

_run_loopMethod · 0.80
test_put_and_listMethod · 0.80
test_removeMethod · 0.80
test_replace_allMethod · 0.80
test_get_by_keyMethod · 0.80
test_getMethod · 0.80
workerMethod · 0.80

Calls

no outgoing calls

Tested by 6

test_put_and_listMethod · 0.64
test_removeMethod · 0.64
test_replace_allMethod · 0.64
test_get_by_keyMethod · 0.64
test_getMethod · 0.64
workerMethod · 0.64