RemovableCache is a subset variant of the cache.Cache interface. It supports non-blocking calls to get informers, as well as the ability to remove an informer dynamically.
| 62 | // It supports non-blocking calls to get informers, as well as the |
| 63 | // ability to remove an informer dynamically. |
| 64 | type RemovableCache interface { |
| 65 | GetInformer(_ context.Context, obj client.Object, opts ...cache.InformerGetOption) (cache.Informer, error) |
| 66 | List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error |
| 67 | RemoveInformer(_ context.Context, obj client.Object) error |
| 68 | } |
| 69 | |
| 70 | func New(c RemovableCache) (*Manager, error) { |
| 71 | metrics, err := newStatsReporter() |
no outgoing calls
no test coverage detected
searching dependent graphs…