backuprepository

package
v1.1.1-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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.

func RetrieveBackupRepositoryFromBSL

func RetrieveBackupRepositoryFromBSL(ctx context.Context, bslName string, pvcNamespace string, veleroNs string,
	backupdriverClient *v1.BackupdriverV1alpha1Client, restConfig *rest.Config, logger logrus.FieldLogger) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL