acl  3.5.3.0
acl::OSSClient类 参考

#include <OSSClient.hpp>

+ acl::OSSClient 的协作图:

Public 成员函数

 OSSClient (const char *keyId, const char *keySecret)
 
 OSSClient (const char *endPoint, const char *keyId, const char *keySecret)
 
 ~OSSClient ()
 
const char * getEndpoint () const
 
const char * getAccessKeyId () const
 
const char * getAccessKeySecret () const
 
bool createBucket (Bucket &bucket)
 
bool deleteBucket (const char *name)
 
std::list< BucketlistBuckets ()
 
const char * getBucketLocation (const char *name)
 
bool doesBucketExist (const char *name)
 
OSSObjectgetObject (const char *bucket, const char *key)
 
bool deleteObject (const char *bucket, const char *key)
 
bool putObject (const char *bucket, const char *key, istream &in, ObjectMetadata &meta, PutObjectResult *result=NULL)
 
bool copyObject (const char *fromBucket, const char *fromKey, const char *toBucket, const char *toKey, CopyObjectResult *result=NULL)
 
bool getObjectMetadata (const char *bucket, const char *key, ObjectMetadata *result=NULL)
 
bool setBucketCORS (SetBucketCORSRequest &request)
 
bool deleteBucketCORSRules (const char *bucket)
 
bool optionsObject (OptionsRequest &request)
 
bool getBucketCORSRules (const char *bucket, std::list< CORSRule > *result)
 
bool abortMultipartUpload (AbortMultipartUploadRequest &request)
 
bool completeMultipartUpload (CompleteMultipartUploadRequest &request, CompleteMultipartUploadResult *result)
 
bool initiateMultipartUpload (InitiateMultipartUploadRequest &request, InitiateMultipartUploadResult *result)
 
bool listMultipartUploads (ListMultipartUploadsRequest &request, MultipartUploadListing *result)
 
bool listParts (ListPartsRequest &request, PartListing *result)
 
bool uploadPart (UploadPartRequest &request, UploadPartResult *result)
 
bool uploadPartCopy (UploadPartCopyRequest &request, UploadPartCopyResult *result)
 

详细描述

在文件 OSSClient.hpp38 行定义.

构造及析构函数说明

◆ OSSClient() [1/2]

acl::OSSClient::OSSClient ( const char *  keyId,
const char *  keySecret 
)

◆ OSSClient() [2/2]

acl::OSSClient::OSSClient ( const char *  endPoint,
const char *  keyId,
const char *  keySecret 
)

◆ ~OSSClient()

acl::OSSClient::~OSSClient ( )

成员函数说明

◆ abortMultipartUpload()

bool acl::OSSClient::abortMultipartUpload ( AbortMultipartUploadRequest request)

◆ completeMultipartUpload()

bool acl::OSSClient::completeMultipartUpload ( CompleteMultipartUploadRequest request,
CompleteMultipartUploadResult result 
)

◆ copyObject()

bool acl::OSSClient::copyObject ( const char *  fromBucket,
const char *  fromKey,
const char *  toBucket,
const char *  toKey,
CopyObjectResult result = NULL 
)

◆ createBucket()

bool acl::OSSClient::createBucket ( Bucket bucket)

◆ deleteBucket()

bool acl::OSSClient::deleteBucket ( const char *  name)

◆ deleteBucketCORSRules()

bool acl::OSSClient::deleteBucketCORSRules ( const char *  bucket)

◆ deleteObject()

bool acl::OSSClient::deleteObject ( const char *  bucket,
const char *  key 
)

◆ doesBucketExist()

bool acl::OSSClient::doesBucketExist ( const char *  name)

◆ getAccessKeyId()

const char* acl::OSSClient::getAccessKeyId ( ) const
inline

在文件 OSSClient.hpp52 行定义.

53  {
54  return key_id_;
55  }

◆ getAccessKeySecret()

const char* acl::OSSClient::getAccessKeySecret ( ) const
inline

在文件 OSSClient.hpp57 行定义.

58  {
59  return key_secret_;
60  }

◆ getBucketCORSRules()

bool acl::OSSClient::getBucketCORSRules ( const char *  bucket,
std::list< CORSRule > *  result 
)

◆ getBucketLocation()

const char* acl::OSSClient::getBucketLocation ( const char *  name)

◆ getEndpoint()

const char* acl::OSSClient::getEndpoint ( ) const
inline

在文件 OSSClient.hpp47 行定义.

48  {
49  return end_point_;
50  }

◆ getObject()

OSSObject* acl::OSSClient::getObject ( const char *  bucket,
const char *  key 
)

◆ getObjectMetadata()

bool acl::OSSClient::getObjectMetadata ( const char *  bucket,
const char *  key,
ObjectMetadata result = NULL 
)

◆ initiateMultipartUpload()

bool acl::OSSClient::initiateMultipartUpload ( InitiateMultipartUploadRequest request,
InitiateMultipartUploadResult result 
)

◆ listBuckets()

std::list<Bucket> acl::OSSClient::listBuckets ( )

◆ listMultipartUploads()

bool acl::OSSClient::listMultipartUploads ( ListMultipartUploadsRequest request,
MultipartUploadListing result 
)

◆ listParts()

bool acl::OSSClient::listParts ( ListPartsRequest request,
PartListing result 
)

◆ optionsObject()

bool acl::OSSClient::optionsObject ( OptionsRequest request)

◆ putObject()

bool acl::OSSClient::putObject ( const char *  bucket,
const char *  key,
istream in,
ObjectMetadata meta,
PutObjectResult result = NULL 
)

◆ setBucketCORS()

bool acl::OSSClient::setBucketCORS ( SetBucketCORSRequest request)

◆ uploadPart()

bool acl::OSSClient::uploadPart ( UploadPartRequest request,
UploadPartResult result 
)

◆ uploadPartCopy()

bool acl::OSSClient::uploadPartCopy ( UploadPartCopyRequest request,
UploadPartCopyResult result 
)

该类的文档由以下文件生成: