\SwiftBucket
Class SwiftBucket
Synopsis
class SwiftBucket
extends CloudBucket
{
- // constants
- const CONTAINER = 'Container';
- const REGION = 'Region';
- const USERNAME = 'Username';
- const API_KEY = 'ApiKey';
- const PROJECT_NAME = 'ProjectName';
- const USER_DOMAIN_ID = 'UserDomainId';
- const PROJECT_DOMAIN_ID = 'ProjectDomainId';
- const AUTH_URL = 'AuthURL';
- const APP_CRED_ID = 'ApplicationCredentialId';
- const APP_CRED_SECRET = 'ApplicationCredentialSecret';
- // members
- protected StorageObject $container;
- protected $containerName;
- // methods
- public void __construct()
- protected Container|StorageObject getContainer()
- public object|StorageObject put()
- public void delete()
- public void rename()
- public string getContents()
- protected StorageObject getFileObjectFor()
- public int getFileSize()
- public Uri|string getPublicURLFor()
Hierarchy
Extends
- CloudBucket
Constants
Name | Value |
---|---|
CONTAINER | 'Container' |
REGION | 'Region' |
USERNAME | 'Username' |
API_KEY | 'ApiKey' |
PROJECT_NAME | 'ProjectName' |
USER_DOMAIN_ID | 'UserDomainId' |
PROJECT_DOMAIN_ID | 'ProjectDomainId' |
AUTH_URL | 'AuthURL' |
APP_CRED_ID | 'ApplicationCredentialId' |
APP_CRED_SECRET | 'ApplicationCredentialSecret' |
Members
protected
- $container — OpenStack\ObjectStore\v1\Models\StorageObject
- $containerName
Methods
protected
public
- __construct()
- delete() — NOTE: This method must handle string filenames as well for the purpose of deleting cached resampled images.
- getContents()
- getFileSize()
- getPublicURLFor()
- put()
- rename()