Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s3-util

Some utility functions for working with Amazon S3. Uses clj-aws-s3 underneath. This is a work in progress.

Usage

Current leiningen dependency:

[s3-util "0.1.0-SNAPSHOT"]

Right now there are only a couple of functions:

(def cred {:access-key "...", :secret-key "..."})

;; creates or overwrites "some-key" with "some-value" in "my-bucket"
;; "my-bucket" is automatically created if it does not already exist

(spit cred "my-bucket" "some-key" "some-value")


;; creates or overwrites key-value pairs in "my-bucket" using the
;; key-value pairs in the supplied map. "my-bucket" is automatically
;; created if it does not already exist

(spit-map cred "my-bucket" {"some-key" "some-value"
                            "another-key" "another-value"})

License

Copyright © 2013 Greg Phillips

Distributed under the Eclipse Public License, the same as Clojure.

About

Some utility functions for working with Amazon S3 in Clojure.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages