crate.operator.restore_backup_repository_data module

class crate.operator.restore_backup_repository_data.AwsBackupRepositoryData(accessKeyId, basePath, bucket, secretAccessKey)

Bases: object

Parameters:
  • accessKeyId (str)

  • basePath (str)

  • bucket (str)

  • secretAccessKey (str)

accessKeyId: str
basePath: str
bucket: str
secretAccessKey: str
class crate.operator.restore_backup_repository_data.AzureBackupRepositoryData(accountKey, accountName, basePath, container)

Bases: object

Parameters:
  • accountKey (str)

  • accountName (str)

  • basePath (str)

  • container (str)

accountKey: str
accountName: str
basePath: str
container: str
class crate.operator.restore_backup_repository_data.BackupRepositoryData(data, backup_provider=BackupStorageProvider.AWS)

Bases: object

Parameters:
backup_provider: BackupStorageProvider = 'aws'
data: AzureBackupRepositoryData | AwsBackupRepositoryData
static get_class_from_backup_provider(backup_provider)

Retrieve the backup repository data class corresponding to the given storage type. Use AWS S3 as a default value.

Parameters:

backup_provider (BackupStorageProvider)

Return type:

Union[Type[AzureBackupRepositoryData], Type[AwsBackupRepositoryData]]

static get_repository_type(backup_provider)

Returns the repository type per provider.

Parameters:

backup_provider (BackupStorageProvider)

Return type:

str

static get_secrets_keys(backup_provider)

Returns a list of all the secrets keys per provider.

Parameters:

backup_provider (BackupStorageProvider)

Return type:

list[str]