aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Config/IMountProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Files/Config/IMountProvider.php')
-rw-r--r--lib/public/Files/Config/IMountProvider.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/public/Files/Config/IMountProvider.php b/lib/public/Files/Config/IMountProvider.php
new file mode 100644
index 00000000000..b59813a866d
--- /dev/null
+++ b/lib/public/Files/Config/IMountProvider.php
@@ -0,0 +1,27 @@
+<?php
+
+/**
+ * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+namespace OCP\Files\Config;
+
+use OCP\Files\Storage\IStorageFactory;
+use OCP\IUser;
+
+/**
+ * Provides
+ * @since 8.0.0
+ */
+interface IMountProvider {
+ /**
+ * Get all mountpoints applicable for the user
+ *
+ * @param \OCP\IUser $user
+ * @param \OCP\Files\Storage\IStorageFactory $loader
+ * @return \OCP\Files\Mount\IMountPoint[]
+ * @since 8.0.0
+ */
+ public function getMountsForUser(IUser $user, IStorageFactory $loader);
+}