qiniu v0.4.0 Qiniu.Resource
Module to managing resource
See http://developer.qiniu.com/docs/v6/api/reference/rs/
Link to this section Summary
Functions
Batch operations for mix of stat
, copy
, move
and delete
Change type(MIME type) of the entry
Copy one entry to another dest key
Delete an entry
Fetch resource from a url, and store it in your own bucket
List resources in one bucket
Move an entry to another dest
For the bucket which sets image storing, fetch resource from image source and store to this bucket. If the entry exists in this bucket, override the entry with the resource of image storing
Get the metadata of the resource
Link to this section Functions
Batch operations for mix of stat
, copy
, move
and delete
Fields
ops
- Array of all operations like[[:stat, "b:k"], [:copy, "b:k", "b1:k1"]]
Change type(MIME type) of the entry
Fields
uri
- URI of the entry, “bucket:key”mime
- MIME type to change
Copy one entry to another dest key
Fields
source_uri
- uri of your source entry, “bucket:key”dest_uri
- uri of your dest entry, “bucket:key”
Delete an entry
Fields
uri
- uri of your entry to delete, “bucket:key”
Fetch resource from a url, and store it in your own bucket
Fields
url
- URL of the external resourceentry_uri
- URI of your entry, “bucket:key”
List resources in one bucket
Fields
bucket
- the bucket to list
Options
:limit
- Number to list(1~1000), default is 1000:prefix
- Prefix of resources to list, default is""
:delimiter
- Directory separator to list common prefix, default is""
:marker
- Marker of last request, which can act as starting point of this request, default is""
Move an entry to another dest
Fields
source_uri
- uri of your source entry, “bucket:key”dest_uri
- uri of your dest entry, “bucket:key”
For the bucket which sets image storing, fetch resource from image source and store to this bucket. If the entry exists in this bucket, override the entry with the resource of image storing.
Fields
uri
- URI of destiny entry, “bucket:key”
Get the metadata of the resource
Fields
entry_uri
- uri of your resource entry, “bucket:key”