Commit Graph

417 Commits

Author SHA1 Message Date
Julian Ganz a7d1cdadc0 Add initial version of store interface
The interface enables users to both create and remove entries. It also
features methods for retrieval of both unlocked and lockes entries and a
method for writing back the latter one only.
2016-01-16 07:15:49 +01:00
Julian Ganz 6c2962efe9 Add trait for single unlocking of an item
Add a trait serving a lock which features only an irreversible unlocking
of an item. Such a type may be used to pass around locked items while
permitting the user to unlock them and perform any operation with a copy
of the original item.
2016-01-16 06:58:30 +01:00
Matthias Beyer 3f20028bac Add interface impl for FSStore 2016-01-13 22:04:06 +01:00
Matthias Beyer 912c84e663 Make "Store" a trait 2016-01-13 22:03:53 +01:00
Matthias Beyer d23e2f920d impl Drop for Store 2016-01-13 21:51:40 +01:00
Matthias Beyer 92f03edf2b Add extern crate fs2 2016-01-13 21:48:24 +01:00
Matthias Beyer 9845a3354e Add dep: fs2 = 0.2.2 2016-01-13 21:48:18 +01:00
Matthias Beyer fff41b447a Add store-internal cache 2016-01-13 21:47:23 +01:00
Matthias Beyer 4f8aacfa5a Fixup: Store type: read() should return Arc<RWLock<>>, update() should take that 2016-01-13 11:53:56 +01:00
Matthias Beyer 33f097d662 Add Entry type for store 2016-01-12 18:52:47 +01:00
Matthias Beyer 39fab39f97 Add modules in lib.rs 2016-01-12 18:52:47 +01:00
Matthias Beyer b1ace253c8 Add Store type for store 2016-01-12 18:52:47 +01:00
Matthias Beyer f198c5d125 Add EntryContent type for store 2016-01-12 18:52:40 +01:00
Matthias Beyer 4640ae8963 Add error type for store 2016-01-12 18:52:40 +01:00
Matthias Beyer ac1dd3e7f3 Add EntryHeader type for store 2016-01-12 18:52:34 +01:00
Matthias Beyer a6cc103584 Add dep: toml 2016-01-12 18:10:16 +01:00
Matthias Beyer f35029a3d0 Add: libimagstore 2016-01-09 23:51:31 +01:00