C# Class Qiniu.Storage.BucketManager

Afficher le fichier Open project: qiniu/csharp-sdk Class Usage Examples

Méthodes publiques

Méthode Description
BucketManager ( Mac mac ) : System.Collections.Generic
batch ( string ops ) : Qiniu.Http.HttpResult
buckets ( ) : BucketsResult
cdnRefresh ( List urls, List dirs ) : CdnRefreshResult
chgm ( string bucket, string key, string mimeType ) : Qiniu.Http.HttpResult
chgmOp ( string bucket, string key, string mimeType ) : string
copy ( string srcBucket, string srcKey, string destBucket, string destKey ) : Qiniu.Http.HttpResult
copy ( string srcBucket, string srcKey, string destBucket, string destKey, bool force ) : Qiniu.Http.HttpResult
copyOp ( string srcBucket, string srcKey, string destBucket, string destKey ) : string
copyOp ( string srcBucket, string srcKey, string destBucket, string destKey, bool force ) : string
delete ( string bucket, string key ) : Qiniu.Http.HttpResult
deleteOp ( string bucket, string key ) : string
domains ( string bucket ) : DomainsResult
fetch ( string remoteResUrl, string bucket, string key ) : FetchResult
fetchOp ( string url, string bucket, string key ) : string
listFiles ( string bucket, string prefix, string marker, int limit, string delimiter ) : ListFilesResult

获取空间文件列表 listFiles(bucket, prefix, marker, limit, delimiter) bucket: 目标空间名称 prefix: 返回指定文件名前缀的文件列表(prefix可设为null) marker: 考虑到设置limit后返回的文件列表可能不全(需要重复执行listFiles操作) 执行listFiles操作时使用marker标记来追加新的结果 特别注意首次执行listFiles操作时marker为null limit: 每次返回结果所包含的文件总数限制(limit<=1000,建议值100) delimiter: 分隔符,比如-或者/等等,可以模拟作为目录结构(参考下述示例) 假设指定空间中有2个文件 fakepath/1.txt fakepath/2.txt 现设置分隔符delimiter = / 得到返回结果items =[],commonPrefixes = [fakepath/] 然后调整prefix = fakepath/ delimiter = null 得到所需结果items = [1.txt,2.txt] 于是可以在本地先创建一个目录fakepath,然后在该目录下写入items中的文件

move ( string srcBucket, string srcKey, string destBucket, string destKey ) : Qiniu.Http.HttpResult
move ( string srcBucket, string srcKey, string destBucket, string destKey, bool force ) : Qiniu.Http.HttpResult
moveOp ( string srcBucket, string srcKey, string destBucket, string destKey ) : string
moveOp ( string srcBucket, string srcKey, string destBucket, string destKey, bool force ) : string
prefetch ( string bucket, string key ) : Qiniu.Http.HttpResult
prefetchOp ( string bucket, string key ) : string
stat ( string bucket, string key ) : Qiniu.Storage.Model.StatResult
statOp ( string bucket, string key ) : string
updateLifecycle ( string bucket, string key, int deleteAfterDays ) : Qiniu.Http.HttpResult
updateLifecycleOp ( string bucket, string key, int deleteAfterDays ) : string

Method Details

BucketManager() public méthode

public BucketManager ( Mac mac ) : System.Collections.Generic
mac Qiniu.Util.Mac
Résultat System.Collections.Generic

batch() public méthode

public batch ( string ops ) : Qiniu.Http.HttpResult
ops string
Résultat Qiniu.Http.HttpResult

buckets() public méthode

public buckets ( ) : BucketsResult
Résultat Qiniu.Storage.Model.BucketsResult

cdnRefresh() public méthode

public cdnRefresh ( List urls, List dirs ) : CdnRefreshResult
urls List
dirs List
Résultat Qiniu.Storage.Model.CdnRefreshResult

chgm() public méthode

public chgm ( string bucket, string key, string mimeType ) : Qiniu.Http.HttpResult
bucket string
key string
mimeType string
Résultat Qiniu.Http.HttpResult

chgmOp() public méthode

public chgmOp ( string bucket, string key, string mimeType ) : string
bucket string
key string
mimeType string
Résultat string

copy() public méthode

public copy ( string srcBucket, string srcKey, string destBucket, string destKey ) : Qiniu.Http.HttpResult
srcBucket string
srcKey string
destBucket string
destKey string
Résultat Qiniu.Http.HttpResult

copy() public méthode

public copy ( string srcBucket, string srcKey, string destBucket, string destKey, bool force ) : Qiniu.Http.HttpResult
srcBucket string
srcKey string
destBucket string
destKey string
force bool
Résultat Qiniu.Http.HttpResult

copyOp() public méthode

public copyOp ( string srcBucket, string srcKey, string destBucket, string destKey ) : string
srcBucket string
srcKey string
destBucket string
destKey string
Résultat string

copyOp() public méthode

public copyOp ( string srcBucket, string srcKey, string destBucket, string destKey, bool force ) : string
srcBucket string
srcKey string
destBucket string
destKey string
force bool
Résultat string

delete() public méthode

public delete ( string bucket, string key ) : Qiniu.Http.HttpResult
bucket string
key string
Résultat Qiniu.Http.HttpResult

deleteOp() public méthode

public deleteOp ( string bucket, string key ) : string
bucket string
key string
Résultat string

domains() public méthode

public domains ( string bucket ) : DomainsResult
bucket string
Résultat Qiniu.Storage.Model.DomainsResult

fetch() public méthode

public fetch ( string remoteResUrl, string bucket, string key ) : FetchResult
remoteResUrl string
bucket string
key string
Résultat Qiniu.Storage.Model.FetchResult

fetchOp() public méthode

public fetchOp ( string url, string bucket, string key ) : string
url string
bucket string
key string
Résultat string

listFiles() public méthode

获取空间文件列表 listFiles(bucket, prefix, marker, limit, delimiter) bucket: 目标空间名称 prefix: 返回指定文件名前缀的文件列表(prefix可设为null) marker: 考虑到设置limit后返回的文件列表可能不全(需要重复执行listFiles操作) 执行listFiles操作时使用marker标记来追加新的结果 特别注意首次执行listFiles操作时marker为null limit: 每次返回结果所包含的文件总数限制(limit<=1000,建议值100) delimiter: 分隔符,比如-或者/等等,可以模拟作为目录结构(参考下述示例) 假设指定空间中有2个文件 fakepath/1.txt fakepath/2.txt 现设置分隔符delimiter = / 得到返回结果items =[],commonPrefixes = [fakepath/] 然后调整prefix = fakepath/ delimiter = null 得到所需结果items = [1.txt,2.txt] 于是可以在本地先创建一个目录fakepath,然后在该目录下写入items中的文件
public listFiles ( string bucket, string prefix, string marker, int limit, string delimiter ) : ListFilesResult
bucket string
prefix string
marker string
limit int
delimiter string
Résultat Qiniu.Storage.Model.ListFilesResult

move() public méthode

public move ( string srcBucket, string srcKey, string destBucket, string destKey ) : Qiniu.Http.HttpResult
srcBucket string
srcKey string
destBucket string
destKey string
Résultat Qiniu.Http.HttpResult

move() public méthode

public move ( string srcBucket, string srcKey, string destBucket, string destKey, bool force ) : Qiniu.Http.HttpResult
srcBucket string
srcKey string
destBucket string
destKey string
force bool
Résultat Qiniu.Http.HttpResult

moveOp() public méthode

public moveOp ( string srcBucket, string srcKey, string destBucket, string destKey ) : string
srcBucket string
srcKey string
destBucket string
destKey string
Résultat string

moveOp() public méthode

public moveOp ( string srcBucket, string srcKey, string destBucket, string destKey, bool force ) : string
srcBucket string
srcKey string
destBucket string
destKey string
force bool
Résultat string

prefetch() public méthode

public prefetch ( string bucket, string key ) : Qiniu.Http.HttpResult
bucket string
key string
Résultat Qiniu.Http.HttpResult

prefetchOp() public méthode

public prefetchOp ( string bucket, string key ) : string
bucket string
key string
Résultat string

stat() public méthode

public stat ( string bucket, string key ) : Qiniu.Storage.Model.StatResult
bucket string
key string
Résultat Qiniu.Storage.Model.StatResult

statOp() public méthode

public statOp ( string bucket, string key ) : string
bucket string
key string
Résultat string

updateLifecycle() public méthode

public updateLifecycle ( string bucket, string key, int deleteAfterDays ) : Qiniu.Http.HttpResult
bucket string
key string
deleteAfterDays int
Résultat Qiniu.Http.HttpResult

updateLifecycleOp() public méthode

public updateLifecycleOp ( string bucket, string key, int deleteAfterDays ) : string
bucket string
key string
deleteAfterDays int
Résultat string