ListKeys returns a list of all the keys of the objects currently in the FIFO.
()
| 354 | // ListKeys returns a list of all the keys of the objects currently |
| 355 | // in the FIFO. |
| 356 | func (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. |
no outgoing calls