Swift¶
-
class
OC\Files\ObjectStore\Swift¶ Source: lib/private/Files/ObjectStore/Swift.php#39 Implements: OCP\Files\ObjectStore\IObjectStore
Properties¶
Methods¶
-
public
OC\Files\ObjectStore\Swift::__construct($params, $connectionFactory=null)¶ Source: lib/private/Files/ObjectStore/Swift.php#48
-
public
OC\Files\ObjectStore\Swift::getStorageId()¶ Source: lib/private/Files/ObjectStore/Swift.php#69 Returns: string the container name where objects are stored
-
public
OC\Files\ObjectStore\Swift::writeObject($urn, $stream, $mimetype=null)¶ Source: lib/private/Files/ObjectStore/Swift.php#77
-
public
OC\Files\ObjectStore\Swift::readObject($urn)¶ Source: Parameters: - $urn (string) the unified resource name used to identify the object
Returns: resource stream with the read data
Throws: \Exceptionfrom openstack or GuzzleHttp libs when something goes wrongThrows: \OCP\Files\NotFoundExceptionif file does not existThrows: \Exceptionfrom openstack or GuzzleHttp libs when something goes wrongThrows: \OCP\Files\NotFoundExceptionif file does not exist
-
public
OC\Files\ObjectStore\Swift::deleteObject($urn)¶ Source: Parameters: - $urn (string) Unified Resource Name
Returns: void
Throws: \Exceptionfrom openstack lib when something goes wrong
-
public
OC\Files\ObjectStore\Swift::deleteContainer()¶ Source: lib/private/Files/ObjectStore/Swift.php#142 Returns: void Throws: \Exceptionfrom openstack lib when something goes wrong
-
public
OC\Files\ObjectStore\Swift::objectExists($urn)¶ Source: lib/private/Files/ObjectStore/Swift.php#146
-
public
OC\Files\ObjectStore\Swift::copyObject($from, $to)¶ Source: lib/private/Files/ObjectStore/Swift.php#150