StorageObjectStore¶
-
class
OC\Files\ObjectStore\StorageObjectStore¶ - Object store that wraps a storage backend, mostly for testing purposes
Source: lib/private/Files/ObjectStore/StorageObjectStore.php#34 Implements: OCP\Files\ObjectStore\IObjectStore
Properties¶
Methods¶
-
public
OC\Files\ObjectStore\StorageObjectStore::__construct($storage)¶ Source: Parameters: - $storage (
OCP\Files\Storage\IStorage)
- $storage (
-
public
OC\Files\ObjectStore\StorageObjectStore::getStorageId()¶ Source: lib/private/Files/ObjectStore/StorageObjectStore.php#49 Returns: string the container or bucket name where objects are stored Since: 7.0.0
-
public
OC\Files\ObjectStore\StorageObjectStore::readObject($urn)¶ Source: Parameters: - $urn (string) the unified resource name used to identify the object
Returns: resource stream with the read data
Throws: \Exceptionwhen something goes wrong, message will be loggedSince: 7.0.0
-
public
OC\Files\ObjectStore\StorageObjectStore::writeObject($urn, $stream, $mimetype=null)¶ Source: lib/private/Files/ObjectStore/StorageObjectStore.php#68
-
public
OC\Files\ObjectStore\StorageObjectStore::deleteObject($urn)¶ Source: Parameters: - $urn (string) the unified resource name used to identify the object
Returns: void
Throws: \Exceptionwhen something goes wrong, message will be loggedSince: 7.0.0
-
public
OC\Files\ObjectStore\StorageObjectStore::objectExists($urn)¶ Source: lib/private/Files/ObjectStore/StorageObjectStore.php#88
-
public
OC\Files\ObjectStore\StorageObjectStore::copyObject($from, $to)¶ Source: lib/private/Files/ObjectStore/StorageObjectStore.php#92