Documentation ¶
Index ¶
- func ClaimBackupRepository(ctx context.Context, repositoryDriver string, ...) (string, error)
- func ClaimSvcBackupRepository(ctx context.Context, brc *backupdriverv1.BackupRepositoryClaim, ...) (string, error)
- func CreateBackupRepository(ctx context.Context, brc *backupdriverv1.BackupRepositoryClaim, ...) (*backupdriverv1.BackupRepository, error)
- func GetBackupRepositoryFromBackupRepositoryName(backupRepositoryName string) (*backupdriverv1.BackupRepository, error)
- func GetBackupRepositoryNameForBackupRepositoryClaim(brc *backupdriverv1.BackupRepositoryClaim) string
- func GetRepositoryFromBackupRepository(backupRepository *backupdriverv1.BackupRepository, logger logrus.FieldLogger) (*s3repository.ProtectedEntityTypeManager, error)
- func PatchBackupRepositoryClaim(backupRepositoryClaim *backupdriverv1.BackupRepositoryClaim, ...) error
- func RetrieveBackupRepositoryFromBSL(ctx context.Context, bslName string, pvcNamespace string, veleroNs string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaimBackupRepository ¶
func ClaimBackupRepository(ctx context.Context, repositoryDriver string, repositoryParameters map[string]string, allowedNamespaces []string, ns string, backupdriverV1Client *v1.BackupdriverV1alpha1Client, logger logrus.FieldLogger) (string, error)
This will either create a new BackupRepositoryClaim record or update/use an existing BackupRepositoryClaim record. In either case, it does not return until the BackupRepository is assigned and ready to use or the context is canceled (in which case it will return an error).
func ClaimSvcBackupRepository ¶
func ClaimSvcBackupRepository(ctx context.Context, brc *backupdriverv1.BackupRepositoryClaim, svcConfig *rest.Config, svcNamespace string, logger logrus.FieldLogger) (string, error)
* Only called from Guest Cluster. This will either create a new * BackupRepositoryClaim record or update/use an existing BackupRepositoryClaim * record in the Supervisor namespace. In either case, it does not return until * the BackupRepository is assigned in the supervisor cluster.
func CreateBackupRepository ¶
func CreateBackupRepository(ctx context.Context, brc *backupdriverv1.BackupRepositoryClaim, svcBrName string, backupdriverV1Client *v1.BackupdriverV1alpha1Client, logger logrus.FieldLogger) (*backupdriverv1.BackupRepository, error)
Creates a BackupRepository with the parameters.
func GetBackupRepositoryFromBackupRepositoryName ¶
func GetBackupRepositoryFromBackupRepositoryName(backupRepositoryName string) (*backupdriverv1.BackupRepository, error)
func GetBackupRepositoryNameForBackupRepositoryClaim ¶
func GetBackupRepositoryNameForBackupRepositoryClaim(brc *backupdriverv1.BackupRepositoryClaim) string
Construct a unique name for BackupRepository based on UID of BackupRepositoryClaim
func GetRepositoryFromBackupRepository ¶
func GetRepositoryFromBackupRepository(backupRepository *backupdriverv1.BackupRepository, logger logrus.FieldLogger) (*s3repository.ProtectedEntityTypeManager, error)
func PatchBackupRepositoryClaim ¶
func PatchBackupRepositoryClaim(backupRepositoryClaim *backupdriverv1.BackupRepositoryClaim, backRepositoryName string, ns string, backupdriverV1Client *v1.BackupdriverV1alpha1Client) error
Patch the BackupRepositoryClaim with the BackupRepository name.
Types ¶
This section is empty.