Files

28 lines
877 B
PHP
Raw Permalink Normal View History

2026-10-05 18:10:18 -04:00
<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Backups;
2026-10-11 09:31:53 -04:00
use Illuminate\Validation\ValidationException;
2026-10-05 18:10:18 -04:00
use Pterodactyl\Exceptions\DisplayException;
use Pterodactyl\Models\Backup;
use Throwable;
interface CompletesBackups
{
2026-10-11 09:31:53 -04:00
/**
2026-10-11 23:50:53 -04:00
* Record the outcome Wings reported for a backup and complete or abort its S3 multipart
* upload. The input is validated here under the field names of the Wings protocol: a
* successful backup needs its checksum, checksum type and size, and S3 parts left out are
* listed from S3.
2026-10-11 09:31:53 -04:00
*
2026-10-11 19:54:55 -04:00
* @param array<string, mixed> $input successful, checksum, checksum_type, size and optionally parts, each with an etag and part_number
2026-10-11 09:31:53 -04:00
*
2026-10-05 18:10:18 -04:00
* @throws DisplayException
2026-10-11 09:31:53 -04:00
* @throws ValidationException
2026-10-05 18:10:18 -04:00
* @throws Throwable
*/
2026-10-11 09:31:53 -04:00
public function complete(Backup $backup, array $input): void;
2026-10-05 18:10:18 -04:00
}