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

Method Get

tools/cache/delta_fifo.go:369–375  ·  view source on GitHub ↗

Get returns the complete list of deltas for the requested item, or sets exists=false. You should treat the items returned inside the deltas as immutable.

(obj interface{})

Source from the content-addressed store, hash-verified

367// or sets exists=false.
368// You should treat the items returned inside the deltas as immutable.
369func (f *DeltaFIFO) Get(obj interface{}) (item interface{}, exists bool, err error) {
370 key, err := f.KeyOf(obj)
371 if err != nil {
372 return nil, false, KeyError{obj, err}
373 }
374 return f.GetByKey(key)
375}
376
377// GetByKey returns the complete list of deltas for the requested item,
378// setting exists=false if that list is empty.

Callers 2

TestDeltaFIFO_addUpdateFunction · 0.95
TestDeltaFIFO_addReplaceFunction · 0.95

Calls 2

KeyOfMethod · 0.95
GetByKeyMethod · 0.95

Tested by 2

TestDeltaFIFO_addUpdateFunction · 0.76
TestDeltaFIFO_addReplaceFunction · 0.76