Clojure sdk for qiniu storage.
Clojure sdk for qiniu storage.
(bucket-file-seq bucket
prefix
&
{:keys [limit bm delimiter] :or {limit 32} :as opts})
List files in a bucket. Returns a lazy sequence of result files.
List files in a bucket. Returns a lazy sequence of result files.
(bucket-monthly-stats bucket month)
Get the bucket statstics info by month.
Get the bucket statstics info by month.
(bucket-stats bucket item from to & opts)
Get the bucket statistics info.
Get the bucket statistics info.
(copy src-bucket src-key dst-bucket dst-key & opts)
Copy a file
Copy a file
(def-threadlocal-var name)
A macro to define thread-local var. It also implement clojure.lang.IDeref interface, so you can get it's value by @ or deref.
A macro to define thread-local var. It also implement clojure.lang.IDeref interface, so you can get it's value by @ or deref.
(delete-custom-domain domain)
delete custom domain
delete custom domain
(domain-list bucket)
Get CDN domains of bucket
Get CDN domains of bucket
(exec & {:keys [entries] :as opts})
Execute batch operations.The entries must be the same type.
Execute batch operations.The entries must be the same type.
(http-request path
f
&
{:keys [domain body] :or {domain qiniu-api-url} :as opts})
Make authorized request to qiniu api.
Make authorized request to qiniu api.
(move src-bucket src-key dst-bucket dst-key & opts)
Move a file
Move a file
(offline-custom-domain! domain)
offline custom domain
offline custom domain
(online-custom-domain! domain)
online custom domain
online custom domain
(pfop bucket key fops notifyURL & opts)
Trigger fops for an exists resource in bucket.Returns a persistentId. see http://developer.qiniu.com/docs/v6/api/reference/fop/pfop/pfop.html
Trigger fops for an exists resource in bucket.Returns a persistentId. see http://developer.qiniu.com/docs/v6/api/reference/fop/pfop/pfop.html
(prefop-status id)
Retrieve pfop status. See http://developer.qiniu.com/docs/v6/api/reference/fop/pfop/prefop.html
Retrieve pfop status. See http://developer.qiniu.com/docs/v6/api/reference/fop/pfop/prefop.html
(private-bucket bucket)
(private-bucket bucket private?)
Set a bucket to be private.
Set a bucket to be private.
(private-download-url domain
key
&
{:keys [expires access-key secret-key] :as opts})
Create a download url for public file.
Create a download url for public file.
(public-download-url domain key)
Create a download url for public file.
Create a download url for public file.
(publish-bucket bucket domain)
Publish bucket as public domain.
Publish bucket as public domain.
(set-config! &
{:keys [access-key secret-key user-agent throw-exception?
num-http-threads max-bucket-manager-cache up-host]
:or {user-agent "Clojure/qiniu sdk 1.0"
up-host "http://up.qiniu.com"
num-http-threads 10}})
Set global config for qiniu sdk.
Set global config for qiniu sdk.
(set-custom-domain! domain bucket cert key platform geo protocol)
bind custom domain
bind custom domain
(upload token key file & {:keys [mimeType params] :as opts})
Upload a file to qiniu storage by token and key. The file should can be convert into InputStream by clojure.java.io/input-stream function.
Upload a file to qiniu storage by token and key. The file should can be convert into InputStream by clojure.java.io/input-stream function.
(upload-bucket bucket key file & opts)
Upload a file to qiniu storage bucket. The file should can be convert into InputStream by clojure.java.io/input-stream function.
Upload a file to qiniu storage bucket. The file should can be convert into InputStream by clojure.java.io/input-stream function.
(uptoken
bucket
&
{:keys [access-key secret-key expires mimeLimit persistentOps detectMime
deadline endUser isPrefixalScope fsizeMin callbackBodyType returnBody
saveKey callbackHost persistentPipeline callbackBody key fileType
persistentNotifyUrl fsizeLimit insertOnly returnUrl callbackUrl]
:as opts
:or {expires 3600}})
Create a uptoken for uploading file.
:key - A file key or prefix used to limit the token scope. Leave it as nil if no limit on scope. :isPrefixalScope - whether the key should be a prefix or not.
see http://developer.qiniu.com/docs/v6/sdk/java-sdk.html#make-uptoken
Create a uptoken for uploading file. :key - A file key or prefix used to limit the token scope. Leave it as nil if no limit on scope. :isPrefixalScope - whether the key should be a prefix or not. see http://developer.qiniu.com/docs/v6/sdk/java-sdk.html#make-uptoken
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close