{"modulePath":"github.com/kcp-dev/api-syncagent","version":"v0.9.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sync\n\nPackage sync contains a controller that watches the APIExport we manage in kcp. Once the virtual workspace URL for said APIExport is ready, the controller will begin to synchronize resources back and forth between kcp (i.e. all relevant workspaces) and the service cluster.\n\n## Constants\n\n```go\nconst (\n\tControllerName = \"syncagent-sync\"\n)\n```\n\n## Functions\n\n```go\nfunc Create(\n\tctx context.Context,\n\tlocalManager manager.Manager,\n\tremoteManager mcmanager.Manager,\n\tpubRes *syncagentv1alpha1.PublishedResource,\n\tdiscoveryClient *discovery.Client,\n\tstateNamespace string,\n\tagentName string,\n\tenableServerSideApply bool,\n\tcacheSyncTimeout time.Duration,\n\tlog *zap.SugaredLogger,\n\tnumWorkers int,\n) (mccontroller.Controller, error)\n```\nCreate creates a new controller and importantly does \\*not\\* add it to the manager, as this controller is started/stopped by the syncmanager controller instead.\n\n## Types\n\n```go\ntype Reconciler struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r *Reconciler) Reconcile(ctx context.Context, request mcreconcile.Request) (reconcile.Result, error)\n```\n\n","path":"github.com/kcp-dev/api-syncagent/internal/controller/sync","name":"sync","synopsis":"Package sync contains a controller that watches the APIExport we manage in kcp.","isRedistributable":true}
