Commit Graph

47 Commits

Author SHA1 Message Date
Gavin Thomas Claugus 2ccea914dd libimagref: Deny warnings and fix denied warnings
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
2016-07-26 16:34:22 -04:00
Matthias Beyer cb4840cce4 Merge pull request #497 from matthiasbeyer/libimagref/list
libimagref/list
2016-07-16 01:25:28 +02:00
Matthias Beyer cdf90e427c Fix: Header field name was wrong 2016-07-14 20:42:39 +02:00
Matthias Beyer 900513594c Impl Into<FileLockEntry> on Ref type 2016-07-14 20:37:49 +02:00
Matthias Beyer 637917f8cb Add lister for libimagref to list references 2016-07-14 20:26:22 +02:00
Matthias Beyer 538e983686 Add RefToDisplayError kind 2016-07-14 20:26:22 +02:00
Matthias Beyer d22b7583ce Add dependency: libimagentrylist 2016-07-14 19:54:55 +02:00
Matthias Beyer 9337a14cdd Update all version strings: 0.1.0 -> 0.2.0 2016-07-12 11:51:20 +02:00
Matthias Beyer 55c39ac94d Fix: We cannot offer a Ref::delete(self), but a Ref::delete_by_hash()
We cannot offer the former because deleting self would always fail as
the FileLockEntry is already borrowed from the store, so the store
declines this.

But deleting by hash works.
2016-07-05 12:42:52 +02:00
Matthias Beyer a29242c586 Impl Display for Ref 2016-07-04 20:18:52 +02:00
Matthias Beyer ebf185fd29 Add Ref::from_filelockentry() 2016-07-04 19:29:02 +02:00
Matthias Beyer 617cb97ddf Add Ref::get_path_hash() 2016-07-04 19:29:02 +02:00
Matthias Beyer a240b99773 Impl Ref::get_by_hash() 2016-07-04 19:29:02 +02:00
Matthias Beyer 38557e9a9b impl Ref::delete() 2016-07-04 19:29:02 +02:00
Matthias Beyer 31f32a4e59 Ref: derive Debug 2016-07-04 19:29:02 +02:00
Matthias Beyer bb4b705816 Impl Default for RefFlags 2016-07-04 19:29:02 +02:00
Matthias Beyer 757d69f41a Impl: Ref::refind() 2016-07-04 19:29:02 +02:00
Matthias Beyer cc8048ea24 Impl Ref::update_ref() 2016-07-04 19:29:02 +02:00
Matthias Beyer 72a125ab62 Extract permissions getting into helper function 2016-07-04 19:29:02 +02:00
Matthias Beyer 6a24fcb7e4 Outsource hash getter functions into new (pub) functions 2016-07-04 19:29:02 +02:00
Matthias Beyer 9604f94f17 Impl Ref::fs_link_valid() 2016-07-04 19:29:02 +02:00
Matthias Beyer 5bf11af82c Impl Ref::fs_link_valid_permissions() 2016-07-04 19:29:02 +02:00
Matthias Beyer 4b98b168e5 Impl Ref::exists() 2016-07-04 19:29:02 +02:00
Matthias Beyer 079675c4f0 Impl Ref::fs_link_valid_hash() 2016-07-04 19:29:02 +02:00
Matthias Beyer 6757c673c4 Extract file-content-hashing functionality to new private function 2016-07-04 19:29:02 +02:00
Matthias Beyer 7613526aff Impl Ref::is_ref_to_dir() 2016-07-04 19:29:02 +02:00
Matthias Beyer ca48e2ac39 Impl Ref::is_ref_to_file() 2016-07-04 19:29:02 +02:00
Matthias Beyer 904d81595b Impl Ref::fs_file() 2016-07-04 19:29:02 +02:00
Matthias Beyer ac0d22e479 Impl Ref::fs_link_exists() 2016-07-04 19:29:02 +02:00
Matthias Beyer 130ea0db13 Impl Ref::hash_path() (changes returntype) 2016-07-04 19:29:02 +02:00
Matthias Beyer 4ccbb174fa Impl Ref::create() 2016-07-04 19:29:02 +02:00
Matthias Beyer ca86f3c6ad Impl Ref::is_ref_to_dir() 2016-07-04 19:29:02 +02:00
Matthias Beyer 682acfcf81 Impl Ref::is_ref_to_file() 2016-07-04 19:29:02 +02:00
Matthias Beyer 19f273db45 Impl Ref::is_dangling() 2016-07-04 19:29:02 +02:00
Matthias Beyer b219f06a65 Impl Ref::open() 2016-07-04 19:29:02 +02:00
Matthias Beyer 5cfedf3570 Impl RefFlags::get_permission_tracking() 2016-07-04 19:29:02 +02:00
Matthias Beyer 8989791c7a Impl RefFlags::get_content_hashing() 2016-07-04 19:29:02 +02:00
Matthias Beyer d00af36700 Impl RefFlags::with_permission_tracking() 2016-07-04 19:29:02 +02:00
Matthias Beyer 7a11588ec2 Impl RefFlags::with_permission_tracking() 2016-07-04 19:29:02 +02:00
Matthias Beyer 303a0c2bf8 Impl RefFlags::with_content_hashing() 2016-07-04 19:29:02 +02:00
Matthias Beyer 57e653e384 Impl RefFlags::into_toml() as Into<Value> for RefFlags 2016-07-04 19:29:02 +02:00
Matthias Beyer 14cd99f5f2 Impl RefFlags::read() 2016-07-04 19:29:02 +02:00
Matthias Beyer 6a701d9646 Add result type 2016-07-04 19:29:02 +02:00
Matthias Beyer e19a30d227 Add error module 2016-07-04 19:29:02 +02:00
Matthias Beyer f6ff775249 Add concept of RefFlags 2016-07-04 19:29:02 +02:00
Matthias Beyer a3b3520591 Add Ref type 2016-07-04 19:29:02 +02:00
Matthias Beyer 6d41747fdb Initial import 2016-07-04 19:29:02 +02:00