Include more info in signature mismatch error reports.
[zs3.git] / package.lisp
blob856ca1b7c4faaf65198b95b3339ad64fe7d2f3d5
1 ;;;;
2 ;;;; Copyright (c) 2008 Zachary Beane, All Rights Reserved
3 ;;;;
4 ;;;; Redistribution and use in source and binary forms, with or without
5 ;;;; modification, are permitted provided that the following conditions
6 ;;;; are met:
7 ;;;;
8 ;;;; * Redistributions of source code must retain the above copyright
9 ;;;; notice, this list of conditions and the following disclaimer.
10 ;;;;
11 ;;;; * Redistributions in binary form must reproduce the above
12 ;;;; copyright notice, this list of conditions and the following
13 ;;;; disclaimer in the documentation and/or other materials
14 ;;;; provided with the distribution.
15 ;;;;
16 ;;;; THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESSED
17 ;;;; OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 ;;;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 ;;;; ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
20 ;;;; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 ;;;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
22 ;;;; GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 ;;;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 ;;;; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 ;;;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 ;;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 ;;;;
28 ;;;; package.lisp
30 (defpackage #:zs3
31 (:use #:cl)
32 ;; In documentation order and grouping:
33 ;; Credentials
34 (:export #:*credentials*
35 #:access-key
36 #:secret-key
37 #:file-credentials)
38 ;; Buckets
39 (:export #:all-buckets
40 #:creation-date
41 #:name
42 #:all-keys
43 #:bucket-exists-p
44 #:create-bucket
45 #:delete-bucket
46 #:bucket-location
47 #:bucket-lifecycle
48 #:lifecycle-rule)
49 ;; Bucket queries
50 (:export #:query-bucket
51 #:continue-bucket-query
52 #:bucket-name
53 #:keys
54 #:common-prefixes
55 #:prefix
56 #:marker
57 #:delimiter
58 #:truncatedp
59 #:last-modified
60 #:etag
61 #:size
62 #:owner
63 #:storage-class)
64 ;; Objects
65 (:export #:get-object
66 #:get-vector
67 #:get-string
68 #:get-file
69 #:put-object
70 #:put-vector
71 #:put-string
72 #:put-file
73 #:put-stream
74 #:copy-object
75 #:delete-object
76 #:delete-objects
77 #:delete-all-objects
78 #:object-metadata
79 #:set-storage-class
80 #:restore-object
81 #:object-restoration-status)
82 ;; Access Control
83 (:export #:get-acl
84 #:put-acl
85 #:grant
86 #:acl-eqv
87 #:*all-users*
88 #:*aws-users*
89 #:*log-delivery*
90 #:acl-email
91 #:acl-person
92 #:me
93 #:make-public
94 #:make-private)
95 ;; Logging
96 (:export #:enable-logging-to
97 #:disable-logging-to
98 #:enable-logging
99 #:disable-logging
100 #:logging-setup)
101 ;; Misc.
102 (:export #:*use-ssl*
103 #:make-post-policy
104 #:head
105 #:authorized-url
106 #:resource-url)
107 ;; Util
108 (:export #:octet-vector
109 #:now+
110 #:now-
111 #:file-etag
112 #:parameters-alist
113 #:clear-redirects)
114 ;; Conditions
115 (:export #:slow-down
116 #:no-such-bucket
117 #:no-such-key
118 #:access-denied
119 #:signature-mismatch
120 #:precondition-failed
121 #:invalid-bucket-name
122 #:bucket-exists
123 #:too-many-buckets
124 #:ambiguous-grant
125 #:bucket-not-empty
126 #:invalid-logging-target
127 #:key-too-long
128 #:request-time-skewed
129 #:operation-aborted
130 #:no-such-lifecycle-configuration
131 #:restore-already-in-progress)
132 ;; Cloudfront distribution management
133 (:export #:status
134 #:origin-bucket
135 #:domain-name
136 #:cnames
137 #:default-root-object
138 #:logging-bucket
139 #:logging-prefix
140 #:enabledp
141 #:comment
142 ;; Queries & updates
143 #:all-distributions
144 #:create-distribution
145 #:delete-distribution
146 #:refresh
147 #:enable
148 #:disable
149 #:ensure-cname
150 #:remove-cname
151 #:set-comment
152 #:distributions-for-bucket
153 ;; Invalidations
154 #:invalidate-paths
155 ;; Conditions
156 #:distribution-error
157 #:distribution-error-type
158 #:distribution-error-code
159 #:distribution-error-http-status-code
160 #:distribution-error-detail
161 #:distribution-not-disabled
162 #:cname-already-exists
163 #:too-many-distributions)
164 (:shadow #:method)
165 (:shadowing-import-from #:cxml
166 #:with-element
167 #:text
168 #:attribute
169 #:attribute*))