(download-object conn bucket name localpath)
Download object to a local path.
Download object to a local path.
(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://docs.minio.io/docs/java-client-api-reference#presignedGetObject
returns a temporary download url for this object with 7day expiration see docs: https://docs.minio.io/docs/java-client-api-reference#presignedGetObject
(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)
returns presigned and named upload url for direct upload from the client see docs: https://docs.minio.io/docs/java-client-api-reference#presignedPutObject
returns presigned and named upload url for direct upload from the client see docs: https://docs.minio.io/docs/java-client-api-reference#presignedPutObject
(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://docs.minio.io/docs/java-client-api-reference#makeBucket
Creates a bucket with a name. Does nothing if one exists. Returns nil https://docs.minio.io/docs/java-client-api-reference#makeBucket
(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 See JAVA example: https://github.com/minio/minio-java/blob/master/examples/SetBucketPolicy.java bucket policy examples: https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html
sets bucket policy map, takes Clojure persistant map, serializes it to json See JAVA example: https://github.com/minio/minio-java/blob/master/examples/SetBucketPolicy.java bucket policy examples: https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close