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:

lib/private/Files/ObjectStore/StorageObjectStore.php#41

Parameters:
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:

lib/private/Files/ObjectStore/StorageObjectStore.php#59

Parameters:
  • $urn (string) the unified resource name used to identify the object
Returns:

resource stream with the read data

Throws:

\Exception when something goes wrong, message will be logged

Since:

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:

lib/private/Files/ObjectStore/StorageObjectStore.php#84

Parameters:
  • $urn (string) the unified resource name used to identify the object
Returns:

void

Throws:

\Exception when something goes wrong, message will be logged

Since:

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