2019-12-03 13:57:53 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2018-10-12 11:42:08 -04:00
|
|
|
/**
|
2024-06-02 09:26:54 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-10-12 11:42:08 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCA\Files_Versions\Versions;
|
|
|
|
|
|
2024-03-26 07:21:56 -04:00
|
|
|
use OCP\Files\Storage\IStorage;
|
|
|
|
|
|
2018-10-12 11:42:08 -04:00
|
|
|
/**
|
|
|
|
|
* @since 15.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface IVersionManager extends IVersionBackend {
|
|
|
|
|
/**
|
|
|
|
|
* Register a new backend
|
|
|
|
|
*
|
|
|
|
|
* @param string $storageType
|
|
|
|
|
* @param IVersionBackend $backend
|
|
|
|
|
* @since 15.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function registerBackend(string $storageType, IVersionBackend $backend);
|
2024-03-26 07:21:56 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @throws BackendNotFoundException
|
|
|
|
|
* @since 29.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getBackendForStorage(IStorage $storage): IVersionBackend;
|
2018-10-12 11:42:08 -04:00
|
|
|
}
|