Documentation
¶
Index ¶
- Constants
- func NewScheduleController(namespace string, schedulesClient velerov1client.SchedulesGetter, ...) *scheduleController
- func NewServerStatusRequestController(logger logrus.FieldLogger, client velerov1client.ServerStatusRequestsGetter, ...) *statusRequestController
- type BackupTracker
- type Interface
- func NewBackupController(backupInformer velerov1informers.BackupInformer, ...) Interface
- func NewBackupDeletionController(logger logrus.FieldLogger, ...) Interface
- func NewBackupSyncController(backupClient velerov1client.BackupsGetter, ...) Interface
- func NewDownloadRequestController(downloadRequestClient velerov1client.DownloadRequestsGetter, ...) Interface
- func NewGCController(logger logrus.FieldLogger, backupInformer velerov1informers.BackupInformer, ...) Interface
- func NewPodVolumeBackupController(logger logrus.FieldLogger, ...) Interface
- func NewPodVolumeRestoreController(logger logrus.FieldLogger, ...) Interface
- func NewResticRepositoryController(logger logrus.FieldLogger, ...) Interface
- func NewRestoreController(namespace string, restoreInformer velerov1informers.RestoreInformer, ...) Interface
Constants ¶
View Source
const (
GCSyncPeriod = 60 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func NewScheduleController ¶
func NewScheduleController( namespace string, schedulesClient velerov1client.SchedulesGetter, backupsClient velerov1client.BackupsGetter, schedulesInformer velerov1informers.ScheduleInformer, logger logrus.FieldLogger, metrics *metrics.ServerMetrics, ) *scheduleController
func NewServerStatusRequestController ¶ added in v0.11.0
func NewServerStatusRequestController( logger logrus.FieldLogger, client velerov1client.ServerStatusRequestsGetter, informer velerov1informers.ServerStatusRequestInformer, pluginRegistry clientmgmt.Registry, ) *statusRequestController
Types ¶
type BackupTracker ¶ added in v0.8.0
type BackupTracker interface { // Add informs the tracker that a backup is in progress. Add(ns, name string) // Delete informs the tracker that a backup is no longer in progress. Delete(ns, name string) // Contains returns true if the tracker is tracking the backup. Contains(ns, name string) bool }
BackupTracker keeps track of in-progress backups.
func NewBackupTracker ¶ added in v0.8.0
func NewBackupTracker() BackupTracker
NewBackupTracker returns a new BackupTracker.
type Interface ¶
Interface represents a runnable component.
func NewBackupController ¶
func NewBackupController( backupInformer velerov1informers.BackupInformer, client velerov1client.BackupsGetter, discoveryHelper discovery.Helper, backupper pkgbackup.Backupper, logger logrus.FieldLogger, backupLogLevel logrus.Level, newPluginManager func(logrus.FieldLogger) clientmgmt.Manager, backupTracker BackupTracker, backupLocationLister velerov1listers.BackupStorageLocationLister, defaultBackupLocation string, defaultBackupTTL time.Duration, volumeSnapshotLocationLister velerov1listers.VolumeSnapshotLocationLister, defaultSnapshotLocations map[string]string, metrics *metrics.ServerMetrics, formatFlag logging.Format, volumeSnapshotLister snapshotv1beta1listers.VolumeSnapshotLister, volumeSnapshotContentLister snapshotv1beta1listers.VolumeSnapshotContentLister, ) Interface
func NewBackupDeletionController ¶ added in v0.8.0
func NewBackupDeletionController( logger logrus.FieldLogger, deleteBackupRequestInformer velerov1informers.DeleteBackupRequestInformer, deleteBackupRequestClient velerov1client.DeleteBackupRequestsGetter, backupClient velerov1client.BackupsGetter, restoreLister velerov1listers.RestoreLister, restoreClient velerov1client.RestoresGetter, backupTracker BackupTracker, resticMgr restic.RepositoryManager, podvolumeBackupLister velerov1listers.PodVolumeBackupLister, backupLocationLister velerov1listers.BackupStorageLocationLister, snapshotLocationLister velerov1listers.VolumeSnapshotLocationLister, csiSnapshotLister snapshotv1beta1listers.VolumeSnapshotLister, csiSnapshotContentLister snapshotv1beta1listers.VolumeSnapshotContentLister, csiSnapshotClient *snapshotterClientSet.Clientset, newPluginManager func(logrus.FieldLogger) clientmgmt.Manager, metrics *metrics.ServerMetrics, ) Interface
NewBackupDeletionController creates a new backup deletion controller.
func NewBackupSyncController ¶
func NewBackupSyncController( backupClient velerov1client.BackupsGetter, backupLocationClient velerov1client.BackupStorageLocationsGetter, podVolumeBackupClient velerov1client.PodVolumeBackupsGetter, backupLister velerov1listers.BackupLister, backupStorageLocationLister velerov1listers.BackupStorageLocationLister, syncPeriod time.Duration, namespace string, csiSnapshotClient *snapshotterClientSet.Clientset, kubeClient kubernetes.Interface, defaultBackupLocation string, newPluginManager func(logrus.FieldLogger) clientmgmt.Manager, logger logrus.FieldLogger, ) Interface
func NewDownloadRequestController ¶ added in v0.4.0
func NewDownloadRequestController( downloadRequestClient velerov1client.DownloadRequestsGetter, downloadRequestInformer velerov1informers.DownloadRequestInformer, restoreLister velerov1listers.RestoreLister, backupLocationLister velerov1listers.BackupStorageLocationLister, backupLister velerov1listers.BackupLister, newPluginManager func(logrus.FieldLogger) clientmgmt.Manager, logger logrus.FieldLogger, ) Interface
NewDownloadRequestController creates a new DownloadRequestController.
func NewGCController ¶
func NewGCController( logger logrus.FieldLogger, backupInformer velerov1informers.BackupInformer, deleteBackupRequestLister velerov1listers.DeleteBackupRequestLister, deleteBackupRequestClient velerov1client.DeleteBackupRequestsGetter, backupLocationLister velerov1listers.BackupStorageLocationLister, ) Interface
NewGCController constructs a new gcController.
func NewPodVolumeBackupController ¶ added in v0.9.0
func NewPodVolumeBackupController( logger logrus.FieldLogger, podVolumeBackupInformer informers.PodVolumeBackupInformer, podVolumeBackupClient velerov1client.PodVolumeBackupsGetter, podInformer cache.SharedIndexInformer, secretInformer cache.SharedIndexInformer, pvcInformer corev1informers.PersistentVolumeClaimInformer, pvInformer corev1informers.PersistentVolumeInformer, backupLocationInformer informers.BackupStorageLocationInformer, nodeName string, ) Interface
NewPodVolumeBackupController creates a new pod volume backup controller.
func NewPodVolumeRestoreController ¶ added in v0.9.0
func NewPodVolumeRestoreController( logger logrus.FieldLogger, podVolumeRestoreInformer informers.PodVolumeRestoreInformer, podVolumeRestoreClient velerov1client.PodVolumeRestoresGetter, podInformer cache.SharedIndexInformer, secretInformer cache.SharedIndexInformer, pvcInformer corev1informers.PersistentVolumeClaimInformer, pvInformer corev1informers.PersistentVolumeInformer, backupLocationInformer informers.BackupStorageLocationInformer, nodeName string, ) Interface
NewPodVolumeRestoreController creates a new pod volume restore controller.
func NewResticRepositoryController ¶ added in v0.9.0
func NewResticRepositoryController( logger logrus.FieldLogger, resticRepositoryInformer velerov1informers.ResticRepositoryInformer, resticRepositoryClient velerov1client.ResticRepositoriesGetter, backupLocationLister velerov1listers.BackupStorageLocationLister, repositoryManager restic.RepositoryManager, defaultMaintenanceFrequency time.Duration, ) Interface
NewResticRepositoryController creates a new restic repository controller.
func NewRestoreController ¶
func NewRestoreController( namespace string, restoreInformer velerov1informers.RestoreInformer, restoreClient velerov1client.RestoresGetter, podVolumeBackupClient velerov1client.PodVolumeBackupsGetter, restorer pkgrestore.Restorer, backupLister velerov1listers.BackupLister, backupLocationLister velerov1listers.BackupStorageLocationLister, snapshotLocationLister velerov1listers.VolumeSnapshotLocationLister, logger logrus.FieldLogger, restoreLogLevel logrus.Level, newPluginManager func(logrus.FieldLogger) clientmgmt.Manager, defaultBackupLocation string, metrics *metrics.ServerMetrics, logFormat logging.Format, ) Interface
Source Files
¶
- backup_controller.go
- backup_deletion_controller.go
- backup_sync_controller.go
- backup_tracker.go
- download_request_controller.go
- gc_controller.go
- generic_controller.go
- interface.go
- pod_volume_backup_controller.go
- pod_volume_restore_controller.go
- restic_repository_controller.go
- restore_controller.go
- schedule_controller.go
- server_status_request_controller.go
Click to show internal directories.
Click to hide internal directories.