Skip to content

mdrobulis/minio-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minio-clj

Thin Clojure wrapper arround minio-java client library

Minio docs : #https://docs.minio.io minio-java API docs : #https://docs.minio.io/docs/java-client-api-reference

I've adopted clojure naming convention of dashes

Most functions have docstrings

Usage

Its just on github for now.

Uploading to Clojars soon

(def conn (connect))  ;;; returns demo connection to public minio server https://play.minio.io:9000 

(make-bucket conn "my.bucket" )  ;; creates a bucket, returns bucket name

(put-object conn "my.bucket" "photo.jpg") ; uploads a file, returns map of {:keys [bucket name]}

(def photo (get-objet conn "my.bucket" "photo.jpg")) ; returns Clojure  IBufferedReader.

;; so you can use it with spit/copy and other Clojure functions that take readers.

(spit "myDownloadedPhoto.jpg" photo)

License

Copyright © 2018 Martynas Drobulis

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Clojure Wrapper arround minio-java client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published