IMountProvider.php 609 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCP\Files\Config;
  8. use OCP\Files\Storage\IStorageFactory;
  9. use OCP\IUser;
  10. /**
  11. * Provides
  12. * @since 8.0.0
  13. */
  14. interface IMountProvider {
  15. /**
  16. * Get all mountpoints applicable for the user
  17. *
  18. * @param \OCP\IUser $user
  19. * @param \OCP\Files\Storage\IStorageFactory $loader
  20. * @return \OCP\Files\Mount\IMountPoint[]
  21. * @since 8.0.0
  22. */
  23. public function getMountsForUser(IUser $user, IStorageFactory $loader);
  24. }