{"modulePath":"github.com/CrunchyData/postgres-operator","version":"v4.3.4+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controller\n\n## Variables\n\n```go\nvar ErrControllerGroupExists = errors.New(\"A controller group for the namespace specified already\" +\n\t\"exists\")\n```\nErrControllerGroupExists is the error that is thrown when a controller group for a specific namespace already exists\n\n## Functions\n\n```go\nfunc InitializeReplicaCreation(restclient *rest.RESTClient, clusterName,\n\tnamespace string) error\n```\nInitializeReplicaCreation initializes the creation of replicas for a cluster.  For a regular (i.e. non-standby) cluster this is called following the creation of the initial cluster backup, which is needed to bootstrap replicas.  However, for a standby cluster this is called as soon as the primary PG pod reports ready and the cluster is marked as initialized.\n\n```go\nfunc SetClusterInitializedStatus(restclient *rest.RESTClient, clusterName,\n\tnamespace string) error\n```\nSetClusterInitializedStatus sets the status of a pgcluster CR to indicate that it has been initialized.  This is specifically done by patching the status of the pgcluster CR with the proper initialization status.\n\n## Types\n\n```go\ntype Manager interface {\n\tAddGroup(namespace string) error\n\tAddAndRunGroup(namespace string) error\n\tRemoveAll()\n\tRemoveGroup(namespace string)\n\tRunAll() error\n\tRunGroup(namespace string) error\n}\n```\nManager defines the interface for a controller manager\n\n```go\ntype WorkerRunner interface {\n\tRunWorker(stopCh \u003c-chan struct{}, doneCh chan\u003c- struct{})\n\tWorkerCount() int\n}\n```\nWorkerRunner is an interface for controllers the have worker queues that need to be run\n\n","path":"github.com/CrunchyData/postgres-operator/controller","name":"controller","synopsis":"","isRedistributable":true}
