Created
February 25, 2022 14:16
-
-
Save pjstadig/4c81f294958990e80dbed4aaf31258fa to your computer and use it in GitHub Desktop.
Protocol + client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns stadig.storage.s3 | |
(:require | |
[aws.sdk.s3 :as s3] | |
[stadig.storage.protocol :as proto])) | |
(defrecord S3Storage | |
[access-key secret-key] | |
proto/IStorage | |
(get [this bucket key] | |
(s3/get-object this bucket key)) | |
(put [this bucket key value] | |
(s3/put-object this bucket key value)) | |
(delete [this bucket key] | |
(s3/delete-object this bucket key)) | |
(close [this])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment