OpenCloud/ObjectStore/Service.php
Classes
Service
Description
ObjectStore - this defines the object-store (Cloud Files) service.Usage:
$conn = new OpenStack('{URL}', '{SECRET}');
$ostore = new OpenCloud\ObjectStore(
$conn,
'service name',
'service region',
'URL type'
);
Default values for service name, service region, and urltype can be
provided via the global constants RAXSDK_OBJSTORE_NAME,
RAXSDK_OBJSTORE_REGION, and RAXSDK_OBJSTORE_URLTYPE.Methods
CDN, SetTempUrlSecret, __construct,SetTempUrlSecret( string $secret, ) : \OpenCloud\ObjectStore\HttpResponse
Description
sets the shared secret value for the TEMP_URLArguments
Name | Type | Description | Default |
---|---|---|---|
$secret | string | the shared secret |
Return value
Type | Description |
---|---|
\OpenCloud\ObjectStore\HttpResponse |
__construct( $connection, string $serviceName = RAXSDK_OBJSTORE_NAME, string $serviceRegion = RAXSDK_OBJSTORE_REGION, string $urltype = RAXSDK_OBJSTORE_URLTYPE, ) : n/a
Description
creates a new ObjectStore objectArguments
Name | Type | Description | Default |
---|---|---|---|
$connection | n/a | ||
$serviceName | string | the name of the service to use |
RAXSDK_OBJSTORE_NAME |
$serviceRegion | string | the name of the service region to use |
RAXSDK_OBJSTORE_REGION |
$urltype | string | the type of URL to use (usually "publicURL") |
RAXSDK_OBJSTORE_URLTYPE |
Return value
Type | Description |
---|---|
n/a | n/a |