Versions in this module Expand all Collapse all v1 v1.3.1 Mar 10, 2020 Changes in this version + const CredentialsKey + const CredentialsSecretName + const DaemonSet + const DefaultMaintenanceFrequency + const InitContainer + const PVCNameAnnotation + const VolumesToBackupAnnotation + func AzureCmdEnv(backupLocationLister velerov1listers.BackupStorageLocationLister, ...) ([]string, error) + func EnsureCommonRepositoryKey(secretClient corev1client.SecretsGetter, namespace string) error + func GetRepoIdentifier(location *velerov1api.BackupStorageLocation, name string) (string, error) + func GetRepositoryKey(secretGetter SecretGetter, namespace string) ([]byte, error) + func GetSnapshotID(repoIdentifier, passwordFile string, tags map[string]string, env []string) (string, error) + func GetVolumeBackupsForPod(podVolumeBackups []*velerov1api.PodVolumeBackup, pod metav1.Object) map[string]string + func GetVolumesToBackup(obj metav1.Object) []string + func NewPodVolumeBackupListOptions(name string) metav1.ListOptions + func NewPodVolumeRestoreListOptions(name string) metav1.ListOptions + func RunBackup(backupCmd *Command, log logrus.FieldLogger, ...) (string, string, error) + func RunRestore(restoreCmd *Command, log logrus.FieldLogger, ...) (string, string, error) + func S3CmdEnv(backupLocationLister velerov1listers.BackupStorageLocationLister, ...) ([]string, error) + func TempCredentialsFile(secretLister corev1listers.SecretLister, veleroNamespace, repoName string, ...) (string, error) + type BackendType string + const AWSBackend + const AzureBackend + const GCPBackend + type Backupper interface + BackupPodVolumes func(backup *velerov1api.Backup, pod *corev1api.Pod, volumesToBackup []string, ...) ([]*velerov1api.PodVolumeBackup, []error) + type BackupperFactory interface + NewBackupper func(context.Context, *velerov1api.Backup) (Backupper, error) + type Command struct + Args []string + Command string + Dir string + Env []string + ExtraFlags []string + PasswordFile string + RepoIdentifier string + func BackupCommand(repoIdentifier, passwordFile, path string, tags map[string]string) *Command + func ForgetCommand(repoIdentifier, snapshotID string) *Command + func GetSnapshotCommand(repoIdentifier, passwordFile string, tags map[string]string) *Command + func InitCommand(repoIdentifier string) *Command + func PruneCommand(repoIdentifier string) *Command + func RestoreCommand(repoIdentifier, passwordFile, snapshotID, target string) *Command + func SnapshotsCommand(repoIdentifier string) *Command + func StatsCommand(repoIdentifier, passwordFile, snapshotID string) *Command + func UnlockCommand(repoIdentifier string) *Command + func (c *Command) Cmd() *exec.Cmd + func (c *Command) RepoName() string + func (c *Command) String() string + func (c *Command) StringSlice() []string + type RepositoryManager interface + ConnectToRepo func(repo *velerov1api.ResticRepository) error + Forget func(context.Context, SnapshotIdentifier) error + InitRepo func(repo *velerov1api.ResticRepository) error + PruneRepo func(repo *velerov1api.ResticRepository) error + UnlockRepo func(repo *velerov1api.ResticRepository) error + func NewRepositoryManager(ctx context.Context, namespace string, veleroClient clientset.Interface, ...) (RepositoryManager, error) + type RestoreData struct + BackupLocation string + Pod *corev1api.Pod + PodVolumeBackups []*velerov1api.PodVolumeBackup + Restore *velerov1api.Restore + SourceNamespace string + type Restorer interface + RestorePodVolumes func(RestoreData) []error + type RestorerFactory interface + NewRestorer func(context.Context, *velerov1api.Restore) (Restorer, error) + type SecretGetter interface + GetSecret func(namespace, name string) (*corev1api.Secret, error) + func NewClientSecretGetter(client corev1client.SecretsGetter) SecretGetter + func NewListerSecretGetter(lister corev1listers.SecretLister) SecretGetter + type SnapshotIdentifier struct + BackupStorageLocation string + SnapshotID string + VolumeNamespace string + func GetSnapshotsInBackup(backup *velerov1api.Backup, ...) ([]SnapshotIdentifier, error)