diff options
Diffstat (limited to 'apps/files_external/lib/Lib/Config')
-rw-r--r-- | apps/files_external/lib/Lib/Config/IAuthMechanismProvider.php | 23 | ||||
-rw-r--r-- | apps/files_external/lib/Lib/Config/IBackendProvider.php | 23 |
2 files changed, 46 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Config/IAuthMechanismProvider.php b/apps/files_external/lib/Lib/Config/IAuthMechanismProvider.php new file mode 100644 index 00000000000..0c2e90a243c --- /dev/null +++ b/apps/files_external/lib/Lib/Config/IAuthMechanismProvider.php @@ -0,0 +1,23 @@ +<?php + +/** + * SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-FileCopyrightText: 2016 ownCloud, Inc. + * SPDX-License-Identifier: AGPL-3.0-only + */ +namespace OCA\Files_External\Lib\Config; + +use OCA\Files_External\Lib\Auth\AuthMechanism; + +/** + * Provider of external storage auth mechanisms + * @since 9.1.0 + */ +interface IAuthMechanismProvider { + + /** + * @since 9.1.0 + * @return AuthMechanism[] + */ + public function getAuthMechanisms(); +} diff --git a/apps/files_external/lib/Lib/Config/IBackendProvider.php b/apps/files_external/lib/Lib/Config/IBackendProvider.php new file mode 100644 index 00000000000..44c460c3138 --- /dev/null +++ b/apps/files_external/lib/Lib/Config/IBackendProvider.php @@ -0,0 +1,23 @@ +<?php + +/** + * SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-FileCopyrightText: 2016 ownCloud, Inc. + * SPDX-License-Identifier: AGPL-3.0-only + */ +namespace OCA\Files_External\Lib\Config; + +use OCA\Files_External\Lib\Backend\Backend; + +/** + * Provider of external storage backends + * @since 9.1.0 + */ +interface IBackendProvider { + + /** + * @since 9.1.0 + * @return Backend[] + */ + public function getBackends(); +} |