Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentController ¶
type AgentController struct {
// contains filtered or unexported fields
}
AgentController handles the excution of Restores on a specific (primary) mysql-agent. It is run in each mysql-agent. TODO: Probably should only be run iff the local mysql instance is a primary.
func NewAgentController ¶
func NewAgentController( kubeClient kubernetes.Interface, client clientset.RestoresGetter, restoreInformer informersv1alpha1.RestoreInformer, clusterInformer informersv1alpha1.ClusterInformer, backupInformer informersv1alpha1.BackupInformer, podInformer corev1informers.PodInformer, podName string, ) *AgentController
NewAgentController constructs a new AgentController.
type ConditionUpdater ¶
type ConditionUpdater interface {
Update(restore *v1alpha1.Restore, condition *v1alpha1.RestoreCondition) error
}
ConditionUpdater enables updating Restore conditions.
type OperatorController ¶
type OperatorController struct {
// contains filtered or unexported fields
}
OperatorController handles validation, labeling, and scheduling of Restores to be executed on a specific (primary) mysql-agent. It is run in the operator.
func NewOperatorController ¶
func NewOperatorController( kubeClient kubernetes.Interface, client clientset.RestoresGetter, restoreInformer informersv1alpha1.RestoreInformer, clusterInformer informersv1alpha1.ClusterInformer, backupInformer informersv1alpha1.BackupInformer, podInformer corev1informers.PodInformer, ) *OperatorController
NewOperatorController constructs a new OperatorController.
Click to show internal directories.
Click to hide internal directories.