clearEvents clears all buffered events. It should be called after consuming c.events. It initializes a new event buffer on each call, so it is safe to use a copy of c.events after calling this method.
()
| 529 | // It should be called after consuming c.events. |
| 530 | // It initializes a new event buffer on each call, so it is safe to use a copy of c.events after calling this method. |
| 531 | func (c *catalogCache) resetEvents() { |
| 532 | c.hasEvents = false |
| 533 | c.events = make(map[string]catalogEvent) |
| 534 | } |
| 535 | |
| 536 | // nameStr returns a normalized string representation of a resource name. |
| 537 | func nameStr(r *runtimev1.ResourceName) string { |