ganeti

Safe HaskellNone

Ganeti.WConfd.Client

Contents

Description

The Ganeti WConfd client functions.

The client functions are automatically generated from Ganeti.WConfd.Core

Synopsis

Generated client functions

echo :: String -> RpcClientMonad String Source #

Helper functions for creating the client

wconfdConnectConfig :: ConnectConfig Source #

The default WConfd client configuration

getWConfdClient :: FilePath -> IO Client Source #

Given a socket path, creates a WConfd client with the default configuration and timeout.

Helper functions for getting a remote lock

waitLockConfig Source #

Arguments

:: ClientId 
-> Bool

whether the lock shall be in shared mode

-> RpcClientMonad ConfigData 

Calls the lockConfig RPC until the lock is obtained.

withLockedConfig Source #

Arguments

:: ClientId 
-> Bool

whether the lock shall be in shared mode

-> (ConfigData -> RpcClientMonad a)

action to run

-> RpcClientMonad a 

Calls the lockConfig RPC until the lock is obtained, runs a function on the obtained config, and calls unlockConfig.