openstack-swift 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/Gemfile.lock +1 -1
  2. data/doc/classes/Openstack.html +119 -0
  3. data/doc/classes/Openstack/Swift.html +137 -0
  4. data/doc/classes/Openstack/Swift/UnauthorizedError.html +111 -0
  5. data/doc/classes/Openstack/Swift/WebApi.html +185 -0
  6. data/doc/classes/Openstack/Swift/WebApi.src/M000001.html +21 -0
  7. data/doc/classes/Openstack/Swift/WebApi.src/M000002.html +24 -0
  8. data/doc/classes/Openstack/Swift/WebApi.src/M000003.html +20 -0
  9. data/doc/classes/Openstack/Swift/WebApi.src/M000004.html +20 -0
  10. data/doc/created.rid +1 -11
  11. data/doc/files/lib/openstack-swift/errors_rb.html +101 -0
  12. data/doc/files/lib/openstack-swift/version_rb.html +101 -0
  13. data/doc/files/lib/openstack-swift/web_api_rb.html +101 -0
  14. data/doc/files/lib/openstack-swift_rb.html +112 -0
  15. data/doc/files/spec/openstack-swift/web_api_spec_rb.html +131 -0
  16. data/doc/files/spec/spec_helper_rb.html +110 -0
  17. data/doc/fr_class_index.html +30 -0
  18. data/doc/fr_file_index.html +32 -0
  19. data/doc/fr_method_index.html +30 -0
  20. data/doc/index.html +20 -84
  21. data/doc/rdoc-style.css +208 -0
  22. data/lib/openstack-swift/client.rb +2 -2
  23. data/lib/openstack-swift/version.rb +1 -1
  24. data/openstack-swift-0.0.1.gem +0 -0
  25. metadata +81 -96
  26. data/doc/Gemfile.html +0 -100
  27. data/doc/Object.html +0 -177
  28. data/doc/Openstack.html +0 -162
  29. data/doc/Openstack/Swift.html +0 -182
  30. data/doc/Openstack/Swift/AuthenticationError.html +0 -151
  31. data/doc/Openstack/Swift/Client.html +0 -316
  32. data/doc/Openstack/Swift/UnauthorizedError.html +0 -147
  33. data/doc/Openstack/Swift/WebApi.html +0 -417
  34. data/doc/Rakefile.html +0 -98
  35. data/doc/images/brick.png +0 -0
  36. data/doc/images/brick_link.png +0 -0
  37. data/doc/images/bug.png +0 -0
  38. data/doc/images/bullet_black.png +0 -0
  39. data/doc/images/bullet_toggle_minus.png +0 -0
  40. data/doc/images/bullet_toggle_plus.png +0 -0
  41. data/doc/images/date.png +0 -0
  42. data/doc/images/find.png +0 -0
  43. data/doc/images/loadingAnimation.gif +0 -0
  44. data/doc/images/macFFBgHack.png +0 -0
  45. data/doc/images/package.png +0 -0
  46. data/doc/images/page_green.png +0 -0
  47. data/doc/images/page_white_text.png +0 -0
  48. data/doc/images/page_white_width.png +0 -0
  49. data/doc/images/plugin.png +0 -0
  50. data/doc/images/ruby.png +0 -0
  51. data/doc/images/tag_green.png +0 -0
  52. data/doc/images/wrench.png +0 -0
  53. data/doc/images/wrench_orange.png +0 -0
  54. data/doc/images/zoom.png +0 -0
  55. data/doc/js/darkfish.js +0 -116
  56. data/doc/js/jquery.js +0 -32
  57. data/doc/js/quicksearch.js +0 -114
  58. data/doc/js/thickbox-compressed.js +0 -10
  59. data/doc/lib/openstack-swift/client_rb.html +0 -52
  60. data/doc/lib/openstack-swift/errors_rb.html +0 -52
  61. data/doc/lib/openstack-swift/version_rb.html +0 -52
  62. data/doc/lib/openstack-swift/web_api_rb.html +0 -52
  63. data/doc/lib/openstack-swift_rb.html +0 -66
  64. data/doc/rdoc.css +0 -763
  65. data/doc/spec/openstack-swift/client_spec_rb.html +0 -54
  66. data/doc/spec/openstack-swift/web_api_spec_rb.html +0 -54
  67. data/doc/spec/spec_helper_rb.html +0 -58
@@ -1,316 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
-
8
- <title>Class: Openstack::Swift::Client</title>
9
-
10
- <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
- <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
-
17
- </head>
18
- <body id="top" class="class">
19
-
20
- <div id="metadata">
21
- <div id="home-metadata">
22
- <div id="home-section" class="section">
23
- <h3 class="section-header">
24
- <a href="../../index.html">Home</a>
25
- <a href="../../index.html#classes">Classes</a>
26
- <a href="../../index.html#methods">Methods</a>
27
- </h3>
28
- </div>
29
- </div>
30
-
31
- <div id="file-metadata">
32
- <div id="file-list-section" class="section">
33
- <h3 class="section-header">In Files</h3>
34
- <div class="section-body">
35
- <ul>
36
-
37
- <li><a href="../../lib/openstack-swift/client_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/openstack-swift/client.rb">lib/openstack-swift/client.rb</a></li>
39
-
40
- </ul>
41
- </div>
42
- </div>
43
-
44
-
45
- </div>
46
-
47
- <div id="class-metadata">
48
-
49
- <!-- Parent Class -->
50
- <div id="parent-class-section" class="section">
51
- <h3 class="section-header">Parent</h3>
52
-
53
- <p class="link"><a href="../../Object.html">Object</a></p>
54
-
55
- </div>
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
- <!-- Method Quickref -->
64
- <div id="method-list-section" class="section">
65
- <h3 class="section-header">Methods</h3>
66
- <ul class="link-list">
67
-
68
- <li><a href="#method-i-account_info">#account_info</a></li>
69
-
70
- <li><a href="#method-i-authenticate">#authenticate</a></li>
71
-
72
- <li><a href="#method-i-download">#download</a></li>
73
-
74
- <li><a href="#method-i-upload">#upload</a></li>
75
-
76
- </ul>
77
- </div>
78
-
79
-
80
-
81
- </div>
82
-
83
- <div id="project-metadata">
84
-
85
-
86
- <div id="fileindex-section" class="section project-section">
87
- <h3 class="section-header">Files</h3>
88
- <ul>
89
-
90
- <li class="file"><a href="../../Gemfile.html">Gemfile</a></li>
91
-
92
- <li class="file"><a href="../../Rakefile.html">Rakefile</a></li>
93
-
94
- </ul>
95
- </div>
96
-
97
-
98
- <div id="classindex-section" class="section project-section">
99
- <h3 class="section-header">Class/Module Index
100
- <span class="search-toggle"><img src="../../images/find.png"
101
- height="16" width="16" alt="[+]"
102
- title="show/hide quicksearch" /></span></h3>
103
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
104
- <fieldset>
105
- <legend>Quicksearch</legend>
106
- <input type="text" name="quicksearch" value=""
107
- class="quicksearch-field" />
108
- </fieldset>
109
- </form>
110
-
111
- <ul class="link-list">
112
-
113
- <li><a href="../../Openstack.html">Openstack</a></li>
114
-
115
- <li><a href="../../Openstack/Swift.html">Openstack::Swift</a></li>
116
-
117
- <li><a href="../../Openstack/Swift/AuthenticationError.html">Openstack::Swift::AuthenticationError</a></li>
118
-
119
- <li><a href="../../Openstack/Swift/Client.html">Openstack::Swift::Client</a></li>
120
-
121
- <li><a href="../../Openstack/Swift/WebApi.html">Openstack::Swift::WebApi</a></li>
122
-
123
- <li><a href="../../Object.html">Object</a></li>
124
-
125
- </ul>
126
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
127
- </div>
128
-
129
-
130
- </div>
131
- </div>
132
-
133
- <div id="documentation">
134
- <h1 class="class">Openstack::Swift::Client</h1>
135
-
136
- <div id="description" class="description">
137
-
138
- </div><!-- description -->
139
-
140
-
141
-
142
-
143
- <div id="5Buntitled-5D" class="documentation-section">
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
- <!-- Methods -->
153
-
154
- <div id="public-instance-method-details" class="method-section section">
155
- <h3 class="section-header">Public Instance Methods</h3>
156
-
157
-
158
- <div id="account_info-method" class="method-detail ">
159
- <a name="method-i-account_info"></a>
160
-
161
-
162
- <div class="method-heading">
163
- <span class="method-name">account_info</span><span
164
- class="method-args">()</span>
165
- <span class="method-click-advice">click to toggle source</span>
166
- </div>
167
-
168
-
169
- <div class="method-description">
170
-
171
- <p>Returns the following informations about the account:</p>
172
-
173
- <pre>bytes_used: Number of bytes used by this account
174
- object_count: Number of objects that this account have allocated
175
- container_count: Number of container</pre>
176
-
177
-
178
-
179
- <div class="method-source-code" id="account_info-source">
180
- <pre>
181
- <span class="ruby-comment"># File lib/openstack-swift/client.rb, line 21</span>
182
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">account_info</span>
183
- <span class="ruby-constant">Openstack</span><span class="ruby-operator">::</span><span class="ruby-constant">Swift</span><span class="ruby-operator">::</span><span class="ruby-constant">WebApi</span>.<span class="ruby-identifier">account</span>(<span class="ruby-ivar">@url</span>, <span class="ruby-ivar">@token</span>)
184
- <span class="ruby-keyword">end</span></pre>
185
- </div><!-- account_info-source -->
186
-
187
- </div>
188
-
189
-
190
-
191
-
192
- </div><!-- account_info-method -->
193
-
194
-
195
- <div id="authenticate-method" class="method-detail ">
196
- <a name="method-i-authenticate"></a>
197
-
198
-
199
- <div class="method-heading">
200
- <span class="method-name">authenticate</span><span
201
- class="method-args">(proxy, user, password)</span>
202
- <span class="method-click-advice">click to toggle source</span>
203
- </div>
204
-
205
-
206
- <div class="method-description">
207
-
208
- <p>Authentication method It stores the authentication url and token for future
209
- commands Avoiding to request a new token for each request</p>
210
-
211
-
212
-
213
- <div class="method-source-code" id="authenticate-source">
214
- <pre>
215
- <span class="ruby-comment"># File lib/openstack-swift/client.rb, line 7</span>
216
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">authenticate</span>(<span class="ruby-identifier">proxy</span>, <span class="ruby-identifier">user</span>, <span class="ruby-identifier">password</span>)
217
- <span class="ruby-ivar">@url</span>, <span class="ruby-identifier">_</span>, <span class="ruby-ivar">@token</span> = <span class="ruby-constant">Openstack</span><span class="ruby-operator">::</span><span class="ruby-constant">Swift</span><span class="ruby-operator">::</span><span class="ruby-constant">WebApi</span>.<span class="ruby-identifier">auth</span>(<span class="ruby-identifier">proxy</span>, <span class="ruby-identifier">user</span>, <span class="ruby-identifier">password</span>)
218
-
219
- <span class="ruby-keyword">if</span> <span class="ruby-ivar">@url</span>.<span class="ruby-identifier">blank?</span> <span class="ruby-keyword">or</span> <span class="ruby-ivar">@token</span>.<span class="ruby-identifier">blank?</span>
220
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">AuthenticationError</span>
221
- <span class="ruby-keyword">else</span>
222
- <span class="ruby-keyword">true</span>
223
- <span class="ruby-keyword">end</span>
224
- <span class="ruby-keyword">end</span></pre>
225
- </div><!-- authenticate-source -->
226
-
227
- </div>
228
-
229
-
230
-
231
-
232
- </div><!-- authenticate-method -->
233
-
234
-
235
- <div id="download-method" class="method-detail ">
236
- <a name="method-i-download"></a>
237
-
238
-
239
- <div class="method-heading">
240
- <span class="method-name">download</span><span
241
- class="method-args">(container, object)</span>
242
- <span class="method-click-advice">click to toggle source</span>
243
- </div>
244
-
245
-
246
- <div class="method-description">
247
-
248
- <p>This method downloads a object from a given container</p>
249
-
250
-
251
-
252
- <div class="method-source-code" id="download-source">
253
- <pre>
254
- <span class="ruby-comment"># File lib/openstack-swift/client.rb, line 31</span>
255
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">download</span>(<span class="ruby-identifier">container</span>, <span class="ruby-identifier">object</span>)
256
- <span class="ruby-constant">Openstack</span><span class="ruby-operator">::</span><span class="ruby-constant">Swift</span><span class="ruby-operator">::</span><span class="ruby-constant">WebApi</span>.<span class="ruby-identifier">download_object</span>(<span class="ruby-ivar">@url</span>, <span class="ruby-ivar">@token</span>, <span class="ruby-identifier">container</span>, <span class="ruby-identifier">object</span>)
257
- <span class="ruby-keyword">end</span></pre>
258
- </div><!-- download-source -->
259
-
260
- </div>
261
-
262
-
263
-
264
-
265
- </div><!-- download-method -->
266
-
267
-
268
- <div id="upload-method" class="method-detail ">
269
- <a name="method-i-upload"></a>
270
-
271
-
272
- <div class="method-heading">
273
- <span class="method-name">upload</span><span
274
- class="method-args">(container, file_path)</span>
275
- <span class="method-click-advice">click to toggle source</span>
276
- </div>
277
-
278
-
279
- <div class="method-description">
280
-
281
- <p>This method uploads a file to a given container</p>
282
-
283
-
284
-
285
- <div class="method-source-code" id="upload-source">
286
- <pre>
287
- <span class="ruby-comment"># File lib/openstack-swift/client.rb, line 26</span>
288
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">upload</span>(<span class="ruby-identifier">container</span>, <span class="ruby-identifier">file_path</span>)
289
- <span class="ruby-constant">Openstack</span><span class="ruby-operator">::</span><span class="ruby-constant">Swift</span><span class="ruby-operator">::</span><span class="ruby-constant">WebApi</span>.<span class="ruby-identifier">upload_object</span>(<span class="ruby-ivar">@url</span>, <span class="ruby-ivar">@token</span>, <span class="ruby-identifier">container</span>, <span class="ruby-identifier">file_path</span>)
290
- <span class="ruby-keyword">end</span></pre>
291
- </div><!-- upload-source -->
292
-
293
- </div>
294
-
295
-
296
-
297
-
298
- </div><!-- upload-method -->
299
-
300
-
301
- </div><!-- public-instance-method-details -->
302
-
303
- </div><!-- 5Buntitled-5D -->
304
-
305
-
306
- </div><!-- documentation -->
307
-
308
- <div id="validator-badges">
309
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
310
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
311
- Rdoc Generator</a> 2</small>.</p>
312
- </div>
313
-
314
- </body>
315
- </html>
316
-
@@ -1,147 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
-
8
- <title>Class: Openstack::Swift::UnauthorizedError</title>
9
-
10
- <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
- <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
-
17
- </head>
18
- <body id="top" class="class">
19
-
20
- <div id="metadata">
21
- <div id="home-metadata">
22
- <div id="home-section" class="section">
23
- <h3 class="section-header">
24
- <a href="../../index.html">Home</a>
25
- <a href="../../index.html#classes">Classes</a>
26
- <a href="../../index.html#methods">Methods</a>
27
- </h3>
28
- </div>
29
- </div>
30
-
31
- <div id="file-metadata">
32
- <div id="file-list-section" class="section">
33
- <h3 class="section-header">In Files</h3>
34
- <div class="section-body">
35
- <ul>
36
-
37
- <li><a href="../../lib/openstack-swift/errors_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/openstack-swift/errors.rb">lib/openstack-swift/errors.rb</a></li>
39
-
40
- </ul>
41
- </div>
42
- </div>
43
-
44
-
45
- </div>
46
-
47
- <div id="class-metadata">
48
-
49
- <!-- Parent Class -->
50
- <div id="parent-class-section" class="section">
51
- <h3 class="section-header">Parent</h3>
52
-
53
- <p class="link">Exception</p>
54
-
55
- </div>
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
- </div>
66
-
67
- <div id="project-metadata">
68
-
69
-
70
- <div id="fileindex-section" class="section project-section">
71
- <h3 class="section-header">Files</h3>
72
- <ul>
73
-
74
- <li class="file"><a href="../../Gemfile.html">Gemfile</a></li>
75
-
76
- <li class="file"><a href="../../Rakefile.html">Rakefile</a></li>
77
-
78
- </ul>
79
- </div>
80
-
81
-
82
- <div id="classindex-section" class="section project-section">
83
- <h3 class="section-header">Class/Module Index
84
- <span class="search-toggle"><img src="../../images/find.png"
85
- height="16" width="16" alt="[+]"
86
- title="show/hide quicksearch" /></span></h3>
87
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
88
- <fieldset>
89
- <legend>Quicksearch</legend>
90
- <input type="text" name="quicksearch" value=""
91
- class="quicksearch-field" />
92
- </fieldset>
93
- </form>
94
-
95
- <ul class="link-list">
96
-
97
- <li><a href="../../Openstack.html">Openstack</a></li>
98
-
99
- <li><a href="../../Openstack/Swift.html">Openstack::Swift</a></li>
100
-
101
- <li><a href="../../Openstack/Swift/UnauthorizedError.html">Openstack::Swift::UnauthorizedError</a></li>
102
-
103
- <li><a href="../../Openstack/Swift/WebApi.html">Openstack::Swift::WebApi</a></li>
104
-
105
- <li><a href="../../Object.html">Object</a></li>
106
-
107
- </ul>
108
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
109
- </div>
110
-
111
-
112
- </div>
113
- </div>
114
-
115
- <div id="documentation">
116
- <h1 class="class">Openstack::Swift::UnauthorizedError</h1>
117
-
118
- <div id="description" class="description">
119
-
120
- </div><!-- description -->
121
-
122
-
123
- <div id="5Buntitled-5D" class="documentation-section">
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
- <!-- Methods -->
133
-
134
- </div><!-- 5Buntitled-5D -->
135
-
136
-
137
- </div><!-- documentation -->
138
-
139
- <div id="validator-badges">
140
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
141
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
142
- Rdoc Generator</a> 2</small>.</p>
143
- </div>
144
-
145
- </body>
146
- </html>
147
-