mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
22 lines
525 B
PHP
22 lines
525 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Contracts\Backups;
|
|
|
|
use Pterodactyl\Models\Backup;
|
|
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
|
|
|
|
interface PresignsBackupUploads
|
|
{
|
|
/**
|
|
* Open a multipart upload for the backup in S3 and return one presigned URL per part Wings
|
|
* needs to upload an archive of the given size.
|
|
*
|
|
* @return BackupUploadParts
|
|
*
|
|
* @throws BadRequestHttpException
|
|
*/
|
|
public function presign(Backup $backup, int $size): array;
|
|
}
|