Updated version to 1.1.8.
[zs3.git] / package.lisp
blob4a6caa0862abf92e8ed1e87ac6070ce3ef887b8f
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 queries
48 (:export #:query-bucket
49 #:continue-bucket-query
50 #:bucket-name
51 #:keys
52 #:common-prefixes
53 #:prefix
54 #:marker
55 #:delimiter
56 #:truncatedp
57 #:last-modified
58 #:etag
59 #:size
60 #:owner)
61 ;; Objects
62 (:export #:get-object
63 #:get-vector
64 #:get-string
65 #:get-file
66 #:put-object
67 #:put-vector
68 #:put-string
69 #:put-file
70 #:put-stream
71 #:copy-object
72 #:delete-object
73 #:delete-objects
74 #:delete-all-objects
75 #:object-metadata)
76 ;; Access Control
77 (:export #:get-acl
78 #:put-acl
79 #:grant
80 #:acl-eqv
81 #:*all-users*
82 #:*aws-users*
83 #:*log-delivery*
84 #:acl-email
85 #:acl-person
86 #:me
87 #:make-public
88 #:make-private)
89 ;; Logging
90 (:export #:enable-logging-to
91 #:disable-logging-to
92 #:enable-logging
93 #:disable-logging
94 #:logging-setup)
95 ;; Misc.
96 (:export #:*use-ssl*
97 #:make-post-policy
98 #:head
99 #:authorized-url
100 #:resource-url)
101 ;; Util
102 (:export #:octet-vector
103 #:now+
104 #:now-
105 #:file-etag
106 #:parameters-alist
107 #:clear-redirects)
108 ;; Conditions
109 (:export #:slow-down
110 #:no-such-bucket
111 #:no-such-key
112 #:access-denied
113 #:signature-mismatch
114 #:precondition-failed
115 #:invalid-bucket-name
116 #:bucket-exists
117 #:too-many-buckets
118 #:ambiguous-grant
119 #:bucket-not-empty
120 #:invalid-logging-target
121 #:key-too-long
122 #:request-time-skewed
123 #:operation-aborted)
124 ;; Cloudfront distribution management
125 (:export #:status
126 #:origin-bucket
127 #:domain-name
128 #:cnames
129 #:default-root-object
130 #:logging-bucket
131 #:logging-prefix
132 #:enabledp
133 #:comment
134 ;; Queries & updates
135 #:all-distributions
136 #:create-distribution
137 #:delete-distribution
138 #:refresh
139 #:enable
140 #:disable
141 #:ensure-cname
142 #:remove-cname
143 #:set-comment
144 #:distributions-for-bucket
145 ;; Invalidations
146 #:invalidate-paths
147 ;; Conditions
148 #:distribution-error
149 #:distribution-error-type
150 #:distribution-error-code
151 #:distribution-error-http-status-code
152 #:distribution-error-detail
153 #:distribution-not-disabled
154 #:cname-already-exists
155 #:too-many-distributions)
156 (:shadow #:method))