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

Function NewFIFO

tools/cache/fifo.go:350–358  ·  view source on GitHub ↗

NewFIFO returns a Store which can be used to queue up items to process.

(keyFunc KeyFunc)

Source from the content-addressed store, hash-verified

348// NewFIFO returns a Store which can be used to queue up items to
349// process.
350func NewFIFO(keyFunc KeyFunc) *FIFO {
351 f := &FIFO{
352 items: map[string]interface{}{},
353 queue: []string{},
354 keyFunc: keyFunc,
355 }
356 f.cond.L = &f.lock
357 return f
358}

Callers 10

TestFIFOCacheFunction · 0.85
TestFIFO_basicFunction · 0.85
TestFIFO_requeueOnPopFunction · 0.85
TestFIFO_addUpdateFunction · 0.85
TestFIFO_addReplaceFunction · 0.85
TestFIFO_addIfNotPresentFunction · 0.85
TestFIFO_HasSyncedFunction · 0.85

Calls

no outgoing calls

Tested by 10

TestFIFOCacheFunction · 0.68
TestFIFO_basicFunction · 0.68
TestFIFO_requeueOnPopFunction · 0.68
TestFIFO_addUpdateFunction · 0.68
TestFIFO_addReplaceFunction · 0.68
TestFIFO_addIfNotPresentFunction · 0.68
TestFIFO_HasSyncedFunction · 0.68