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

Method Update

tools/cache/store.go:133–140  ·  view source on GitHub ↗

Update sets an item in the cache to its updated state.

(obj interface{})

Source from the content-addressed store, hash-verified

131
132// Update sets an item in the cache to its updated state.
133func (c *cache) Update(obj interface{}) error {
134 key, err := c.keyFunc(obj)
135 if err != nil {
136 return KeyError{obj, err}
137 }
138 c.cacheStorage.Update(key, obj)
139 return nil
140}
141
142// Delete removes an item from the cache.
143func (c *cache) Delete(obj interface{}) error {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected