Liking cljdoc? Tell your friends :D

remote-fs.adapter.oss


connectclj

(connect endpoint access-key secret-key)
source

download-objectclj

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

get-download-urlclj

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

get-objectclj

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

get-object-metaclj

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

get-upload-urlclj

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

initclj

(init)
source

list-bucketsclj

(list-buckets conn)

Returns maps

Returns maps 
sourceraw docstring

list-objectsclj

(list-objects conn bucket)
(list-objects conn bucket filter)
(list-objects conn bucket filter recursive)
sourceraw docstring

make-bucketclj

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

nowclj

(now)
source

put-objectclj

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

remove-bucket!clj

(remove-bucket! conn bucket-name)

Removes the bucket form the storage

Removes the bucket form the storage
sourceraw docstring

remove-object!clj

(remove-object! conn bucket object)
source

set-bucket-policyclj

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

UUIDclj

(UUID)
source

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

× close