aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/GlobalScale/IConfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/GlobalScale/IConfig.php')
-rw-r--r--lib/public/GlobalScale/IConfig.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/public/GlobalScale/IConfig.php b/lib/public/GlobalScale/IConfig.php
new file mode 100644
index 00000000000..bae5dd7aa66
--- /dev/null
+++ b/lib/public/GlobalScale/IConfig.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCP\GlobalScale;
+
+/**
+ * Interface IConfig
+ *
+ * Configuration of the global scale architecture
+ *
+ * @since 12.0.1
+ */
+interface IConfig {
+ /**
+ * check if global scale is enabled
+ *
+ * @since 12.0.1
+ * @return bool
+ */
+ public function isGlobalScaleEnabled();
+
+ /**
+ * check if federation should only be used internally in a global scale setup
+ *
+ * @since 12.0.1
+ * @return bool
+ */
+ public function onlyInternalFederation();
+}