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:

lib/private/Files/ObjectStore/Swift.php#104

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

resource stream with the read data

Throws:

\Exception from openstack or GuzzleHttp libs when something goes wrong

Throws:

\OCP\Files\NotFoundException if file does not exist

Throws:

\Exception from openstack or GuzzleHttp libs when something goes wrong

Throws:

\OCP\Files\NotFoundException if file does not exist

public OC\Files\ObjectStore\Swift::deleteObject($urn)
Source:

lib/private/Files/ObjectStore/Swift.php#134

Parameters:
  • $urn (string) Unified Resource Name
Returns:

void

Throws:

\Exception from openstack lib when something goes wrong

public OC\Files\ObjectStore\Swift::deleteContainer()
Source:lib/private/Files/ObjectStore/Swift.php#142
Returns:void
Throws:\Exception from 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