Compare commits
28 Commits
496404de56
...
186b12b718
| Author | SHA1 | Date |
|---|---|---|
|
|
186b12b718 | |
|
|
a86a2a070e | |
|
|
8f82ad358a | |
|
|
9af153f5b7 | |
|
|
4a5bacc8c7 | |
|
|
d50828aa92 | |
|
|
258670de61 | |
|
|
7f76a6d4aa | |
|
|
edbcb6af6f | |
|
|
b07801a2b5 | |
|
|
aaf07ab73e | |
|
|
5de1d46be4 | |
|
|
cf56d6325a | |
|
|
08382282ea | |
|
|
f035ff3d3a | |
|
|
61ebc6e251 | |
|
|
6bde5db7da | |
|
|
d14a032220 | |
|
|
fcdb28e4a3 | |
|
|
9b519b4679 | |
|
|
f47a586cdd | |
|
|
ac4e82d2a5 | |
|
|
161e59929a | |
|
|
dac8818102 | |
|
|
08b39e2585 | |
|
|
24c0f4b06d | |
|
|
077cb3ebba | |
|
|
3c809eaceb |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
5230-5230.js.license
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
861-861.js.license
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OCP\Files\Config;
|
||||
|
||||
use OCP\Files\Cache\ICacheEntry;
|
||||
|
||||
/**
|
||||
* Data-class containing information related to a mount and its root.
|
||||
*
|
||||
* @since 33.0.0
|
||||
*/
|
||||
class IMountProviderArgs {
|
||||
public function __construct(
|
||||
public ICachedMountInfo $mountInfo,
|
||||
public ICacheEntry $cacheEntry,
|
||||
) {
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OCP\Files\Config;
|
||||
|
||||
use OCP\Files\Mount\IMountPoint;
|
||||
use OCP\Files\Storage\IStorageFactory;
|
||||
|
||||
/**
|
||||
* This interface marks mount providers that can provide IMountPoints related to
|
||||
* a path based on the provided mount and root metadata.
|
||||
*
|
||||
* @since 33.0.0
|
||||
*/
|
||||
interface IPartialMountProvider extends IMountProvider {
|
||||
|
||||
/**
|
||||
* Called during the Filesystem setup of a specific path.
|
||||
*
|
||||
* The provided arguments give information about the path being set up,
|
||||
* as well as information about mount points known to be provided by the
|
||||
* mount provider and contained in the path or in its sub-paths.
|
||||
*
|
||||
* Implementations should verify the IMountProviderArgs and return the
|
||||
* corresponding IMountPoint instances.
|
||||
*
|
||||
* @param string $path path for which the mounts are set up
|
||||
* @param IMountProviderArgs[] $mountProviderArgs
|
||||
* @param IStorageFactory $loader
|
||||
* @return array<string, IMountPoint> IMountPoint instances, indexed by
|
||||
* mount-point
|
||||
*/
|
||||
public function getMountsForPath(
|
||||
string $path,
|
||||
array $mountProviderArgs,
|
||||
IStorageFactory $loader,
|
||||
): array;
|
||||
}
|
||||
Loading…
Reference in New Issue