\OCP\Files\ObjectStoreIObjectStore

Interface IObjectStore

Summary

Methods
Constants
getStorageId()
readObject()
writeObject()
deleteObject()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getStorageId()

getStorageId() : string

Returns

string —

the container or bucket name where objects are stored

readObject()

readObject(string  $urn) : resource

Parameters

string $urn

the unified resource name used to identify the object

Throws

\Exception

when something goes wrong, message will be logged

Returns

resource —

stream with the read data

writeObject()

writeObject(string  $urn, resource  $stream) 

Parameters

string $urn

the unified resource name used to identify the object

resource $stream

stream with the data to write

Throws

\Exception

when something goes wrong, message will be logged

deleteObject()

deleteObject(string  $urn) : void

Parameters

string $urn

the unified resource name used to identify the object

Throws

\Exception

when something goes wrong, message will be logged