Alex Auvolat
5b1117e582
New model for buckets
2022-01-04 12:45:46 +01:00
trinity-1686a
c4ac8835d3
add proper request router for s3 api ( #163 )
...
fix #161
Current request router was organically grown, and is getting messier and messier with each addition.
This router cover exaustively existing API endpoints (with exceptions listed in [#161(comment)](https://git.deuxfleurs.fr/Deuxfleurs/garage/issues/161#issuecomment-1773 ) either because new and old api endpoint can't feasabily be differentied, or it's more lambda than s3).
Co-authored-by: Trinity Pointard <trinity.pointard@gmail.com >
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/163
Reviewed-by: Alex <alex@adnab.me >
Co-authored-by: trinity-1686a <trinity.pointard@gmail.com >
Co-committed-by: trinity-1686a <trinity.pointard@gmail.com >
2021-12-06 15:17:47 +01:00
Alex Auvolat
f3a097abdf
WIP: try to fix #93 , and improve S3 ListObjects (v1 and v2) API calls
2021-10-11 11:15:47 +02:00
Alex Auvolat
6ccffc3162
Improved XML serialization
...
- Use quick_xml and serde for all XML response returned by the S3 API.
- Include tests for all structs used to generate XML
- Remove old manual XML escaping function which was unsafe
2021-05-06 22:37:15 +02:00
Trinity Pointard
84856e84e5
fix clippy warnings on api
2021-05-03 22:11:41 +02:00
Alex Auvolat
3bf2df622a
Time and metadata improvements
2021-03-15 16:21:41 +01:00
Alex Auvolat
bdcbdd1cd8
Fix list API bug
2021-03-15 14:46:37 +01:00
Alex Auvolat
40763fd749
Cargo fmt
2021-02-23 18:46:25 +01:00
Alex Auvolat
1de96248e0
add application/xml header and missing xml escapes
2021-02-19 23:40:18 +01:00
Alex Auvolat
55a2a636ca
Implement ListObjectsV2
2021-02-19 16:44:06 +01:00
Alex Auvolat
36814be447
Fix S3 ListObjects result and replace println!s by debug!s
2021-01-16 16:05:54 +01:00
Alex Auvolat
022b386a50
Improved compatibility on list API call
2020-12-06 15:39:03 +01:00
Alex Auvolat
e9fd265ce6
Slight refactoring to make things clearer with DeletedFilter
2020-11-20 20:11:04 +01:00
Alex Auvolat
7d7b9e95a9
Simplify and_then(Some) as map() and remove move
2020-11-11 16:36:48 +01:00
Quentin
5a5592c176
Replace with option syntaxic sugar
2020-11-11 16:12:42 +01:00
Alex Auvolat
44dba0e53c
cargo fmt
2020-07-08 17:34:37 +02:00
Alex Auvolat
64a6eda0d2
Migrate S3 api to use new model
2020-07-08 17:33:24 +02:00
Alex Auvolat
f22ecb60a8
Update to Hyper 0.13.6 that accepts non-Sync streams in wrap_stream.
...
Simplifies code and makes it possible to publish on crates.io
2020-07-07 17:15:53 +02:00
Alex Auvolat
bec26a1312
Rename garage_core to garage_model
2020-07-07 13:59:22 +02:00
Alex Auvolat
b46a7788d1
Implement HTTP ranges in get
2020-05-04 13:09:23 +00:00
Alex Auvolat
d867bbcfb5
Implement DeleteObjects
2020-05-01 15:52:35 +00:00
Alex Auvolat
3324971701
Slightly improved S3 compatibility
...
- ListBucket does not require any of the parameters (delimiter,
prefix, max-keys, etc)
- URLs are properly percent_decoded
- PutObject and DeleteObject calls now answer correctly
(empty body, version id in the x-amz-version-id: header)
2020-05-01 14:30:50 +00:00
Alex Auvolat
3686f100b7
Compatibility fixes
2020-04-28 10:35:04 +00:00
Alex Auvolat
0957d0fdfa
Work on API
2020-04-28 10:18:14 +00:00
Alex Auvolat
81ecc4999e
Implement multipart uploads
2020-04-26 20:39:32 +00:00
Alex Auvolat
9cb870f950
Prepare for multipart uploads
2020-04-26 18:55:13 +00:00
Alex Auvolat
ea7e4748ed
S3 compatibility: fix bucket listing and HEAD and PUT on bucket
2020-04-26 16:22:33 +00:00
Alex Auvolat
e3203f998b
Remove leading / in keys; better delimiter handling
2020-04-24 22:28:15 +02:00
Alex Auvolat
be4831d768
Less verbosity
2020-04-24 19:27:27 +00:00
Alex Auvolat
a52db67954
xml escape
2020-04-24 18:56:00 +00:00
Alex Auvolat
91b2d1fcc1
Some basic S3 functionnality
2020-04-24 18:47:11 +00:00