add Remote.readonly

Does nothing yet.

Considered making bup readonly, but while the content can't be removed,
it is able to delete a branch, so didn't.

This commit was supported by the NSF-funded DataLad project.
This commit is contained in:
Joey Hess 2018-08-30 11:12:18 -04:00
parent a3fa9ea0b5
commit 02630b39ee
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
17 changed files with 19 additions and 0 deletions

View file

@ -122,6 +122,9 @@ data RemoteA a = Remote
, localpath :: Maybe FilePath
-- a Remote can be known to be readonly
, readonly :: Bool
-- a Remote can allow writes but not have a way to delete content
-- from it
, appendonly :: Bool
-- a Remote can be globally available. (Ie, "in the cloud".)
, availability :: Availability
-- the type of the remote