MCPcopy
hub / github.com/cilium/cilium / Keys

Method Keys

pkg/container/insert_ordered_map.go:54–62  ·  view source on GitHub ↗

Keys returns an iterator for the keys in the map in insertion order.

()

Source from the content-addressed store, hash-verified

52
53// Keys returns an iterator for the keys in the map in insertion order.
54func (m *InsertOrderedMap[K, V]) Keys() iter.Seq[K] {
55 return func(yield func(K) bool) {
56 for _, kv := range m.kvs {
57 if !yield(kv.key) {
58 break
59 }
60 }
61 }
62}
63
64// Values returns an iterator for the values in the map in insertion order.
65func (m *InsertOrderedMap[K, V]) Values() iter.Seq[V] {

Callers 15

mainFunction · 0.80
minMaxKeysSortAbsFunction · 0.80
calcDiffRecordsFunction · 0.80
writeTableFunction · 0.80
sequencesMethod · 0.80
ListIDsMethod · 0.80
ListAndWatchMethod · 0.80
remainingStringMethod · 0.80
UpdateIdentitiesMethod · 0.80

Calls

no outgoing calls

Tested by 15

ListIDsMethod · 0.64
ListAndWatchMethod · 0.64
TestReflectorFunction · 0.64
TestWatchConfigDirectoryFunction · 0.64
summaryMethod · 0.64
loadAndRecordComplexityFunction · 0.64