MCPcopy
hub / github.com/kubernetes/client-go / Update

Method Update

tools/cache/undelta_store.go:53–59  ·  view source on GitHub ↗
(obj interface{})

Source from the content-addressed store, hash-verified

51}
52
53func (u *UndeltaStore) Update(obj interface{}) error {
54 if err := u.Store.Update(obj); err != nil {
55 return err
56 }
57 u.PushFunc(u.Store.List())
58 return nil
59}
60
61func (u *UndeltaStore) Delete(obj interface{}) error {
62 if err := u.Store.Delete(obj); err != nil {

Callers 1

TestUpdateCallsPushFunction · 0.95

Calls 2

UpdateMethod · 0.65
ListMethod · 0.65

Tested by 1

TestUpdateCallsPushFunction · 0.76