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

Method Delete

tools/cache/store.go:143–150  ·  view source on GitHub ↗

Delete removes an item from the cache.

(obj interface{})

Source from the content-addressed store, hash-verified

141
142// Delete removes an item from the cache.
143func (c *cache) Delete(obj interface{}) error {
144 key, err := c.keyFunc(obj)
145 if err != nil {
146 return KeyError{obj, err}
147 }
148 c.cacheStorage.Delete(key)
149 return nil
150}
151
152// List returns a list of all the items.
153// List is completely threadsafe as long as you treat all items as immutable.

Callers

nothing calls this directly

Calls 1

DeleteMethod · 0.65

Tested by

no test coverage detected