diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-11 20:51:49 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-11 20:51:49 -0400 |
commit | 73d1b3d2dfb0f225132ab31a701e6378422e2a37 (patch) | |
tree | 96f98e948fa2f872539553b8e137d02b6efff29c /Storage.hs | |
parent | a3834e558cf6ae04826b44e65a02ee22286f7952 (diff) | |
download | keysafe-73d1b3d2dfb0f225132ab31a701e6378422e2a37.tar.gz |
add shardCount
Diffstat (limited to 'Storage.hs')
-rw-r--r-- | Storage.hs | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -13,7 +13,8 @@ data Storage = Storage , obscureShards :: IO ObscureResult -- ^ run after making some calls to storeShard/retrieveShard, -- to avoid correlation attacks - } + , countShards :: IO CountResult + } -- Note that there is no interface to enumerate shards. data StoreResult = StoreSuccess | StoreFailure String deriving (Show) @@ -22,3 +23,6 @@ data RetrieveResult = RetrieveSuccess Shard | RetrieveFailure String data ObscureResult = ObscureSuccess | ObscureFailure String deriving (Show) + +data CountResult = CountResult Integer | CountFailure String + deriving (Show) |