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

Method List

tools/cache/delta_fifo.go:340–344  ·  view source on GitHub ↗

List returns a list of all the items; it returns the object from the most recent Delta. You should treat the items returned inside the deltas as immutable.

()

Source from the content-addressed store, hash-verified

338// from the most recent Delta.
339// You should treat the items returned inside the deltas as immutable.
340func (f *DeltaFIFO) List() []interface{} {
341 f.lock.RLock()
342 defer f.lock.RUnlock()
343 return f.listLocked()
344}
345
346func (f *DeltaFIFO) listLocked() []interface{} {
347 list := make([]interface{}, 0, len(f.items))

Callers 1

TestDeltaFIFO_addUpdateFunction · 0.95

Calls 1

listLockedMethod · 0.95

Tested by 1

TestDeltaFIFO_addUpdateFunction · 0.76