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

Method Add

tools/cache/delta_fifo.go:173–178  ·  view source on GitHub ↗

Add inserts an item, and puts it in the queue. The item is only enqueued if it doesn't already exist in the set.

(obj interface{})

Source from the content-addressed store, hash-verified

171// Add inserts an item, and puts it in the queue. The item is only enqueued
172// if it doesn't already exist in the set.
173func (f *DeltaFIFO) Add(obj interface{}) error {
174 f.lock.Lock()
175 defer f.lock.Unlock()
176 f.populated = true
177 return f.queueActionLocked(Added, obj)
178}
179
180// Update is just like Add, but makes an Updated Delta.
181func (f *DeltaFIFO) Update(obj interface{}) error {

Calls 1

queueActionLockedMethod · 0.95