Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exposes functionality to create LXD clients. These can be used to communciate to an LXD daemon, either using the high-level Network.LXD.Client.Commands module, or the low-level Network.LXD.Client.API module.
You are probably looking for Network.LXD.Client.Commands, which exposes a high-level interface to communicate with the LXD daemon.
If you are simply connecting to the LXD daemon on your local host, you shouldn't import this module. The Network.LXD.Client.Commands module probably re-exports enough functionality for your needs.
- module Network.LXD.Client.Types
- data RemoteHost = RemoteHost {}
- data ClientAuth
- data ServerAuth
- type Host = String
- type RemoteName = String
- type Certificate = FilePath
- type Key = FilePath
- data PrivateKey = PrivateKey Certificate Key
- remoteHostClient :: (MonadError String m, MonadIO m) => RemoteHost -> m ClientEnv
- remoteHostManager :: (MonadError String m, MonadIO m) => RemoteHost -> m Manager
- clientManager :: (MonadError String m, MonadIO m) => Host -> Maybe PrivateKey -> Maybe Certificate -> m Manager
- newtype LocalHost = LocalHost {}
- localHostClient :: MonadIO m => LocalHost -> m ClientEnv
- runWebSocketsRemote :: (MonadError String m, MonadIO m) => RemoteHost -> String -> ClientApp a -> m a
- runWebSocketsLocal :: (MonadError String m, MonadIO m) => LocalHost -> String -> ClientApp a -> m a
Documentation
module Network.LXD.Client.Types
LXD Host Management
HTTPS Clients
Types
data RemoteHost Source #
A structure containing everything to connect to a remote LXD host.
RemoteHost | |
|
data ClientAuth Source #
Specifies the client authentication method.
NoClientAuth | Do not authenticate the client. |
DefaultClientAuth | Look in |
ClientAuthKey PrivateKey | Use a custom private key. |
data ServerAuth Source #
Specifies the server authentication method.
DefaultCAStore | Use the default CA store when checking the certificate. |
DefaultServerAuth RemoteName | Look in |
ServerAuth Certificate | Use a custom server certificate. |
type RemoteName = String Source #
type Certificate = FilePath Source #
Functions
remoteHostClient :: (MonadError String m, MonadIO m) => RemoteHost -> m ClientEnv Source #
remoteHostManager :: (MonadError String m, MonadIO m) => RemoteHost -> m Manager Source #
clientManager :: (MonadError String m, MonadIO m) => Host -> Maybe PrivateKey -> Maybe Certificate -> m Manager Source #
Unix Clients
A structure containing everything to connect to a lcoal LXD host.
LocalHost | |
|
WebSockets Clients
runWebSocketsRemote :: (MonadError String m, MonadIO m) => RemoteHost -> String -> ClientApp a -> m a Source #
runWebSocketsLocal :: (MonadError String m, MonadIO m) => LocalHost -> String -> ClientApp a -> m a Source #