blob: 3a399e6413d082674c5708cada5faa85d868e500 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\Files\ObjectStore;
/**
* Shared configuration between ConnectionTrait and ObjectTrait to ensure both to be in sync
*/
trait S3ConfigTrait {
protected array $params;
protected string $bucket;
/** Maximum number of concurrent multipart uploads */
protected int $concurrency;
protected int $timeout;
protected string $proxy;
protected string $storageClass;
/** @var int Part size in bytes (float is added for 32bit support) */
protected int|float $uploadPartSize;
/** @var int Limit on PUT in bytes (float is added for 32bit support) */
private int|float $putSizeLimit;
/** @var int Limit on COPY in bytes (float is added for 32bit support) */
private int|float $copySizeLimit;
private bool $useMultipartCopy = true;
}
|