2017-10-04 10:21:50 -04:00
|
|
|
<?php
|
|
|
|
|
/**
|
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-10-04 10:21:50 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Remote;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Provides some basic info about a remote Nextcloud instance
|
|
|
|
|
*
|
|
|
|
|
* @since 13.0.0
|
2021-06-28 10:36:32 -04:00
|
|
|
* @deprecated 23.0.0
|
2017-10-04 10:21:50 -04:00
|
|
|
*/
|
|
|
|
|
interface IInstance {
|
|
|
|
|
/**
|
|
|
|
|
* @return string The url of the remote server without protocol
|
|
|
|
|
*
|
|
|
|
|
* @since 13.0.0
|
2021-06-28 10:36:32 -04:00
|
|
|
* @deprecated 23.0.0
|
2017-10-04 10:21:50 -04:00
|
|
|
*/
|
|
|
|
|
public function getUrl();
|
|
|
|
|
|
|
|
|
|
/**
|
2024-07-29 02:43:27 -04:00
|
|
|
* @return string The of the remote server with protocol
|
2017-10-04 10:21:50 -04:00
|
|
|
*
|
|
|
|
|
* @since 13.0.0
|
2021-06-28 10:36:32 -04:00
|
|
|
* @deprecated 23.0.0
|
2017-10-04 10:21:50 -04:00
|
|
|
*/
|
|
|
|
|
public function getFullUrl();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return string The full version string in '13.1.2.3' format
|
|
|
|
|
*
|
|
|
|
|
* @since 13.0.0
|
2021-06-28 10:36:32 -04:00
|
|
|
* @deprecated 23.0.0
|
2017-10-04 10:21:50 -04:00
|
|
|
*/
|
|
|
|
|
public function getVersion();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return string 'http' or 'https'
|
|
|
|
|
*
|
|
|
|
|
* @since 13.0.0
|
2021-06-28 10:36:32 -04:00
|
|
|
* @deprecated 23.0.0
|
2017-10-04 10:21:50 -04:00
|
|
|
*/
|
|
|
|
|
public function getProtocol();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Check that the remote server is installed and not in maintenance mode
|
|
|
|
|
*
|
|
|
|
|
* @since 13.0.0
|
2021-06-28 10:36:32 -04:00
|
|
|
* @deprecated 23.0.0
|
2017-10-04 10:21:50 -04:00
|
|
|
*
|
|
|
|
|
* @return bool
|
|
|
|
|
*/
|
|
|
|
|
public function isActive();
|
|
|
|
|
}
|