Class Container
A container is a storage compartment for your data and provides a way for you to organize your data. You can think of a container as a folder in Windows or a directory in Unix. The primary difference between a container and these other file system concepts is that containers cannot be nested.
A container can also be CDN-enabled (for public access), in which case you will need to interact with a CDNContainer object instead of this one.
- OpenCloud\Common\Base
- OpenCloud\ObjectStore\Resource\AbstractResource
- OpenCloud\ObjectStore\Resource\AbstractContainer
- OpenCloud\ObjectStore\Resource\Container
public
|
|
public static
static
|
#
fromResponse( Guzzle\Http\Message\Response $response,
Factory method that instantiates an object from a Response object. |
public
null|
|
|
public
null|string|integer
|
#
getObjectCount( )
It would be awesome to put these convenience methods (which are identical to the ones in the Account object) in a trait, but we have to wait for v5.3 EOL first... |
public
null|string|integer
|
|
public
mixed
|
|
public
null|string|integer
|
|
public
mixed
|
|
public
null|string|integer
|
|
public
|
|
public
mixed
|
#
deleteAllObjects( )
Deletes all objects that this container currently contains. Useful when doing operations (like a delete) that require an empty container first. |
public
'OpenCloud\Common\Collection
|
|
public
Guzzle\Http\Message\Response
|
#
enableLogging( )
Turn on access logs, which track all the web traffic that your data objects accrue. |
public
Guzzle\Http\Message\Response
|
|
public
|
|
public
Guzzle\Http\Message\Response
|
#
disableCdn( )
Disables the containers CDN function. Note that the container will still be available on the CDN until its TTL expires. |
public
|
|
public
|
#
dataObject( mixed $info = null )
Get either a fresh data object (no $info), or get an existing one by passing in data for population. |
public
|
|
public
mixed
|
#
getPartialObject( mixed $name, array $headers = array() )
Essentially the same as |
public
boolean
|
#
objectExists( mixed $name )
Check if an object exists inside a container. Uses |
public
|
#
uploadObject( mixed $name, mixed $data, array $headers = array() )
Upload a single file to the API. |
public
Guzzle\Http\Message\Response
|
#
uploadObjects( array $files, array $commonHeaders = array() )
Upload an array of objects for upload. This method optimizes the upload procedure by batching requests for faster execution. This is a very useful procedure when you just have a bunch of unremarkable files to be uploaded quickly. Each file must be under 5GB. |
public
mixed
|
#
setupObjectTransfer( array $options = array() )
When uploading large files (+5GB), you need to upload the file as chunks using multibyte transfer. This method sets up the transfer, and in order to execute the transfer, you need to call upload() on the returned object. |
public
|
#
uploadDirectory( mixed $path )
Upload the contents of a local directory to a remote container, effectively syncing them. |
public
|
string |
METADATA_LABEL
|
'Container' |
GLOBAL_METADATA_PREFIX
|
$metadataClass,
$name
|
$metadata,
$service
|
$aliases
|