aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix clippyAlex Auvolat2022-06-062-11/+9
|
* Simplify lmdb adapter (one less indirection)Alex Auvolat2022-06-061-27/+6
|
* WhoopsAlex Auvolat2022-06-062-2/+2
|
* Small syntax changesAlex Auvolat2022-06-066-32/+18
|
* Safe choice: revert "Update rmp-serde"Alex Auvolat2022-06-0617-46/+30
| | | | This reverts commit 16e0a655d0d01e3871aee81a0a9660102d6df74e.
* Safe choice: return Vec<u8> and not some fancy zero-copy typeAlex Auvolat2022-06-069-205/+49
|
* Fix more sqlite deadlocksAlex Auvolat2022-06-062-74/+79
|
* fixesAlex Auvolat2022-06-066-12/+33
|
* Integrate LMDB with restAlex Auvolat2022-06-034-3/+58
|
* Implement iterator for LMDBAlex Auvolat2022-06-031-8/+98
|
* LMDB: use Heed wrapper (much more complete)Alex Auvolat2022-06-034-76/+157
|
* Start LMDB adapter, with fixed semanticsAlex Auvolat2022-06-0312-85/+395
|
* Update rmp-serdeAlex Auvolat2022-06-0317-30/+46
|
* small fixesAlex Auvolat2022-06-032-6/+3
|
* whoopsAlex Auvolat2022-06-032-2/+17
|
* Fix block repair to not deadlock with sqliteAlex Auvolat2022-06-031-0/+8
|
* fix clipy lintAlex Auvolat2022-06-031-5/+4
|
* Slightly prettier codeAlex Auvolat2022-06-035-78/+42
|
* Garage works on sqlite, but it's a hackAlex Auvolat2022-06-038-34/+119
|
* Conversion utilityAlex Auvolat2022-06-036-78/+131
|
* Fix most clippy lintsAlex Auvolat2022-06-038-85/+90
|
* Change value type to be a dyn thingAlex Auvolat2022-06-0311-45/+166
|
* Drop laterAlex Auvolat2022-06-032-14/+16
|
* Just refactor a bitAlex Auvolat2022-06-021-71/+45
|
* Horrible implementation of range for sqliteAlex Auvolat2022-06-021-2/+92
|
* Sqlite iter with unsafe codeAlex Auvolat2022-06-028-103/+162
|
* Add back SendAlex Auvolat2022-06-021-1/+1
|
* Begin sqlite adapterAlex Auvolat2022-06-026-102/+498
|
* Use Cell instead of ArcSwapAlex Auvolat2022-06-024-43/+27
|
* Complete sled abstractionAlex Auvolat2022-06-022-17/+133
|
* Do not put sled in garage's cargo.tomlAlex Auvolat2022-06-024-5/+6
|
* Adapt Garage to use new DB abstractionAlex Auvolat2022-06-0226-214/+355
|
* Implement iter() and range() on dbAlex Auvolat2022-06-023-15/+98
|
* First iteration of a generic DB layerAlex Auvolat2022-06-027-0/+409
|
* Fix garage_version() now that GIT_VERSION is read in crate garage_rpcv0.7.2.1Alex Auvolat2022-06-021-1/+1
|
* Fix Content-Type headers for {admin,k2v} errors and admin responsesfix/admin-api-content-typeAlex Auvolat2022-05-258-43/+30
| | | | Fix #315
* Fixes to S3 compatibility page (#314)Alex2022-05-251-29/+48
| | | | | | | | | Mention PostObject is implemented, fix english mistakes Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/314 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* Update Ceph S3 endpoints compatibilityQuentin Dufour2022-05-251-28/+36
|
* Shorter page titledoc/admin-apiAlex Auvolat2022-05-241-1/+1
|
* Add lost content for Restic with GarageAlex Auvolat2022-05-241-0/+55
| | | | Suggested-by: Quentin <quentin@deuxfleurs.fr>
* Add documentation for new Admin API and a few infos on K2VAlex Auvolat2022-05-243-7/+116
|
* K2V client improvements (#307)v0.7.2Alex2022-05-246-6/+65
| | | | | | | | | | | - [x] Better distinguish error types - [x] Parse error messages received from server - [x] Remove `src/` folder layer, we don't have that for other crates Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/307 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* First version of admin API (#298)Alex2022-05-2465-984/+3251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Spec:** - [x] Start writing - [x] Specify all layout endpoints - [x] Specify all endpoints for operations on keys - [x] Specify all endpoints for operations on key/bucket permissions - [x] Specify all endpoints for operations on buckets - [x] Specify all endpoints for operations on bucket aliases View rendered spec at <https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/admin-api/doc/drafts/admin-api.md> **Code:** - [x] Refactor code for admin api to use common api code that was created for K2V **General endpoints:** - [x] Metrics - [x] GetClusterStatus - [x] ConnectClusterNodes - [x] GetClusterLayout - [x] UpdateClusterLayout - [x] ApplyClusterLayout - [x] RevertClusterLayout **Key-related endpoints:** - [x] ListKeys - [x] CreateKey - [x] ImportKey - [x] GetKeyInfo - [x] UpdateKey - [x] DeleteKey **Bucket-related endpoints:** - [x] ListBuckets - [x] CreateBucket - [x] GetBucketInfo - [x] DeleteBucket - [x] PutBucketWebsite - [x] DeleteBucketWebsite **Operations on key/bucket permissions:** - [x] BucketAllowKey - [x] BucketDenyKey **Operations on bucket aliases:** - [x] GlobalAliasBucket - [x] GlobalUnaliasBucket - [x] LocalAliasBucket - [x] LocalUnaliasBucket **And also:** - [x] Separate error type for the admin API (this PR includes a quite big refactoring of error handling) - [x] Add management of website access - [ ] Check that nothing is missing wrt what can be done using the CLI - [ ] Improve formatting of the spec - [x] Make sure everyone is cool with the API design Fix #231 Fix #295 Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/298 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* Add a K2V client library and CLI (#303)trinity-1686a2022-05-1814-199/+1721
| | | | | | | | | lib.rs could use getting split in modules, but I'm not sure how exactly Co-authored-by: trinity-1686a <trinity@deuxfleurs.fr> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/303 Co-authored-by: trinity-1686a <trinity.pointard@gmail.com> Co-committed-by: trinity-1686a <trinity.pointard@gmail.com>
* K2V: Fix `end` parameter and add tests (fix #305)fix-k2v-305Alex Auvolat2022-05-172-2/+93
|
* Make background runner terminate correctlyAlex Auvolat2022-05-171-15/+22
|
* Fix ReadIndex spec and add JSON5 remark to docfix-k2v-docAlex Auvolat2022-05-161-7/+44
|
* First implementation of K2V (#293)Alex2022-05-1083-1228/+6493
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Specification:** View spec at [this URL](https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/k2v/doc/drafts/k2v-spec.md) - [x] Specify the structure of K2V triples - [x] Specify the DVVS format used for causality detection - [x] Specify the K2V index (just a counter of number of values per partition key) - [x] Specify single-item endpoints: ReadItem, InsertItem, DeleteItem - [x] Specify index endpoint: ReadIndex - [x] Specify multi-item endpoints: InsertBatch, ReadBatch, DeleteBatch - [x] Move to JSON objects instead of tuples - [x] Specify endpoints for polling for updates on single values (PollItem) **Implementation:** - [x] Table for K2V items, causal contexts - [x] Indexing mechanism and table for K2V index - [x] Make API handlers a bit more generic - [x] K2V API endpoint - [x] K2V API router - [x] ReadItem - [x] InsertItem - [x] DeleteItem - [x] PollItem - [x] ReadIndex - [x] InsertBatch - [x] ReadBatch - [x] DeleteBatch **Testing:** - [x] Just a simple Python script that does some requests to check visually that things are going right (does not contain parsing of results or assertions on returned values) - [x] Actual tests: - [x] Adapt testing framework - [x] Simple test with InsertItem + ReadItem - [x] Test with several Insert/Read/DeleteItem + ReadIndex - [x] Test all combinations of return formats for ReadItem - [x] Test with ReadBatch, InsertBatch, DeleteBatch - [x] Test with PollItem - [x] Test error codes - [ ] Fix most broken stuff - [x] test PollItem broken randomly - [x] when invalid causality tokens are given, errors should be 4xx not 5xx **Improvements:** - [x] Descending range queries - [x] Specify - [x] Implement - [x] Add test - [x] Batch updates to index counter - [x] Put K2V behind `k2v` feature flag Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/293 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* Update netapp to 0.4.4, fix #300v0.7.1netapp-0.4.4Alex Auvolat2022-05-093-19/+19
|
* Fix `layout show` to not show changes when there are no changes (#297)Alex2022-05-092-5/+22
| | | | | | | | | fixes #295, partially Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/297 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>