|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +/** |
| 6 | + * @copyright Copyright (c) 2024 Ferdinand Thiessen <opensource@fthiessen.de> |
| 7 | + * |
| 8 | + * @author Ferdinand Thiessen <opensource@fthiessen.de> |
| 9 | + * |
| 10 | + * @license GNU AGPL-3.0-or-later |
| 11 | + * |
| 12 | + * This program is free software: you can redistribute it and/or modify |
| 13 | + * it under the terms of the GNU Affero General Public License as |
| 14 | + * published by the Free Software Foundation, either version 3 of the |
| 15 | + * License, or (at your option) any later version. |
| 16 | + * |
| 17 | + * This program is distributed in the hope that it will be useful, |
| 18 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | + * GNU Affero General Public License for more details. |
| 21 | + * |
| 22 | + * You should have received a copy of the GNU Affero General Public License |
| 23 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 24 | + * |
| 25 | + */ |
| 26 | + |
| 27 | +namespace OC\Files\ObjectStore; |
| 28 | + |
| 29 | +/** |
| 30 | + * Shared configuration between ConnectionTrait and ObjectTrait to ensure both to be in sync |
| 31 | + */ |
| 32 | +trait S3ConfigTrait { |
| 33 | + protected array $params; |
| 34 | + |
| 35 | + protected string $bucket; |
| 36 | + |
| 37 | + /** Maximum number of concurrent multipart uploads */ |
| 38 | + protected int $concurrency; |
| 39 | + |
| 40 | + protected int $timeout; |
| 41 | + |
| 42 | + protected string $proxy; |
| 43 | + |
| 44 | + protected string $storageClass; |
| 45 | + |
| 46 | + protected int $uploadPartSize; |
| 47 | + |
| 48 | + private int $putSizeLimit; |
| 49 | + |
| 50 | + private int $copySizeLimit; |
| 51 | + |
| 52 | + private bool $useMultipartCopy = true; |
| 53 | +} |
0 commit comments