在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:weavejester/clj-aws-s3开源软件地址:https://github.com/weavejester/clj-aws-s3开源编程语言:Clojure 100.0%开源软件介绍:clj-aws-s3DEPRECATION NOTICEThis project is DEPRECATED and UNMAINTAINED. A better alternative to this library is to use Amazonica. Alternatively, you're more than welcome to fork this project. IntroductionA Clojure library for accessing Amazon S3, based on the official AWS Java SDK. Although there are a few S3 clients for Clojure around, this library aims to provide a more complete implementation, with metadata, streams and protocols for uploading different types of data. Currently the library supports functions to create, list and delete buckets, to list, get, and put objects and their metadata, and to get and update the access control lists (ACLs) for buckets and objects. InstallAdd the following dependency to your
Example(require '[aws.sdk.s3 :as s3])
(def cred {:access-key "...", :secret-key "..."})
(s3/create-bucket cred "my-bucket")
(s3/put-object cred "my-bucket" "some-key" "some-value")
(s3/update-object-acl cred "my-bucket" "some-key" (s3/grant :all-users :read))
(println (slurp (:content (s3/get-object cred "my-bucket" "some-key")))) DocumentationLicenseCopyright © 2014 James Reeves Distributed under the Eclipse Public License, the same as Clojure. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论