Compare commits
7 Commits
6
...
test-githu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d0587a6e2 | ||
| e2f0e718eb | |||
| 0f5aedbf22 | |||
|
|
8fbc5a540e | ||
|
|
887319ad05 | ||
| 7b32156467 | |||
| f1f2e2a663 |
22
LICENSE
Normal file
22
LICENSE
Normal file
@@ -0,0 +1,22 @@
|
||||
Copyright (c) 2011-2013, Thomas Hintz
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -6,3 +6,5 @@
|
||||
(release "3")
|
||||
(release "4")
|
||||
(release "5")
|
||||
(release "6")
|
||||
(release "7")
|
||||
@@ -111,9 +111,6 @@
|
||||
(reader-thunk read-string)
|
||||
(content-type "application/x-www-form-urlencoded")
|
||||
(content-length 0))
|
||||
;(handle-exceptions
|
||||
; exn
|
||||
; ((condition-property-accessor 'client-error 'body) exn)
|
||||
(with-input-from-request
|
||||
(aws-request bucket path verb no-auth: no-auth content-type: content-type content-length: content-length)
|
||||
body
|
||||
@@ -155,14 +152,6 @@
|
||||
|
||||
;;; api
|
||||
|
||||
(define-syntax with-bucket
|
||||
(syntax-rules ()
|
||||
((with-bucket bucket (func p1 ...))
|
||||
(func bucket p1 ...))
|
||||
((with-bucket bucket exp body ...)
|
||||
(begin (with-bucket bucket exp)
|
||||
(with-bucket bucket body ...)))))
|
||||
|
||||
(define (list-buckets)
|
||||
(perform-aws-request sxpath: '(x:ListAllMyBucketsResult x:Buckets x:Bucket x:Name *text*)))
|
||||
|
||||
@@ -187,7 +176,7 @@
|
||||
content-length: object-length no-xml: #t))
|
||||
|
||||
(define (put-string! bucket key string)
|
||||
(put-object! bucket key (lambda () string) (string-length string) "text/plain"))
|
||||
(put-object! bucket key (lambda () (display string)) (string-length string) "text/plain"))
|
||||
|
||||
(define (put-sexp! bucket key sexp)
|
||||
(let-values (((res request-uri response) (put-string! bucket key (->string sexp))))
|
||||
|
||||
@@ -11,5 +11,5 @@
|
||||
; Files to install for your extension:
|
||||
'("amazon-s3.o" "amazon-s3.so" "amazon-s3.import.so")
|
||||
; Assoc list with properties for your extension:
|
||||
'((version 5)
|
||||
'((version 7)
|
||||
(static "amazon-s3.o"))) ;; for static linking
|
||||
Reference in New Issue
Block a user