{"modulePath":"github.com/kcp-dev/api-syncagent","version":"v0.9.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controllerutil\n\n## Functions\n\n```go\nfunc EnqueueConst[O ctrlruntimeclient.Object](value string) handler.TypedEventHandler[O, reconcile.Request]\n```\nEnqueueConst returns a handler that returns a reconcile request that will contain the given value as the request's name.\n\n## Types\n\n```go\ntype HandlerRemovingCache struct {\n\tcache.Cache\n}\n```\nHandlerRemovingCache is meant for controller-runtime's Kind sources, which never remove their event handlers from the shared informers. It removes each handler once the context that its informer was retrieved with ends, which for Kind sources is the context they were started with. Without this, every stopped sync controller would leave its handlers (and their goroutines) behind on the local manager's informers.\n\n```go\nfunc (c HandlerRemovingCache) GetInformer(ctx context.Context, obj ctrlruntimeclient.Object, opts ...cache.InformerGetOption) (cache.Informer, error)\n```\n\n","path":"github.com/kcp-dev/api-syncagent/internal/controllerutil","name":"controllerutil","synopsis":"","isRedistributable":true}
