git-annex/Remote
Joey Hess 8025decc7f run Preparer to get Remover and CheckPresent actions
This will allow special remotes to eg, open a http connection and reuse it,
while checking if chunks are present, or removing chunks.

S3 and WebDAV both need this to support chunks with reasonable speed.

Note that a special remote might want to cache a http connection across
multiple requests. A simple case of this is that CheckPresent is typically
called before Store or Remove. A remote using this interface can certianly
use a Preparer that eg, uses a MVar to cache a http connection.

However, it's up to the remote to then deal with things like stale or
stalled http connections when eg, doing a series of downloads from a remote
and other places. There could be long delays between calls to a remote,
which could lead to eg, http connection stalls; the machine might even
move to a new network, etc.

It might be nice to improve this interface later to allow
the simple case without needing to handle the full complex case.
One way to do it would be to have a `Transaction SpecialRemote cache`,
where SpecialRemote contains methods for Storer, Retriever, Remover, and
CheckPresent, that all expect to be passed a `cache`.
2014-08-06 14:28:36 -04:00
..
Directory pushed checkPresent exception handling out of Remote implementations 2014-08-06 13:45:19 -04:00
External factored out Utility.SimpleProtocol from the external special remote implementation 2014-04-05 13:29:28 -04:00
Helper run Preparer to get Remover and CheckPresent actions 2014-08-06 14:28:36 -04:00
Rsync rsync special remote: Fix slashes when used on Windows. 2014-03-18 13:02:10 -04:00
WebDAV more DAV url fixes for windows 2014-02-25 16:16:14 -04:00
Bup.hs run Preparer to get Remover and CheckPresent actions 2014-08-06 14:28:36 -04:00
Ddar.hs run Preparer to get Remover and CheckPresent actions 2014-08-06 14:28:36 -04:00
Directory.hs run Preparer to get Remover and CheckPresent actions 2014-08-06 14:28:36 -04:00
External.hs run Preparer to get Remover and CheckPresent actions 2014-08-06 14:28:36 -04:00
GCrypt.hs run Preparer to get Remover and CheckPresent actions 2014-08-06 14:28:36 -04:00
Git.hs pushed checkPresent exception handling out of Remote implementations 2014-08-06 13:45:19 -04:00
Glacier.hs run Preparer to get Remover and CheckPresent actions 2014-08-06 14:28:36 -04:00
Hook.hs run Preparer to get Remover and CheckPresent actions 2014-08-06 14:28:36 -04:00
List.hs factor out getRemoteGitConfig 2014-05-16 16:08:20 -04:00
Rsync.hs run Preparer to get Remover and CheckPresent actions 2014-08-06 14:28:36 -04:00
S3.hs run Preparer to get Remover and CheckPresent actions 2014-08-06 14:28:36 -04:00
Tahoe.hs pushed checkPresent exception handling out of Remote implementations 2014-08-06 13:45:19 -04:00
Web.hs pushed checkPresent exception handling out of Remote implementations 2014-08-06 13:45:19 -04:00
WebDAV.hs pushed checkPresent exception handling out of Remote implementations 2014-08-06 13:45:19 -04:00