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

Method ListKeys

tools/cache/delta_fifo.go:356–364  ·  view source on GitHub ↗

ListKeys returns a list of all the keys of the objects currently in the FIFO.

()

Source from the content-addressed store, hash-verified

354// ListKeys returns a list of all the keys of the objects currently
355// in the FIFO.
356func (f *DeltaFIFO) ListKeys() []string {
357 f.lock.RLock()
358 defer f.lock.RUnlock()
359 list := make([]string, 0, len(f.items))
360 for key := range f.items {
361 list = append(list, key)
362 }
363 return list
364}
365
366// Get returns the complete list of deltas for the requested item,
367// or sets exists=false.

Callers 1

TestDeltaFIFO_addUpdateFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestDeltaFIFO_addUpdateFunction · 0.76