Liking cljdoc? Tell your friends :D

clj.qiniu

Clojure sdk for qiniu storage.

Clojure sdk for qiniu storage.
raw docstring

batch-opclj

source

bm-cfgclj

source

bucket-file-seqclj

(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.
sourceraw docstring

bucket-infoclj

(bucket-info bucket)

Get bucket info.

Get bucket info.
sourceraw docstring

bucket-monthly-statsclj

(bucket-monthly-stats bucket month)

Get the bucket statstics info by month.

Get the bucket statstics info by month.
sourceraw docstring

bucket-statsclj

(bucket-stats bucket item from to & opts)

Get the bucket statistics info.

Get the bucket statistics info.
sourceraw docstring

convert-qiniu-exclj

(convert-qiniu-ex qe)
source

copyclj

(copy src-bucket src-key dst-bucket dst-key & opts)

Copy a file

Copy a file
sourceraw docstring

create-authclj

(create-auth {:keys [access-key secret-key]})
source

def-threadlocal-varcljmacro

(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.
sourceraw docstring

default-returnclj

source

deleteclj

(delete bucket key & opts)

Delete a file.

Delete a file.
sourceraw docstring

delete-custom-domainclj

(delete-custom-domain domain)

delete custom domain

delete custom domain
sourceraw docstring

domain-listclj

(domain-list bucket)

Get CDN domains of bucket

Get CDN domains of bucket
sourceraw docstring

execclj

(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.
sourceraw docstring

exec-batchclj

(exec-batch bm ops op)
source

http-requestclj

(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.
sourceraw docstring

key->arrayclj

(key->array key)
source

list-bucketsclj

(list-buckets)

List all buckets

List all buckets
sourceraw docstring

make-authorizationclj

(make-authorization path)
source

mk-bucketclj

(mk-bucket bucket)

Create a bucket

Create a bucket
sourceraw docstring

moveclj

(move src-bucket src-key dst-bucket dst-key & opts)

Move a file

Move a file
sourceraw docstring

offline-custom-domain!clj

(offline-custom-domain! domain)

offline custom domain

offline custom domain
sourceraw docstring

online-custom-domain!clj

(online-custom-domain! domain)

online custom domain

online custom domain
sourceraw docstring

pfopclj

(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
sourceraw docstring

prefop-statusclj

(prefop-status id)
Retrieve pfop status.
See http://developer.qiniu.com/docs/v6/api/reference/fop/pfop/prefop.html
sourceraw docstring

private-bucketclj

(private-bucket bucket)
(private-bucket bucket private?)

Set a bucket to be private.

Set a bucket to be private.
sourceraw docstring

private-download-urlclj

(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.
sourceraw docstring

public-download-urlclj

(public-download-url domain key)

Create a download url for public file.

Create a download url for public file.
sourceraw docstring

publish-bucketclj

(publish-bucket bucket domain)

Publish bucket as public domain.

Publish bucket as public domain.
sourceraw docstring

qiniu-api-urlclj

source

refresh-bucket-cdnclj

(refresh-bucket-cdn urls dirs)
source

remove-bucketclj

(remove-bucket bucket)

Delete a bucket

Delete a bucket
sourceraw docstring

resolve-qiniu-excljmacro

(resolve-qiniu-ex & body)
source

rs-api-domainclj

source

set-config!clj

(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.
sourceraw docstring

set-custom-domain!clj

(set-custom-domain! domain bucket cert key platform geo protocol)

bind custom domain

bind custom domain 
sourceraw docstring

statclj

(stat bucket key & opts)

Stat a file.

Stat a file.
sourceraw docstring

stats-grainclj

source

traversal-file-list-iteratorclj

(traversal-file-list-iterator fli)
source

uploadclj

(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.
sourceraw docstring

upload-bucketclj

(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.
sourceraw docstring

uptokenclj

(uptoken
  bucket
  &
  {:keys [access-key secret-key expires mimeLimit persistentOps detectMime
          deadline endUser isPrefixalScope fsizeMin callbackBodyType returnBody
          saveKey callbackHost persistentPipeline callbackBody scope fileType
          persistentNotifyUrl fsizeLimit insertOnly returnUrl callbackUrl]
   :as opts
   :or {expires 3600}})
Create a uptoken for uploading file. see http://developer.qiniu.com/docs/v6/sdk/java-sdk.html#make-uptoken
sourceraw docstring

valid-stat-itemsclj

source

with-batchcljmacro

(with-batch & body)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close