2017-05-24 03:07:58 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2017-05-24 03:07:58 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-05-24 03:07:58 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\GlobalScale;
|
|
|
|
|
|
2025-11-20 12:02:21 -05:00
|
|
|
use OCP\AppFramework\Attribute\Consumable;
|
|
|
|
|
|
2017-05-24 03:07:58 -04:00
|
|
|
/**
|
|
|
|
|
* Interface IConfig
|
|
|
|
|
*
|
|
|
|
|
* Configuration of the global scale architecture
|
|
|
|
|
*
|
|
|
|
|
* @since 12.0.1
|
|
|
|
|
*/
|
2025-11-20 12:02:21 -05:00
|
|
|
#[Consumable(since: '12.0.1')]
|
2017-05-24 03:07:58 -04:00
|
|
|
interface IConfig {
|
|
|
|
|
/**
|
2025-11-20 12:02:21 -05:00
|
|
|
* Check if global scale is enabled.
|
2017-05-24 03:07:58 -04:00
|
|
|
*
|
|
|
|
|
* @since 12.0.1
|
|
|
|
|
*/
|
2025-11-20 12:02:21 -05:00
|
|
|
public function isGlobalScaleEnabled(): bool;
|
2017-05-24 03:07:58 -04:00
|
|
|
|
|
|
|
|
/**
|
2025-11-20 12:02:21 -05:00
|
|
|
* Check if federation should only be used internally in a global scale setup.
|
2017-05-24 03:07:58 -04:00
|
|
|
*
|
|
|
|
|
* @since 12.0.1
|
|
|
|
|
*/
|
2025-11-20 12:02:21 -05:00
|
|
|
public function onlyInternalFederation(): bool;
|
2017-05-24 03:07:58 -04:00
|
|
|
}
|