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
|
2014-04-08 20:16:46 +00:00
|
|
|
import qualified Git.GCrypt
|
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)
|
2014-04-08 20:16:46 +00:00
|
|
|
, (Git.GCrypt.urlScheme, RemoteDaemon.Transport.Ssh.transport)
|
2014-04-06 23:06:03 +00:00
|
|
|
]
|