This commit is contained in:
Joey Hess 2010-10-10 19:53:31 -04:00
parent 93d2dc0d68
commit 344f13394f
7 changed files with 65 additions and 22 deletions

View file

@ -13,9 +13,11 @@ data Backend = Backend {
-- converts a filename to a key
getKey :: GitRepo -> FilePath -> IO (Maybe Key),
-- stores a file's contents to a key
storeFileKey :: GitRepo -> FilePath -> Key -> IO (Bool),
storeFileKey :: GitRepo -> FilePath -> Key -> IO Bool,
-- retrieves a key's contents to a file
retrieveKeyFile :: IO Key -> FilePath -> IO (Bool)
retrieveKeyFile :: Key -> FilePath -> IO Bool,
-- removes a key
removeKey :: Key -> IO Bool
}
-- a git repository