2014-04-06 23:06:03 +00:00
|
|
|
{- git-remote-daemon transports
|
|
|
|
-
|
2015-01-21 16:50:09 +00:00
|
|
|
- Copyright 2014 Joey Hess <id@joeyh.name>
|
2014-04-06 23:06:03 +00:00
|
|
|
-
|
|
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
|
|
-}
|
|
|
|
|
|
|
|
module RemoteDaemon.Transport where
|
|
|
|
|
|
|
|
import RemoteDaemon.Types
|
|
|
|
import qualified RemoteDaemon.Transport.Ssh
|
2015-03-16 19:28:29 +00:00
|
|
|
import qualified RemoteDaemon.Transport.GCrypt
|
2016-11-20 19:45:01 +00:00
|
|
|
import qualified RemoteDaemon.Transport.Tor
|
2014-04-08 20:16:46 +00:00
|
|
|
import qualified Git.GCrypt
|
2016-12-09 20:02:43 +00:00
|
|
|
import P2P.Address (torAnnexScheme)
|
2014-04-06 23:06:03 +00:00
|
|
|
|
|
|
|
import qualified Data.Map as M
|
|
|
|
|
|
|
|
-- Corresponds to uriScheme
|
|
|
|
type TransportScheme = String
|
|
|
|
|
|
|
|
remoteTransports :: M.Map TransportScheme Transport
|
|
|
|
remoteTransports = M.fromList
|
|
|
|
[ ("ssh:", RemoteDaemon.Transport.Ssh.transport)
|
2015-03-16 19:28:29 +00:00
|
|
|
, (Git.GCrypt.urlScheme, RemoteDaemon.Transport.GCrypt.transport)
|
2016-12-09 20:02:43 +00:00
|
|
|
, (torAnnexScheme, RemoteDaemon.Transport.Tor.transport)
|
2014-04-06 23:06:03 +00:00
|
|
|
]
|
2016-11-20 19:45:01 +00:00
|
|
|
|
2016-12-28 16:21:52 +00:00
|
|
|
remoteServers :: [Server]
|
2016-11-20 19:45:01 +00:00
|
|
|
remoteServers = [RemoteDaemon.Transport.Tor.server]
|