controller

package
v4.1.0-rc2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 27 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrimaryPodStatus

func GetPrimaryPodStatus(clientset *kubernetes.Clientset, cluster *crv1.Pgcluster, ns string) (error, bool)

Types

type JobController

type JobController struct {
	JobClient    *rest.RESTClient
	JobClientset *kubernetes.Clientset
	Ctx          context.Context
}

JobController holds the connections for the controller

func (*JobController) Run

func (c *JobController) Run() error

Run starts an pod resource controller

func (*JobController) SetupWatch

func (c *JobController) SetupWatch(ns string)

type NamespaceController

type NamespaceController struct {
	NamespaceClient        *rest.RESTClient
	NamespaceClientset     *kubernetes.Clientset
	Ctx                    context.Context
	ThePodController       PodController
	TheJobController       JobController
	ThePgpolicyController  PgpolicyController
	ThePgbackupController  PgbackupController
	ThePgreplicaController PgreplicaController
	ThePgclusterController PgclusterController
	ThePgtaskController    PgtaskController
}

NamespaceController holds the connections for the controller

func (*NamespaceController) Run

func (c *NamespaceController) Run() error

Run starts a namespace resource controller

type PgbackupController

type PgbackupController struct {
	PgbackupClient    *rest.RESTClient
	PgbackupScheme    *runtime.Scheme
	PgbackupClientset *kubernetes.Clientset
	Ctx               context.Context
}

PgbackupController holds connections required by the controller

func (*PgbackupController) Run

func (c *PgbackupController) Run() error

Run starts controller

func (*PgbackupController) SetupWatch

func (c *PgbackupController) SetupWatch(ns string)

type PgclusterController

type PgclusterController struct {
	PgclusterClient    *rest.RESTClient
	PgclusterScheme    *runtime.Scheme
	PgclusterClientset *kubernetes.Clientset
	Ctx                context.Context
}

PgclusterController holds the connections for the controller

func (*PgclusterController) Run

func (c *PgclusterController) Run() error

Run starts an pgcluster resource controller

func (*PgclusterController) SetupWatch

func (c *PgclusterController) SetupWatch(ns string)

type PgpolicyController

type PgpolicyController struct {
	PgpolicyClient    *rest.RESTClient
	PgpolicyScheme    *runtime.Scheme
	PgpolicyClientset *kubernetes.Clientset
	Ctx               context.Context
}

PgpolicyController holds connections for the controller

func (*PgpolicyController) Run

func (c *PgpolicyController) Run() error

Run starts an pgpolicy resource controller

func (*PgpolicyController) SetupWatch

func (c *PgpolicyController) SetupWatch(ns string)

type PgreplicaController

type PgreplicaController struct {
	PgreplicaClient    *rest.RESTClient
	PgreplicaScheme    *runtime.Scheme
	PgreplicaClientset *kubernetes.Clientset
	Ctx                context.Context
}

PgreplicaController holds the connections for the controller

func (*PgreplicaController) Run

func (c *PgreplicaController) Run() error

Run starts an pgreplica resource controller

func (*PgreplicaController) SetupWatch

func (c *PgreplicaController) SetupWatch(ns string)

type PgtaskController

type PgtaskController struct {
	PgtaskConfig    *rest.Config
	PgtaskClient    *rest.RESTClient
	PgtaskScheme    *runtime.Scheme
	PgtaskClientset *kubernetes.Clientset
	Ctx             context.Context
}

PgtaskController holds connections for the controller

func (*PgtaskController) Run

func (c *PgtaskController) Run() error

Run starts an pgtask resource controller

func (*PgtaskController) SetupWatch

func (c *PgtaskController) SetupWatch(ns string)

type PodController

type PodController struct {
	PodClient    *rest.RESTClient
	PodClientset *kubernetes.Clientset
	Ctx          context.Context
}

PodController holds the connections for the controller

func (*PodController) Run

func (c *PodController) Run() error

Run starts an pod resource controller

func (*PodController) SetupWatch

func (c *PodController) SetupWatch(ns string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL