diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-07 17:31:03 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-07 17:31:03 +0200 |
commit | b3a1aef93414ee1ec3a124f66a6964a27338b44c (patch) | |
tree | c933beada324e6bb810c4c57dbb1f7dde5320bbf /lib/public/files | |
parent | 404b5a2e4a4ddb1b2d6b8c430686b4c3fb68beb0 (diff) | |
parent | 75a5e6e12b18a9f5b7b113cd7e2c9c56c204084d (diff) | |
download | nextcloud-server-b3a1aef93414ee1ec3a124f66a6964a27338b44c.tar.gz nextcloud-server-b3a1aef93414ee1ec3a124f66a6964a27338b44c.zip |
Merge pull request #13641 from owncloud/cache-storage-status
Store storage availability in database
Diffstat (limited to 'lib/public/files')
-rw-r--r-- | lib/public/files/storage.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/public/files/storage.php b/lib/public/files/storage.php index 41218996382..ac3603e48d4 100644 --- a/lib/public/files/storage.php +++ b/lib/public/files/storage.php @@ -439,4 +439,24 @@ interface Storage { * @since 8.1.0 */ public function changeLock($path, $type, ILockingProvider $provider); + + /** + * Test a storage for availability + * + * @since 8.2.0 + * @return bool + */ + public function test(); + + /** + * @since 8.2.0 + * @return array [ available, last_checked ] + */ + public function getAvailability(); + + /** + * @since 8.2.0 + * @param bool $isAvailable + */ + public function setAvailability($isAvailable); } |