(download-object conn bucket name localpath)
Download object to a local path. See Docs: https://www.alibabacloud.com/help/zh/doc-detail/84824.htm
Download object to a local path. See Docs: https://www.alibabacloud.com/help/zh/doc-detail/84824.htm
(exists? conn bucket-name subpath)
Returns true if the object exists
Returns true if the object exists
(get-download-url conn bucket name)
(get-download-url conn bucket name timeout)
Returns a temporary download url for this object with 7day expiration See docs: https://help.aliyun.com/document_detail/32016.html
Returns a temporary download url for this object with 7day expiration See docs: https://help.aliyun.com/document_detail/32016.html
(get-object conn {:keys [bucket name]})
(get-object conn bucket name)
Takes connection and a map of [bucket name] keys as returned by (put-object) or explicit arguments returns java.io.BufferedReader. Use clojure.java.io/copy to stream the bucket data files, or HTTP responses
Takes connection and a map of [bucket name] keys as returned by (put-object) or explicit arguments returns java.io.BufferedReader. Use clojure.java.io/copy to stream the bucket data files, or HTTP responses
(get-object-meta conn {:keys [bucket name]})
(get-object-meta conn bucket name)
Returns object metadata as clojure hash-map
Returns object metadata as clojure hash-map
(get-upload-url conn bucket name)
(get-upload-url conn bucket name timeout)
Returns presigned and named upload url for direct upload from the client See docs: https://help.aliyun.com/document_detail/32016.html You need to set Content-Type when you upload a file by js
Returns presigned and named upload url for direct upload from the client See docs: https://help.aliyun.com/document_detail/32016.html You need to set Content-Type when you upload a file by js
(list-objects conn bucket)
(list-objects conn bucket filter)
(list-objects conn bucket filter recursive)
(make-bucket conn name)
Creates a bucket with a name. Does nothing if one exists. Returns nil https://help.aliyun.com/document_detail/32012.html
Creates a bucket with a name. Does nothing if one exists. Returns nil https://help.aliyun.com/document_detail/32012.html
(put-object conn bucket file-name)
(put-object conn bucket upload-name source-file-name)
Uploads a file object to the bucket. Returns a map of bucket name and file name
Uploads a file object to the bucket. Returns a map of bucket name and file name
(remove-bucket! conn bucket-name)
Removes the bucket form the storage
Removes the bucket form the storage
(set-bucket-policy conn policy)
sets bucket policy map, takes Clojure persistant map, serializes it to json TODO: Any docs?
sets bucket policy map, takes Clojure persistant map, serializes it to json TODO: Any docs?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close