{"modulePath":"github.com/Crunchydata/postgres-operator","version":"v3.5.5+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controller\n\n## Functions\n\n```go\nfunc GetPrimaryPodStatus(clientset *kubernetes.Clientset, cluster *crv1.Pgcluster, ns string) (error, bool)\n```\n\n## Types\n\n```go\ntype JobController struct {\n\tJobClient    *rest.RESTClient\n\tJobClientset *kubernetes.Clientset\n\tNamespace    string\n}\n```\nJobController holds the connections for the controller\n\n```go\nfunc (c *JobController) Run(ctx context.Context) error\n```\nRun starts an pod resource controller\n\n```go\ntype PgbackupController struct {\n\tPgbackupClient    *rest.RESTClient\n\tPgbackupScheme    *runtime.Scheme\n\tPgbackupClientset *kubernetes.Clientset\n\tNamespace         string\n\tQueue             workqueue.RateLimitingInterface\n\tUpdateQueue       workqueue.RateLimitingInterface\n}\n```\nPgbackupController holds connections required by the controller\n\n```go\nfunc (c *PgbackupController) Run(ctx context.Context) error\n```\nRun starts controller\n\n```go\nfunc (c *PgbackupController) RunUpdateWorker()\n```\n\n```go\nfunc (c *PgbackupController) RunWorker()\n```\n\n```go\ntype PgclusterController struct {\n\tPgclusterClient    *rest.RESTClient\n\tPgclusterScheme    *runtime.Scheme\n\tPgclusterClientset *kubernetes.Clientset\n\tQueue              workqueue.RateLimitingInterface\n\tNamespace          string\n}\n```\nPgclusterController holds the connections for the controller\n\n```go\nfunc (c *PgclusterController) Run(ctx context.Context) error\n```\nRun starts an pgcluster resource controller\n\n```go\nfunc (c *PgclusterController) RunWorker()\n```\n\n```go\ntype PgpolicyController struct {\n\tPgpolicyClient    *rest.RESTClient\n\tPgpolicyScheme    *runtime.Scheme\n\tPgpolicyClientset *kubernetes.Clientset\n\tNamespace         string\n}\n```\nPgpolicyController holds connections for the controller\n\n```go\nfunc (c *PgpolicyController) Run(ctx context.Context) error\n```\nRun starts an pgpolicy resource controller\n\n```go\ntype PgreplicaController struct {\n\tPgreplicaClient    *rest.RESTClient\n\tPgreplicaScheme    *runtime.Scheme\n\tPgreplicaClientset *kubernetes.Clientset\n\tNamespace          string\n\tCtx                context.Context\n\tQueue              workqueue.RateLimitingInterface\n}\n```\nPgreplicaController holds the connections for the controller\n\n```go\nfunc (c *PgreplicaController) Run(ctx context.Context) error\n```\nRun starts an pgreplica resource controller\n\n```go\nfunc (c *PgreplicaController) RunWorker()\n```\n\n```go\ntype PgtaskController struct {\n\tPgtaskConfig    *rest.Config\n\tPgtaskClient    *rest.RESTClient\n\tPgtaskScheme    *runtime.Scheme\n\tPgtaskClientset *kubernetes.Clientset\n\tQueue           workqueue.RateLimitingInterface\n\tNamespace       string\n}\n```\nPgtaskController holds connections for the controller\n\n```go\nfunc (c *PgtaskController) Run(ctx context.Context) error\n```\nRun starts an pgtask resource controller\n\n```go\nfunc (c *PgtaskController) RunWorker()\n```\n\n```go\ntype PgupgradeController struct {\n\tPgupgradeClient    *rest.RESTClient\n\tPgupgradeClientset *kubernetes.Clientset\n\tPgupgradeScheme    *runtime.Scheme\n\tNamespace          string\n}\n```\nPgupgradeController holds the connections for the controller\n\n```go\nfunc (c *PgupgradeController) Run(ctx context.Context) error\n```\nRun starts an pgupgrade resource controller\n\n```go\ntype PodController struct {\n\tPodClient    *rest.RESTClient\n\tPodClientset *kubernetes.Clientset\n\tNamespace    string\n}\n```\nPodController holds the connections for the controller\n\n```go\nfunc (c *PodController) Run(ctx context.Context) error\n```\nRun starts an pod resource controller\n\n","path":"github.com/Crunchydata/postgres-operator/controller","name":"controller","synopsis":"","isRedistributable":true}
