Kaloyan Raev
4fba9921f6
satellite/metainfo/metabase: define ErrSegmentNotFound error class
...
This makes it easier to callers of GetSegmentByPosition to determine if
the segment is missing.
Change-Id: I2d8546dddf07dcf790d2f7c08d308ed589b34f2f
2020-12-15 15:48:41 +02:00
Michal Niewrzal
cfb45a785c
satellite/metainfo/metabase: add TotalPlainSize to objects table
...
We need to know how large is object in general and we shouldn't query
segments for that.
Change-Id: Ie316e1ec38bfc39065e6046b79b55d58f3ce9d53
2020-11-25 14:35:28 +01:00
Michal Niewrzal
983b1737c2
satellite/metainfo: implement IsBucketEmpty with metabase
...
Use objects iterator to check if bucket is empty.
Change-Id: I590bb7258a47dd816f079039a1151df809dd2637
2020-11-25 12:20:30 +00:00
Michal Niewrzal
b7df41a0a1
satellite/metainfo/metabase: add EncryptedMetainfoEncryptedKey parameter
...
to metabase
* EncryptedMetainfoEncryptedKey added to CommitSegment and
UpdateMetadata request
* EncryptedMetainfoEncryptedKey returned with GetObject response and all
delete responses
* EncryptedMetainfoEncryptedKey returned with object iterator results
Change-Id: I917541ab5f3e1863bc8f238d17a15fbf72a23025
2020-11-17 10:19:12 +00:00
Michal Niewrzal
92f9251074
satellite/metainfo/metabase: add GetSegmentByOffset request
...
Change-Id: Iea2ce439ec1f7285e447d590c1297294204edc2e
2020-11-10 11:33:34 +00:00
Egon Elbre
184e1ffa9d
satellite/metainfo/metabase: commit object without proofs
...
Change-Id: I788111b9e5bdc961be9e731f8203e52ca9da9dca
2020-11-09 15:18:07 +00:00
Michal Niewrzal
2398afe985
satellite/metainfo/metabase: add GetLatestObjectLastSegment request
...
Change-Id: I50c452e379f78864b38921f31e53a0554642ab02
2020-11-05 08:20:34 +00:00
Kaloyan Raev
7e9ac2ec0a
metabase: use storj.ErrObjectNotFound instead of custom error
...
Change-Id: Ie90e438f7d7b58e6ea986359849dd8319433ae9f
2020-11-03 09:35:22 +00:00
Michal Niewrzal
ae17ae73d7
satellite/metainfo/metabase: add metadata and nonce to CommitObject
...
request
Change-Id: I584775800963fc2167c749f3da20475036fa5325
2020-11-02 16:49:18 +01:00
Egon Elbre
53b396b901
satellite/metainfo/metabase: move Encryption to Begin
...
Change-Id: Ic1fb935ce7668e901f6cbe14a67c071a1f16a9ad
2020-10-29 16:04:21 +02:00
Michal Niewrzal
809eb14ac2
satellite/metainfo/metabase: move metainfo PoC into storj repo
...
Change-Id: I39356d8bc7305b4a8ea0c1fb5603010ad72a68b9
2020-10-29 09:44:55 +01:00