Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ControllerName is the name of this controller
ControllerName = "backupsController"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller structure
func New ¶
func New( k8client kubernetes.Interface, myClient ticlientset.Interface, backupInformer tiinformers.MysqlBackupInformer, clusterInformer tiinformers.MysqlClusterInformer, eventRecorder record.EventRecorder, namespace string, jobInformer batchinformers.JobInformer, ) *Controller
New returns a new controller
func (*Controller) Start ¶
func (c *Controller) Start(workers int, stopCh <-chan struct{}) error
Start method start workers.
func (*Controller) Sync ¶
func (c *Controller) Sync(ctx context.Context, backup *api.MysqlBackup, ns string) error
Sync for add and update.
Click to show internal directories.
Click to hide internal directories.