Skip to content

Bigsy/s3-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s3-clj

Embedded fake s3 for clojure based on minio, just packaged to make it easy to use for mocking in clojure land

Usage

Clojars Project

Development:

(require 's3-clj.core)

;; Start a local s3 with default port:
(init-s3)

;; another call will halt the previous system:
(init-s3)

;; When you're done:
(halt-s3!)

Testing:

NOTE: these will halt running s3 instances

(require 'clojure.test)

(use-fixtures :once with-s3-fn)

(defn around-all
  [f]
  (with-s3-fn {optional config map}
                    f))

(use-fixtures :once around-all)


; You can also wrap ad-hoc code in init/halt:
(with-s3 {optional config map}
  do-something) 


;default config map options that can be changed and passed in
{:user "user"
 :password "password"
 :file-location "/tmp/minio"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published