2014-04-06 23:06:03 +00:00
|
|
|
{- git-remote-daemon transports
|
|
|
|
-
|
|
|
|
- Copyright 2014 Joey Hess <joey@kitenet.net>
|
|
|
|
-
|
|
|
|
- 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
|
|
|
]
|