summaryrefslogtreecommitdiff
path: root/src/indexedstore.rs
AgeCommit message (Collapse)AuthorFilesLines
2022-10-28chore: drop IndexedStore, which wasn't used anywhere, anymoreLars Wirzenius1-77/+0
Sponsored-by: author
2022-03-22feat! drop generation related fields from chunk metadataLars Wirzenius1-5/+0
Sponsored-by: author
2022-03-13feat! rename metadata field "sha256" to "label"Lars Wirzenius1-3/+3
The field still contains a cleartext SHa256 of the cleartext chunk data, but this makes it clearer that it may contain other data. This is a breaking change: the server API won't work with an old client, and the new client won't work with an old server. To avoid the breakage would require more effort than is warranted at this time, given the very small number of users of Obnam. Sorry. Sponsored-by: author
2021-12-31docs: add documentation comments to crateLars Wirzenius1-0/+10
Also, make it an error for a public symbol to not be documented. Sponsored-by: author
2021-07-21Replace IndexedResult with plain ResultAlexander Batischev1-11/+8
2021-05-29refactor: count chunks via file system, not via chunk server APILars Wirzenius1-24/+1
2021-05-29refactor: make metadata be part of datachunkLars Wirzenius1-3/+3
This makes it harder to lose the metadata for a chunk, or to use unrelated metadata and chunk. Also, soon I will refactor things for encrypting chunks, which will need metadata embedded in the encrypted chunk. Sponsored-by: author
2021-03-27refactor: use .cloned() to clone items in an iteratorLars Wirzenius1-1/+1
2021-02-06feat: method for listing ids of chunks from file dataLars Wirzenius1-1/+27
This will be useful soon, to enable us to check how many chunks from file data there is in the repository, to check that an upcoming chunk size setting works. Also add an API call for returning the ids. Note that all of this is meant for testing only. It may be best to disable it in production builds, eventually.
2021-02-04refactor: have per-module error enumsLars Wirzenius1-14/+29
This means that a function that parses step bindings can't return an error that the document is missing a title. Such an error return would be nonsensical, and we use the Rust type system to prevent it, at a small cost of being a bit verbose. Additional benefit is that the library portion of Obnam doesn't return anyhow::Result values anymore.
2021-01-10feat! use SQLite db for chunk index on serverLars Wirzenius1-48/+16
This speeds startup a lot. However, the backup repository needs to be re-created from scratch and internal APIs have change in incompatible ways.
2021-01-03feat: load chunk metadata into index at startupLars Wirzenius1-3/+35
This needs to be replace with a database or something, but it'll do for now.
2020-12-23refactor: use a struct instead of a tupleLars Wirzenius1-4/+4
It seems this is more idiomatic in Rust.
2020-11-24refactor: add an abstraction for an indexed storeLars Wirzenius1-0/+57
This makes it easier to write a server without the HTTP layer.