S3ObjectTrait¶
-
trait
OC\Files\ObjectStore\
S3ObjectTrait
¶ Source: lib/private/Files/ObjectStore/S3ObjectTrait.php#37
Methods¶
-
protected abstract
OC\Files\ObjectStore\S3ObjectTrait::
getConnection
()¶ - Returns the connection
Source: lib/private/Files/ObjectStore/S3ObjectTrait.php#44 Returns: \Aws\S3\S3Client
connected clientThrows: \Exception
if connection could not be made
-
public
OC\Files\ObjectStore\S3ObjectTrait::
readObject
($urn)¶ Source: 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 loggedSince: 7.0.0
-
public
OC\Files\ObjectStore\S3ObjectTrait::
writeObject
($urn, $stream, $mimetype=null)¶ Source: Parameters: - $urn (string) the unified resource name used to identify the object
- $stream (resource) stream with the data to write
- $mimetype (string | null) the mimetype to set for the remove object @since 22.0.0
Throws: \Exception
when something goes wrong, message will be loggedSince: 7.0.0
-
public
OC\Files\ObjectStore\S3ObjectTrait::
deleteObject
($urn)¶ Source: Parameters: - $urn (string) the unified resource name used to identify the object
Returns: void
Throws: \Exception
when something goes wrong, message will be loggedSince: 7.0.0
-
public
OC\Files\ObjectStore\S3ObjectTrait::
objectExists
($urn)¶ Source: lib/private/Files/ObjectStore/S3ObjectTrait.php#126
-
public
OC\Files\ObjectStore\S3ObjectTrait::
copyObject
($from, $to)¶ Source: lib/private/Files/ObjectStore/S3ObjectTrait.php#130