factory

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CDCPorts

type CDCPorts struct {
	DaemonPort  int
	MetricsPort int
}

type CNPorts

type CNPorts struct {
	AccessPort  int
	MgrPort     int
	MppPort     int
	HtapPort    int
	LogPort     int
	DebugPort   int
	MetricsPort int
	ProbePort   int
}

type EnvFactory

type EnvFactory interface {
	NewSystemEnvVars() []corev1.EnvVar
	NewEnvVarsForCNEngine(gmsConn StorageConnection, ports CNPorts) []corev1.EnvVar
	NewEnvVarsForCDCEngine(gmsConn StorageConnection) []corev1.EnvVar
}

type ObjectFactory

type ObjectFactory interface {
	NewService() (*corev1.Service, error)
	NewReadOnlyService() (*corev1.Service, error)
	NewCDCMetricsService() (*corev1.Service, error)

	NewDeployments4CN() (map[string]appsv1.Deployment, error)
	NewDeployments4CDC() (map[string]appsv1.Deployment, error)

	NewXStoreMyCnfOverlay4GMS() (string, error)
	NewXStoreMyCnfOverlay4DN(idx int) (string, error)
	NewXStoreGMS() (*polardbxv1.XStore, error)
	NewXStoreDN(idx int) (*polardbxv1.XStore, error)

	NewSecret() (*corev1.Secret, error)
	NewSecuritySecret() (*corev1.Secret, error)
	NewConfigMap(cmType convention.ConfigMapType) (*corev1.ConfigMap, error)

	NewServiceMonitors() (map[string]promv1.ServiceMonitor, error)
}

func NewObjectFactory

func NewObjectFactory(rc *polardbxv1reconcile.Context) ObjectFactory

type PortsFactory

type PortsFactory interface {
	NewPortsForCNEngine() CNPorts
	NewPortsForCDCEngine() CDCPorts
}

type ProbeConfigure

type ProbeConfigure interface {
	ConfigureForCNEngine(container *corev1.Container, ports CNPorts)
	ConfigureForCNExporter(container *corev1.Container, ports CNPorts)
	ConfigureForCDCEngine(container *corev1.Container, ports CDCPorts)
	ConfigureForCDCExporter(container *corev1.Container, ports CDCPorts)
}

type StorageConnection

type StorageConnection struct {
	Host     string
	Port     int
	User     string
	Passwd   string
	Database string
}

type VolumeFactory

type VolumeFactory interface {
	NewSystemVolumes() []corev1.Volume
	NewSystemVolumeMounts() []corev1.VolumeMount
	NewVolumesForCN() []corev1.Volume
	NewVolumeMountsForCNEngine() []corev1.VolumeMount
	NewVolumeMountsForCNExporter() []corev1.VolumeMount
	NewVolumesForCDC() []corev1.Volume
	NewVolumeMountsForCDCEngine() []corev1.VolumeMount
}

Jump to

Keyboard shortcuts

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