- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for manyCollection (0.29 sec)
-
pkg/kube/krt/collection.go
return true } } } return false } func (h *manyCollection[I, O]) _internalHandler() { } func (h *manyCollection[I, O]) GetKey(k Key[O]) (res *O) { h.mu.Lock() defer h.mu.Unlock() rf, f := h.collectionState.outputs[k] if f { return &rf } return nil } func (h *manyCollection[I, O]) List() (res []O) { h.mu.Lock() defer h.mu.Unlock()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 19.4K bytes - Viewed (0) -
pkg/kube/krt/README.md
Additionally, if a single `Pod` changes we only recompute one `SimplePod`. Above we have a one-to-one mapping of input and output. We may have one-to-many mappings, though. In these cases, usually its best to use a `ManyCollection`. Like the above examples, its *possible* to express these as normal `Collection`s, but likely inefficient. Example computing a list of all container names across all pods: ```go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 18 17:21:50 UTC 2023 - 11.8K bytes - Viewed (0)