IObjectStoreMultiPartUpload.php 836 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Files\ObjectStore;
  8. use Aws\Result;
  9. /**
  10. * @since 26.0.0
  11. */
  12. interface IObjectStoreMultiPartUpload {
  13. /**
  14. * @since 26.0.0
  15. */
  16. public function initiateMultipartUpload(string $urn): string;
  17. /**
  18. * @since 26.0.0
  19. */
  20. public function uploadMultipartPart(string $urn, string $uploadId, int $partId, $stream, $size): Result;
  21. /**
  22. * @since 26.0.0
  23. */
  24. public function completeMultipartUpload(string $urn, string $uploadId, array $result): int;
  25. /**
  26. * @since 26.0.0
  27. */
  28. public function abortMultipartUpload(string $urn, string $uploadId): void;
  29. /**
  30. * @since 26.0.0
  31. */
  32. public function getMultipartUploads(string $urn, string $uploadId): array;
  33. }